Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jun 2013 22:31: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: r320973 - head/audio/grip
Message-ID:  <201306142231.r5EMVQA6003382@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Jun 14 22:31:25 2013
New Revision: 320973
URL: http://svnweb.freebsd.org/changeset/ports/320973

Log:
  Use new options helpers

Modified:
  head/audio/grip/Makefile

Modified: head/audio/grip/Makefile
==============================================================================
--- head/audio/grip/Makefile	Fri Jun 14 22:25:52 2013	(r320972)
+++ head/audio/grip/Makefile	Fri Jun 14 22:31:25 2013	(r320973)
@@ -12,7 +12,7 @@ MAINTAINER=	multimedia@FreeBSD.org
 COMMENT=	GTK front-end to external cd rippers and audio encoders
 
 LIB_DEPENDS=	id3-3.8.3:${PORTSDIR}/audio/id3lib \
-		curl.6:${PORTSDIR}/ftp/curl
+		curl:${PORTSDIR}/ftp/curl
 
 USE_XORG=	x11
 USES=		pathfix pkgconfig
@@ -29,7 +29,17 @@ OPTIONS_DEFAULT=	CDPARANOIA VORBIS
 OPTIONS_DEFAULT+=	LAME
 .endif
 
-.include <bsd.port.pre.mk>
+OPTIONS_SUB=	yes
+
+CDPARANOIA_LIB_DEPENDS=	cdda_paranoia:${PORTSDIR}/audio/cdparanoia
+CDPARANOIA_CONFIGURE_ENABLE=	cdpar
+CDDA2WAV_RUN_DEPENDS=	cdda2wav:${PORTSDIR}/sysutils/cdrtools
+FAAC_RUN_DEPENDS=	faac:${PORTSDIR}/audio/faac
+FLAC_RUN_DEPENDS=	flac:${PORTSDIR}/audio/flac
+LAME_RUN_DEPENDS=	lame:${PORTSDIR}/audio/lame
+VORBIS_RUN_DEPENDS=	ogg123:${PORTSDIR}/audio/vorbis-tools
+NLS_USES=	gettext
+NLS_CONFIGURE_OFF=	--disable-nls
 
 .if defined(WITH_CDROM_DEVICE)
 DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE}
@@ -37,41 +47,6 @@ DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE
 DEFAULT_CDROM_DEVICE=/dev/acd0
 .endif
 
-.if ${PORT_OPTIONS:MCDPARANOIA}
-LIB_DEPENDS+=	cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia
-CONFIGURE_ARGS+=	--enable-cdpar
-.else
-CONFIGURE_ARGS+=	--disable-cdpar
-.endif
-
-.if ${PORT_OPTIONS:MCDDA2WAV}
-RUN_DEPENDS+=	cdda2wav:${PORTSDIR}/sysutils/cdrtools
-.endif
-
-.if ${PORT_OPTIONS:MFAAC}
-RUN_DEPENDS+=	faac:${PORTSDIR}/audio/faac
-.endif
-
-.if ${PORT_OPTIONS:MFLAC}
-RUN_DEPENDS+=	flac:${PORTSDIR}/audio/flac
-.endif
-
-.if ${PORT_OPTIONS:MLAME}
-RUN_DEPENDS+=	lame:${PORTSDIR}/audio/lame
-.endif
-
-.if ${PORT_OPTIONS:MVORBIS}
-RUN_DEPENDS+=	ogg123:${PORTSDIR}/audio/vorbis-tools
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-USES+=	gettext
-PLIST_SUB+=	NLS=""
-.else
-CONFIGURE_ARGS+=	--disable-nls
-PLIST_SUB+=		NLS="@comment "
-.endif
-
 pre-everything::
 .if !defined(WITH_CDROM_DEVICE)
 	@${ECHO_MSG} "===> The default CDROM device is ${DEFAULT_CDROM_DEVICE}"
@@ -86,4 +61,4 @@ post-patch:
 		s|{"l3enc","-br %b %w %m","mp3"},|{"faac","--no-midside -w -q 100 --artist %a --album %d --track %t --title %n --year %y --genre %g -b %b %w -o %m", "m4a"},|' \
 		${WRKSRC}/src/gripcfg.c
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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