ports/120199: audio/mp3splt: make dependency on ogg vorbis optional
Oleg Pudeyev
oleg at bsdpower.com
Fri Feb 1 05:50:01 UTC 2008
>Number: 120199
>Category: ports
>Synopsis: audio/mp3splt: make dependency on ogg vorbis optional
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Feb 01 05:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Oleg Pudeyev
>Release: 6.2-RELEASE
>Organization:
>Environment:
FreeBSD kappa.universe 6.2-RELEASE FreeBSD 6.2-RELEASE #2: Wed Jul 18 01:25:26 EDT 2007 root at kappa.universe:/build/src/sys/i386/compile/KAPPA i386
>Description:
Attached patch against Makefile makes dependency on ogg vorbis in mp3splt optional.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/mp3splt/Makefile,v
retrieving revision 1.19
diff -u -r1.19 Makefile
--- Makefile 28 Jul 2007 12:27:12 -0000 1.19
+++ Makefile 1 Feb 2008 05:46:32 -0000
@@ -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,9 +16,18 @@
MAINTAINER= uspoerlein at 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" \
@@ -31,4 +40,4 @@
MAN1= mp3splt.1
PLIST_FILES= bin/mp3splt bin/oggsplt
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list