summaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2001-08-21 11:42:34 +0000
committerolgeni <olgeni@FreeBSD.org>2001-08-21 11:42:34 +0000
commit479734f9833a467ce695be95fdba9222ea881cb8 (patch)
tree3cf951fcabbe548637e335eecd2f9c604c9d2493 /multimedia
parent030ea3eb8a5367e40aa134bdf821be617914bd97 (diff)
downloadFreeBSD-ports-479734f9833a467ce695be95fdba9222ea881cb8.zip
FreeBSD-ports-479734f9833a467ce695be95fdba9222ea881cb8.tar.gz
Add the optional WITH_OGGVORBIS variable. It will also be automatically set
if ogg/vorbis tools are detected (audio/libogg and audio/libvorbis), fixing the plist for both bento and users who have ogg/vorbis already installed.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/kdemultimedia3/Makefile22
-rw-r--r--multimedia/kdemultimedia3/pkg-plist5
-rw-r--r--multimedia/kdemultimedia4/Makefile22
-rw-r--r--multimedia/kdemultimedia4/pkg-plist5
4 files changed, 52 insertions, 2 deletions
diff --git a/multimedia/kdemultimedia3/Makefile b/multimedia/kdemultimedia3/Makefile
index 1f20ad4..14b7428 100644
--- a/multimedia/kdemultimedia3/Makefile
+++ b/multimedia/kdemultimedia3/Makefile
@@ -24,6 +24,26 @@ CONFIGURE_ARGS+=--with-qt-includes=${X11BASE}/include/qt2 \
USE_GMAKE= yes
MAKE_ENV= ${CONFIGURE_ENV}
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/include/ogg/ogg.h) \
+ || exists(${LOCALBASE}/include/vorbis/vorbisfile.h)
+WITH_OGGVORBIS= yes
+.endif
+
+.if defined(WITH_OGGVORBIS) && ${WITH_OGGVORBIS} == yes
+LIB_DEPENDS+= ogg.2:${PORTSDIR}/audio/libogg \
+ vorbis.0:${PORTSDIR}/audio/libvorbis
+PLIST_SUB+= OGGVORBIS:=""
+.else
+PLIST_SUB+= OGGVORBIS:="@comment "
+pre-everything::
+ @${ECHO_MSG}
+ @${ECHO_MSG} "If you want to compile with ogg/vorbis support,"
+ @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_OGGVORBIS=yes\""
+ @${ECHO_MSG}
+.endif
+
pre-configure:
${PERL} -pi -e "s@all_includes=\"@all_includes=\"-I/usr/include @g" ${WRKSRC}/acinclude.m4 ${WRKSRC}/aclocal.m4
${PERL} -pi -e 's,kscd_compile=no,kscd_compile=yes,g; \
@@ -43,4 +63,4 @@ post-install:
@${ECHO_MSG} " # ${CHMOD} 666 /dev/racd0c"
@${ECHO_MSG}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/multimedia/kdemultimedia3/pkg-plist b/multimedia/kdemultimedia3/pkg-plist
index 147b961..14a1ef6 100644
--- a/multimedia/kdemultimedia3/pkg-plist
+++ b/multimedia/kdemultimedia3/pkg-plist
@@ -125,6 +125,8 @@ lib/libnoatunui.la
lib/libnoatunui.so
lib/libnoatunvoiceprint.la
lib/libnoatunvoiceprint.so
+%%OGGVORBIS:%%lib/liboggarts.la
+%%OGGVORBIS:%%lib/liboggarts.so
lib/libsplitplaylist.la
lib/libsplitplaylist.so
lib/libworkman.la
@@ -174,6 +176,7 @@ lib/mcop/Arts/Synth_XFADE.mcopclass
lib/mcop/Arts/VBox.mcopclass
lib/mcop/Arts/Widget.mcopclass
lib/mcop/Arts/mpg123PlayObject.mcopclass
+%%OGGVORBIS:%%lib/mcop/Arts/oggPlayObject.mcopclass
lib/mcop/ExtraStereo.mcopclass
lib/mcop/ExtraStereoGuiFactory.mcopclass
lib/mcop/Noatun/Equalizer.mcopclass
@@ -203,6 +206,8 @@ lib/mcop/mpg123arts.mcopclass
lib/mcop/mpg123arts.mcoptype
lib/mcop/noatunarts.mcopclass
lib/mcop/noatunarts.mcoptype
+%%OGGVORBIS:%%lib/mcop/oggarts.mcopclass
+%%OGGVORBIS:%%lib/mcop/oggarts.mcoptype
lib/noatun.la
lib/noatun.so
share/applnk/Multimedia/aktion.desktop
diff --git a/multimedia/kdemultimedia4/Makefile b/multimedia/kdemultimedia4/Makefile
index 1f20ad4..14b7428 100644
--- a/multimedia/kdemultimedia4/Makefile
+++ b/multimedia/kdemultimedia4/Makefile
@@ -24,6 +24,26 @@ CONFIGURE_ARGS+=--with-qt-includes=${X11BASE}/include/qt2 \
USE_GMAKE= yes
MAKE_ENV= ${CONFIGURE_ENV}
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/include/ogg/ogg.h) \
+ || exists(${LOCALBASE}/include/vorbis/vorbisfile.h)
+WITH_OGGVORBIS= yes
+.endif
+
+.if defined(WITH_OGGVORBIS) && ${WITH_OGGVORBIS} == yes
+LIB_DEPENDS+= ogg.2:${PORTSDIR}/audio/libogg \
+ vorbis.0:${PORTSDIR}/audio/libvorbis
+PLIST_SUB+= OGGVORBIS:=""
+.else
+PLIST_SUB+= OGGVORBIS:="@comment "
+pre-everything::
+ @${ECHO_MSG}
+ @${ECHO_MSG} "If you want to compile with ogg/vorbis support,"
+ @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_OGGVORBIS=yes\""
+ @${ECHO_MSG}
+.endif
+
pre-configure:
${PERL} -pi -e "s@all_includes=\"@all_includes=\"-I/usr/include @g" ${WRKSRC}/acinclude.m4 ${WRKSRC}/aclocal.m4
${PERL} -pi -e 's,kscd_compile=no,kscd_compile=yes,g; \
@@ -43,4 +63,4 @@ post-install:
@${ECHO_MSG} " # ${CHMOD} 666 /dev/racd0c"
@${ECHO_MSG}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/multimedia/kdemultimedia4/pkg-plist b/multimedia/kdemultimedia4/pkg-plist
index 147b961..14a1ef6 100644
--- a/multimedia/kdemultimedia4/pkg-plist
+++ b/multimedia/kdemultimedia4/pkg-plist
@@ -125,6 +125,8 @@ lib/libnoatunui.la
lib/libnoatunui.so
lib/libnoatunvoiceprint.la
lib/libnoatunvoiceprint.so
+%%OGGVORBIS:%%lib/liboggarts.la
+%%OGGVORBIS:%%lib/liboggarts.so
lib/libsplitplaylist.la
lib/libsplitplaylist.so
lib/libworkman.la
@@ -174,6 +176,7 @@ lib/mcop/Arts/Synth_XFADE.mcopclass
lib/mcop/Arts/VBox.mcopclass
lib/mcop/Arts/Widget.mcopclass
lib/mcop/Arts/mpg123PlayObject.mcopclass
+%%OGGVORBIS:%%lib/mcop/Arts/oggPlayObject.mcopclass
lib/mcop/ExtraStereo.mcopclass
lib/mcop/ExtraStereoGuiFactory.mcopclass
lib/mcop/Noatun/Equalizer.mcopclass
@@ -203,6 +206,8 @@ lib/mcop/mpg123arts.mcopclass
lib/mcop/mpg123arts.mcoptype
lib/mcop/noatunarts.mcopclass
lib/mcop/noatunarts.mcoptype
+%%OGGVORBIS:%%lib/mcop/oggarts.mcopclass
+%%OGGVORBIS:%%lib/mcop/oggarts.mcoptype
lib/noatun.la
lib/noatun.so
share/applnk/Multimedia/aktion.desktop
OpenPOWER on IntegriCloud