diff options
Diffstat (limited to 'multimedia/gstreamer-plugins/Makefile')
-rw-r--r-- | multimedia/gstreamer-plugins/Makefile | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/multimedia/gstreamer-plugins/Makefile b/multimedia/gstreamer-plugins/Makefile index 70d1d45882ad..b96772f431eb 100644 --- a/multimedia/gstreamer-plugins/Makefile +++ b/multimedia/gstreamer-plugins/Makefile @@ -56,8 +56,6 @@ CONFIGURE_ARGS+=\ --disable-tarkin \ --disable-lcs \ --disable-shout2 \ - --disable-libvisual \ - --disable-musepack \ --disable-dirac \ --disable-librfb @@ -139,6 +137,10 @@ post-patch: ${WRKSRC}/sys/vcd/vcdsrc.c \ ${WRKSRC}/sys/vcd/vcdsrc.h +# tell configure where the musepack includes live + @${REINPLACE_CMD} -e 's|/usr/include/musepack|${LOCALBASE}/include/musepack|g' \ + ${WRKSRC}/configure + .include <bsd.port.pre.mk> # hermes is required for gstreamer-player to work @@ -316,6 +318,11 @@ WITH_LIBSNDFILE=yes WITH_LIBTHEORA=yes .endif +# libvisual +.if exists(${LOCALBASE}/lib/libvisual.a) +WITH_LIBVISUAL=yes +.endif + # mad .if exists(${LOCALBASE}/lib/libmad.a) WITH_MAD=yes @@ -326,6 +333,11 @@ WITH_MAD=yes WITH_MJPEGTOOLS=yes .endif +# musepack +.if exists(${LOCALBASE}/lib/libmusepack.a) +WITH_MUSEPACK=yes +.endif + # nas .if exists(${X11BASE}/lib/libaudio.a) WITH_NAS=YES @@ -736,6 +748,16 @@ LIB_DEPENDS+= theora.0:${PORTSDIR}/graphics/libtheora PLIST_SUB+= LIBTHEORA="" .endif +# libvisual +.ifndef(WITH_LIBVISUAL) +CONFIGURE_ARGS+= --disable-libvisual +PLIST_SUB+= LIBVISUAL="@comment " +.else +LIB_DEPENDS+= visual.0:${PORTSDIR}/graphics/libvisual + +PLIST_SUB+= LIBVISUAL="" +.endif + # mad .ifndef(WITH_MAD) CONFIGURE_ARGS+= --disable-mad @@ -762,6 +784,16 @@ CONFIGURE_ENV+= HAVE_CXX=yes PLIST_SUB+= MJPEGTOOLS="" .endif +# musepack +.ifndef(WITH_MUSEPACK) +CONFIGURE_ARGS+= --disable-musepack +PLIST_SUB+= MUSEPACK="@comment " +.else +LIB_DEPENDS+= musepack.1:${PORTSDIR}/audio/musepack + +PLIST_SUB+= MUSEPACK="" +.endif + # nas .ifndef(WITH_NAS) CONFIGURE_ARGS+= --disable-nas @@ -1072,6 +1104,10 @@ pre-everything:: @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBTHEORA to enable libtheora Video plugin' .endif +.ifndef(WITH_LIBVISUAL) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_LIBVISUAL to enable libvisual Video plugin' +.endif .ifndef(WITH_MAD) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_MAD to enable mad Audio plugin' @@ -1080,6 +1116,10 @@ pre-everything:: @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_MNG to enable libmng plugin' .endif +.ifndef(WITH_MUSEPACK) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_MUSEPACK to enable musepack Audio plugin' +.endif .ifndef(WITH_NAS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_NAS to enable nas Audio plugin' |