Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2014 10:05:26 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350592 - head/audio/normalize
Message-ID:  <201404081005.s38A5Qd2042212@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404081005.s38A5Qd2042212>