From 760315577e3aac7601aa5bbb065fbca1991f27f8 Mon Sep 17 00:00:00 2001 From: Brian Feldman Date: Tue, 23 Mar 2004 17:23:50 +0000 Subject: [PATCH] Add the ability to install the XMMS plugin (WITH_XMMS option). --- audio/normalize/Makefile | 15 +++++++++++++-- audio/normalize/pkg-plist | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/audio/normalize/Makefile b/audio/normalize/Makefile index e99e1d34506e..d57cacde03be 100644 --- a/audio/normalize/Makefile +++ b/audio/normalize/Makefile @@ -7,7 +7,7 @@ PORTNAME= normalize PORTVERSION= 0.7.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= audio MASTER_SITES= http://www1.cs.columbia.edu/~cvaill/normalize/ @@ -16,17 +16,28 @@ COMMENT= A tool for adjusting the volume of wave/MP3 files to a standard level LIB_DEPENDS= mad.2:${PORTSDIR}/audio/mad +OPTIONS= XMMS "Build XMMS plugin" off +.include +.if defined(WITH_XMMS) +LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms +.endif + USE_BZIP2= yes USE_GETOPT_LONG= yes USE_GETTEXT= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +.if defined(WITH_XMMS) +PLIST_SUB+= XMMS="" +.else CONFIGURE_ARGS= --disable-xmms +PLIST_SUB+= XMMS="@comment " +.endif MAN1= normalize.1 normalize-mp3.1 CPPFLAGS= -I${LOCALBASE}/include LDFLAGS= -L${LOCALBASE}/lib -.include +.include diff --git a/audio/normalize/pkg-plist b/audio/normalize/pkg-plist index 56c71fd7ec6c..75ac7d7929d3 100644 --- a/audio/normalize/pkg-plist +++ b/audio/normalize/pkg-plist @@ -1,5 +1,6 @@ bin/normalize bin/normalize-mp3 bin/normalize-ogg +%%XMMS%%lib/xmms/Effect/librva.so share/locale/en_GB/LC_MESSAGES/normalize.mo share/locale/fr/LC_MESSAGES/normalize.mo