Add the ability to install the XMMS plugin (WITH_XMMS option).

This commit is contained in:
Brian Feldman 2004-03-23 17:23:50 +00:00
parent 093f420733
commit 760315577e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105072
2 changed files with 14 additions and 2 deletions

View File

@ -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 <bsd.port.pre.mk>
.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 <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -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