aboutsummaryrefslogtreecommitdiffstats
path: root/audio/amarok-kde4
diff options
context:
space:
mode:
authoravilla <avilla@FreeBSD.org>2013-12-20 16:12:23 +0800
committeravilla <avilla@FreeBSD.org>2013-12-20 16:12:23 +0800
commit2007ca7d72ce785ed95fe2d8d2050362de7d8cf8 (patch)
tree8d0345c37cc04231906364f23da41cddf06dda23 /audio/amarok-kde4
parent9e27548297f81bfe9a89805565c4dbc255e97179 (diff)
downloadfreebsd-ports-gnome-2007ca7d72ce785ed95fe2d8d2050362de7d8cf8.tar.gz
freebsd-ports-gnome-2007ca7d72ce785ed95fe2d8d2050362de7d8cf8.tar.zst
freebsd-ports-gnome-2007ca7d72ce785ed95fe2d8d2050362de7d8cf8.zip
- STAGEify.
Submitted by: Alonso Schaich <alonsoschaich@fastmail.fm> via area51 - Use OPTIONS helpers.
Diffstat (limited to 'audio/amarok-kde4')
-rw-r--r--audio/amarok-kde4/Makefile72
-rw-r--r--audio/amarok-kde4/pkg-plist1
2 files changed, 24 insertions, 49 deletions
diff --git a/audio/amarok-kde4/Makefile b/audio/amarok-kde4/Makefile
index 6805afeb03fa..9fed5f5bac0b 100644
--- a/audio/amarok-kde4/Makefile
+++ b/audio/amarok-kde4/Makefile
@@ -28,66 +28,39 @@ LATEST_LINK= ${PORTNAME}-kde4
USE_KDE4= kdehier kdelibs kdeprefix libkcddb libkcompactdisc \
nepomuk-core runtime automoc4 sharedmime strigi
USE_MYSQL= embedded
-USE_QT4= dbus designer gui network opengl \
+USE_QT4= corelib dbus designer gui network opengl \
phonon script sql svg webkit xml \
qmake_build moc_build rcc_build uic_build
USE_XORG= x11
USE_BZIP2= yes
-NO_STAGE= yes
USES= cmake pkgconfig
USE_LDCONFIG= yes
-OPTIONS_DEFINE= AMAZON IPOD MP3TUNES MTP
-OPTIONS_DEFAULT=IPOD MP3TUNES MTP
-
-AMAZON_DESC= Amazon MP3 store support via clamz
-IPOD_DESC= Apple iPod support
-MP3TUNES_DESC= MP3tunes support
+BROKEN_sparc64= does not build (GCC-related error)
-.include <bsd.port.options.mk>
-
-.if ${ARCH} == "sparc64"
-BROKEN= does not build on sparc64 (GCC-related error)
-.endif
+OPTIONS_DEFINE= AMAZON IPOD MP3TUNES MTP NLS
+OPTIONS_DEFAULT=IPOD MP3TUNES MTP
+OPTIONS_SUB= yes
-.if ${PORT_OPTIONS:MAMAZON}
-RUN_DEPENDS+= clamz:${PORTSDIR}/net/clamz
-.endif
+AMAZON_DESC= Amazon MP3 store support via clamz
+AMAZON_RUN_DEPENDS= clamz:${PORTSDIR}/net/clamz
-.if ${PORT_OPTIONS:MIPOD}
-LIB_DEPENDS+= libgpod.so:${PORTSDIR}/audio/libgpod
-USE_GNOME+= gdkpixbuf2 glib20
-PLIST_SUB+= IPOD=""
-.else
-CMAKE_ARGS+= -DWITH_IPOD:BOOL=Off
-PLIST_SUB+= IPOD="@comment "
-.endif
+IPOD_DESC= Apple iPod support
+IPOD_LIB_DEPENDS= libgpod.so:${PORTSDIR}/audio/libgpod
+IPOD_USE= GNOME=gdkpixbuf2,glib20
+IPOD_CMAKE_OFF= -DWITH_IPOD:BOOL=Off
-.if ${PORT_OPTIONS:MMP3TUNES}
-LIB_DEPENDS+= libloudmouth-1.so:${PORTSDIR}/net-im/loudmouth \
- libcurl.so:${PORTSDIR}/ftp/curl
-USE_GNOME+= glib20 libxml2
-PLIST_SUB+= MP3TUNES=""
-.else
-CMAKE_ARGS+= -DWITH_MP3tunes:BOOL=Off
-PLIST_SUB+= MP3TUNES="@comment "
-.endif
+MP3TUNES_DESC= MP3tunes support
+MP3TUNES_LIB_DEPENDS= libloudmouth-1.so:${PORTSDIR}/net-im/loudmouth \
+ libcurl.so:${PORTSDIR}/ftp/curl
+MP3TUNES_USE= GNOME=glib20,libxml2
+MP3TUNES_CMAKE_OFF= -DWITH_MP3tunes:BOOL=Off
-.if ${PORT_OPTIONS:MMTP}
-LIB_DEPENDS+= libmtp.so:${PORTSDIR}/audio/libmtp
-PLIST_SUB+= MTP=""
-.else
-CMAKE_ARGS+= -DWITH_Mtp:BOOL=Off
-PLIST_SUB+= MTP="@comment "
-.endif
+MTP_LIB_DEPENDS= libmtp.so:${PORTSDIR}/audio/libmtp
+MTP_CMAKE_OFF= -DWITH_Mtp:BOOL=Off
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CMAKE_ARGS+= -DBUILD_po:BOOL=Off
-PLIST_SUB+= NLS="@comment "
-.endif
+NLS_USES= gettext
+NLS_CMAKE_OFF= -DBUILD_po:BOOL=Off
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
@@ -99,9 +72,10 @@ post-patch:
${WRKSRC}/utilities/amzdownloader/CMakeLists.txt
post-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages
${INSTALL_DATA} ${WRKSRC}/utilities/amzdownloader/amzdownloader.xml \
- ${PREFIX}/share/mime/packages
+ ${STAGEDIR}${PREFIX}/share/mime/packages
${INSTALL_SCRIPT} ${WRKSRC}/utilities/amzdownloader/amzdownloader.desktop \
- ${PREFIX}/share/applications/kde4
+ ${STAGEDIR}${PREFIX}/share/applications/kde4
.include <bsd.port.mk>
diff --git a/audio/amarok-kde4/pkg-plist b/audio/amarok-kde4/pkg-plist
index ceba20cee4a9..67aacf1d5279 100644
--- a/audio/amarok-kde4/pkg-plist
+++ b/audio/amarok-kde4/pkg-plist
@@ -1271,6 +1271,7 @@ share/kde4/servicetypes/amarok_plugin.desktop
%%NLS%%share/locale/zh_TW/LC_MESSAGES/amarokcollectionscanner_qt.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/amarokpkg.mo
share/mime/packages/amzdownloader.xml
+@dirrmtry share/mime/packages
@dirrm share/doc/HTML/uk/amarok
@dirrm share/doc/HTML/sv/amarok
@dirrm share/doc/HTML/ru/amarok