summaryrefslogtreecommitdiff
path: root/audio/mp3splt
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2008-02-03 04:43:18 +0000
committerBeech Rintoul <beech@FreeBSD.org>2008-02-03 04:43:18 +0000
commite8718b5a575db5998a4c03a6a40d8d7974c434f7 (patch)
treec07af7c2ba78cc5c7e5850ad1bb3fb541e8ce3ed /audio/mp3splt
parentUpdate to 2.3.4. (diff)
- Add option (ogg vorbis)
PR: ports/120199 Submitted by: Oleg Pudeyev <oleg@bsdpower.com> Approved by: Ulrich Spoerlein <uspoerlein@gmail.com> (maintainer)
Notes
Notes: svn path=/head/; revision=206657
Diffstat (limited to 'audio/mp3splt')
-rw-r--r--audio/mp3splt/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/audio/mp3splt/Makefile b/audio/mp3splt/Makefile
index 8b6ba33c3f00..127b9dd1c22e 100644
--- a/audio/mp3splt/Makefile
+++ b/audio/mp3splt/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mp3splt
PORTVERSION= 2.1c
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -16,19 +16,27 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= uspoerlein@gmail.com
COMMENT= Utility to split mp3 and ogg files (via CUE sheets)
-LIB_DEPENDS= mad.2:${PORTSDIR}/audio/libmad \
- vorbis.4:${PORTSDIR}/audio/libvorbis \
+OPTIONS= VORBIS "Ogg Vorbis support" On
+
+.include <bsd.port.pre.mk>
+
+LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad
+
+.if !defined(WITHOUT_VORBIS)
+LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis \
ogg.5:${PORTSDIR}/audio/libogg
+.else
+CONFIGURE_ARGS+=--disable-ogg
+.endif
GNU_CONFIGURE= yes
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-USE_GETOPT_LONG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAN1= mp3splt.1
PLIST_FILES= bin/mp3splt bin/oggsplt
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>