svn commit: r350592 - head/audio/normalize
Baptiste Daroussin
bapt at FreeBSD.org
Tue Apr 8 10:05:26 UTC 2014
Author: bapt
Date: Tue Apr 8 10:05:25 2014
New Revision: 350592
URL: http://svnweb.freebsd.org/changeset/ports/350592
QAT: https://qat.redports.org/buildarchive/r350592/
Log:
Use options helpers
Add a run dependency on perl (which also fixs normalize-mp3 shebang detection)
Modified:
head/audio/normalize/Makefile
Modified: head/audio/normalize/Makefile
==============================================================================
--- head/audio/normalize/Makefile Tue Apr 8 09:59:06 2014 (r350591)
+++ head/audio/normalize/Makefile Tue Apr 8 10:05:25 2014 (r350592)
@@ -3,16 +3,17 @@
PORTNAME= normalize
PORTVERSION= 0.7.7
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= audio
MASTER_SITES= SAVANNAH
MAINTAINER= alex at fafula.com
-COMMENT= A tool for adjusting the volume of wave/MP3 files to a standard level
+COMMENT= Tool for adjusting the volume of wave/MP3 files to a standard level
LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad
-USE_BZIP2= yes
+USES= shebangfix perl5 tar:bzip2
+USE_PERL5= run
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-helper-search
CPPFLAGS+= -I${LOCALBASE}/include
@@ -21,37 +22,16 @@ MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= XMMS MP3 OGG FLAC NLS
OPTIONS_DEFAULT= MP3
+OPTIONS_SUB= yes
XMMS_DESC= XMMS plugin
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MXMMS}
-LIB_DEPENDS+= libxmms.so:${PORTSDIR}/multimedia/xmms
-PLIST_SUB+= XMMS=""
-.else
-CONFIGURE_ARGS+=--disable-xmms
-PLIST_SUB+= XMMS="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MMP3}
-RUN_DEPENDS+= madplay:${PORTSDIR}/audio/madplay \
- lame:${PORTSDIR}/audio/lame
-.endif
-
-.if ${PORT_OPTIONS:MOGG}
-RUN_DEPENDS+= oggdec:${PORTSDIR}/audio/vorbis-tools
-.endif
-
-.if ${PORT_OPTIONS:MFLAC}
-RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+XMMS_LIB_DEPENDS= libxmms.so:${PORTSDIR}/multimedia/xmms
+XMMS_CONFIGURE_ENABLE= xmms
+MP3_RUN_DEPENDS+= madplay:${PORTSDIR}/audio/madplay \
+ lame:${PORTSDIR}/audio/lame
+OGG_RUN_DEPENDS= oggdec:${PORTSDIR}/audio/vorbis-tools
+FLAC_RUN_DEPENDS= flac:${PORTSDIR}/audio/flac
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list