summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-06-14 22:31:25 +0000
committerbapt <bapt@FreeBSD.org>2013-06-14 22:31:25 +0000
commit518cc90500837a865bd7934e3435e4d70c47446f (patch)
tree21e0539dbc5f532548f71575677e614568aea335
parent1a778c5ae570c7f830bb404fcd4633daaf09093d (diff)
downloadFreeBSD-ports-518cc90500837a865bd7934e3435e4d70c47446f.zip
FreeBSD-ports-518cc90500837a865bd7934e3435e4d70c47446f.tar.gz
Use new options helpers
-rw-r--r--audio/grip/Makefile51
1 files changed, 13 insertions, 38 deletions
diff --git a/audio/grip/Makefile b/audio/grip/Makefile
index 0e8ef30..e538e80 100644
--- a/audio/grip/Makefile
+++ b/audio/grip/Makefile
@@ -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>
OpenPOWER on IntegriCloud