summaryrefslogtreecommitdiffstats
path: root/audio/darkice/Makefile
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2005-10-30 19:15:53 +0000
committerehaupt <ehaupt@FreeBSD.org>2005-10-30 19:15:53 +0000
commit1088915548eb05f6e76682bbf675146964e4d123 (patch)
tree588c7bbafe6208fb8d908fc67884e60ebe676b74 /audio/darkice/Makefile
parente18328eabf3ad7c9abcf33cd43ad474840669a21 (diff)
downloadFreeBSD-ports-1088915548eb05f6e76682bbf675146964e4d123.zip
FreeBSD-ports-1088915548eb05f6e76682bbf675146964e4d123.tar.gz
- Update to 0.16
- Provide optional VORBIS, LAME, FAAD, JACK support - Update pkg-descr PR: 88186 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'audio/darkice/Makefile')
-rw-r--r--audio/darkice/Makefile27
1 files changed, 23 insertions, 4 deletions
diff --git a/audio/darkice/Makefile b/audio/darkice/Makefile
index 574941e..31b2de6 100644
--- a/audio/darkice/Makefile
+++ b/audio/darkice/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= darkice
-PORTVERSION= 0.15
+PORTVERSION= 0.16
CATEGORIES= audio net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -15,7 +15,10 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= An IceCast, IceCast2 and ShoutCast live audio streamer
-LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis
+OPTIONS= VORBIS "Ogg Vorbis support" on \
+ LAME "LAME support for MP3" off \
+ FAAD "FAAC support for AAC" off \
+ JACK "Jack support" off
USE_REINPLACE= yes
GNU_CONFIGURE= yes
@@ -28,6 +31,14 @@ MAN1= darkice.1
MAN5= darkice.cfg.5
PLIST_FILES= bin/darkice etc/darkice.cfg
+.include <bsd.port.pre.mk>
+
+.if defined(WITHOUT_VORBIS)
+CONFIGURE_ARGS+= --without-vorbis
+.else
+LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
+.endif
+
.if defined(WITH_LAME)
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame
CONFIGURE_ARGS+= --with-lame-prefix=${LOCALBASE}
@@ -35,6 +46,13 @@ CONFIGURE_ARGS+= --with-lame-prefix=${LOCALBASE}
CONFIGURE_ARGS+= --without-lame
.endif
+.if defined(WITH_FAAC)
+LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac
+CONFIGURE_ARGS+= --with-faac-prefix=${LOCALBASE}
+.else
+CONFIGURE_ARGS+= --without-faac
+.endif
+
.if defined(WITH_JACK)
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
.else
@@ -42,9 +60,10 @@ CONFIGURE_ARGS+= --without-jack
.endif
post-patch:
- @${REINPLACE_CMD} -e 's|PTHREAD_CFLAGS=.*$$|PTHREAD_CFLAGS=|g ; \
+ @${REINPLACE_CMD} -e '/test/s|==|=|g ; \
+ s|PTHREAD_CFLAGS=.*$$|PTHREAD_CFLAGS=|g ; \
s|PTHREAD_LIBS=.*$$|PTHREAD_LIBS=|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|-O2 -pedantic||g' ${WRKSRC}/src/Makefile.in
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud