aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-11-13 21:12:00 +0800
committerwg <wg@FreeBSD.org>2013-11-13 21:12:00 +0800
commit18139458abbcdc842076c9043212eab89e23b06a (patch)
tree4fed4377c3bb6e1f85b0a17682492181aa1fbb4a /multimedia
parenta003aea1fa04d4a173a404c36e6f2fa24fee716e (diff)
downloadfreebsd-ports-gnome-18139458abbcdc842076c9043212eab89e23b06a.tar.gz
freebsd-ports-gnome-18139458abbcdc842076c9043212eab89e23b06a.tar.zst
freebsd-ports-gnome-18139458abbcdc842076c9043212eab89e23b06a.zip
multimedia/qmmp-plugin-pack: update to 0.7.3
- Update to 0.7.3 - Use options helpers PR: ports/183919 Submitted by: maintainer
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/qmmp-plugin-pack/Makefile63
-rw-r--r--multimedia/qmmp-plugin-pack/distinfo4
2 files changed, 21 insertions, 46 deletions
diff --git a/multimedia/qmmp-plugin-pack/Makefile b/multimedia/qmmp-plugin-pack/Makefile
index 1d645e69a33c..3739f328b2e5 100644
--- a/multimedia/qmmp-plugin-pack/Makefile
+++ b/multimedia/qmmp-plugin-pack/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= qmmp-plugin-pack
-PORTVERSION= 0.7.2
+PORTVERSION= 0.7.3
CATEGORIES= multimedia
MASTER_SITES= http://qmmp.ylsoftware.com/files/plugins/ \
http://qmmp.googlecode.com/files/
@@ -19,65 +19,40 @@ USES= cmake:outsource pkgconfig
USE_QT4= corelib gui qmake_build rcc_build moc_build linguist_build
USE_LDCONFIG= yes
+OPTIONS_SUB= yes
OPTIONS_DEFINE= FFAP MPG123 QSUI
OPTIONS_DEFAULT= FFAP MPG123 QSUI
+
FFAP_DESC= Support APE sound file
-MPG123_DESC= Support libmpg123 (MPEG v1/2 layer1/2/3)
-QSUI_DESC= Simple UI based on standard widgets set
+FFAP_LIB_DEPENDS= libtag.so:${PORTSDIR}/audio/taglib
+FFAP_CMAKE_ON= -DUSE_FFAP:BOOL=TRUE
+FFAP_CMAKE_OFF= -DUSE_FFAP:BOOL=FALSE
OPTIONS_DEFINE_i386= FFAPASM
OPTIONS_DEFAULT_i386= FFAPASM
OPTIONS_DEFINE_amd64= FFAPASM
OPTIONS_DEFAULT_amd64= FFAPASM
FFAPASM_DESC= Optimize FFap decoder using devel/yasm
+FFAPASM_BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm
+FFAPASM_CMAKE_ON= -DUSE_ASM:BOOL=TRUE
+FFAPASM_CMAKE_OFF= -DUSE_ASM:BOOL=FALSE
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MQSUI}
-USE_QT4+= network
-PLIST_SUB+= QSUI=""
-PLUGIN_OPTIONS_CMAKE+= -DUSE_QSUI:BOOL=TRUE
-.else
-PLIST_SUB+= QSUI="@comment "
-PLUGIN_OPTIONS_CMAKE+= -DUSE_QSUI:BOOL=FALSE
-.endif
+MPG123_LIB_DEPENDS= libmpg123.so:${PORTSDIR}/audio/mpg123
+MPG123_USE= QT4=uic_build
+MPG123_CMAKE_ON= -DUSE_MPG123:BOOL=TRUE
+MPG123_CMAKE_OFF= -DUSE_MPG123:BOOL=FALSE
-.if ${PORT_OPTIONS:MMPG123}
-PLIST_SUB+= MPG123=""
-LIB_DEPENDS+= libmpg123.so:${PORTSDIR}/audio/mpg123
-PLUGIN_OPTIONS_CMAKE+= -DUSE_MPG123:BOOL=TRUE
-.else
-PLIST_SUB+= MPG123="@comment "
-PLUGIN_OPTIONS_CMAKE+= -DUSE_MPG123:BOOL=FALSE
-.endif
+QSUI_DESC= Simple UI based on standard widgets set
+QSUI_USE= QT4=network,uic_build
+QSUI_CMAKE_ON= -DUSE_QSUI:BOOL=TRUE
+QSUI_CMAKE_OFF= -DUSE_QSUI:BOOL=FALSE
.include <bsd.port.pre.mk>
-.if ${PORT_OPTIONS:MFFAP}
-PLIST_SUB+= FFAP=""
-. if (${ARCH} == i386 || ${ARCH} == amd64) && ${PORT_OPTIONS:MFFAPASM}
-BUILD_DEPENDS+= yasm:${PORTSDIR}/devel/yasm
-PLUGIN_OPTIONS_CMAKE+= -DUSE_ASM:BOOL=TRUE
-. else
-PLUGIN_OPTIONS_CMAKE+= -DUSE_ASM:BOOL=FALSE
-. endif
-LIB_DEPENDS+= libtag.so:${PORTSDIR}/audio/taglib
-PLUGIN_OPTIONS_CMAKE+= -DUSE_FFAP:BOOL=TRUE
-.else
-PLIST_SUB+= FFAP="@comment "
-PLUGIN_OPTIONS_CMAKE+= -DUSE_FFAP:BOOL=FALSE
-.endif
-
-.if ${PORT_OPTIONS:MQSUI} || ${PORT_OPTIONS:MMPG123}
-USE_QT4+= uic_build
-.endif
-
-CMAKE_ARGS+= ${PLUGIN_OPTIONS_CMAKE} \
- -DCMAKE_REQUIRED_INCLUDES:PATH=${LOCALBASE}/include
+CMAKE_ARGS+= -DCMAKE_REQUIRED_INCLUDES:PATH=${LOCALBASE}/include
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
pre-configure:
- ${RM} -f ${BUILD_WRKSRC}/CMakeCache.txt
+ @${RM} -f ${BUILD_WRKSRC}/CMakeCache.txt
.include <bsd.port.post.mk>
diff --git a/multimedia/qmmp-plugin-pack/distinfo b/multimedia/qmmp-plugin-pack/distinfo
index ce52f6c806d5..e30b99fdd506 100644
--- a/multimedia/qmmp-plugin-pack/distinfo
+++ b/multimedia/qmmp-plugin-pack/distinfo
@@ -1,2 +1,2 @@
-SHA256 (qmmp-plugin-pack-0.7.2.tar.bz2) = ff35e1576aa91082496433c4ea22984469eb7810ec0ab7a1d99a7510066cad2d
-SIZE (qmmp-plugin-pack-0.7.2.tar.bz2) = 135630
+SHA256 (qmmp-plugin-pack-0.7.3.tar.bz2) = fd07f480a5b1affdd4c82a49c27a00c3cddfa58f7cc8e9081b8e35c4518ae4b2
+SIZE (qmmp-plugin-pack-0.7.3.tar.bz2) = 135705