diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-08-21 19:42:34 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-08-21 19:42:34 +0800 |
commit | 479734f9833a467ce695be95fdba9222ea881cb8 (patch) | |
tree | 3cf951fcabbe548637e335eecd2f9c604c9d2493 /multimedia/kdemultimedia4/Makefile | |
parent | 030ea3eb8a5367e40aa134bdf821be617914bd97 (diff) | |
download | freebsd-ports-gnome-479734f9833a467ce695be95fdba9222ea881cb8.tar.gz freebsd-ports-gnome-479734f9833a467ce695be95fdba9222ea881cb8.tar.zst freebsd-ports-gnome-479734f9833a467ce695be95fdba9222ea881cb8.zip |
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/kdemultimedia4/Makefile')
-rw-r--r-- | multimedia/kdemultimedia4/Makefile | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/multimedia/kdemultimedia4/Makefile b/multimedia/kdemultimedia4/Makefile index 1f20ad44c648..14b7428adcfb 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> |