diff options
author | bapt <bapt@FreeBSD.org> | 2012-05-30 19:27:09 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-05-30 19:27:09 +0800 |
commit | d633fdc3ccb2d5e384b8108b537c4351e18df961 (patch) | |
tree | f98b167dd58a4decdca7369d4d679604cecea2e5 /audio | |
parent | c7c1e543242717e71011033152384a5237c6b2a3 (diff) | |
download | freebsd-ports-gnome-d633fdc3ccb2d5e384b8108b537c4351e18df961.tar.gz freebsd-ports-gnome-d633fdc3ccb2d5e384b8108b537c4351e18df961.tar.zst freebsd-ports-gnome-d633fdc3ccb2d5e384b8108b537c4351e18df961.zip |
Convert to new options framework
Diffstat (limited to 'audio')
-rw-r--r-- | audio/grip/Makefile | 30 | ||||
-rw-r--r-- | audio/jack/Makefile | 7 |
2 files changed, 15 insertions, 22 deletions
diff --git a/audio/grip/Makefile b/audio/grip/Makefile index 33da1554ad9b..8abdedf1cf19 100644 --- a/audio/grip/Makefile +++ b/audio/grip/Makefile @@ -24,18 +24,12 @@ USE_AUTOTOOLS= libtool CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -OPTIONS= CDPARANOIA "Ripper: Enable cdparanoia support" on \ - CDDA2WAV "Ripper: cdda2wav: Install sysutils/cdrtools" off -.if defined(PACKAGE_BUILDING) -OPTIONS+= LAME "Encoder: lame: Install audio/lame" off \ - VORBIS "Encoder: oggenc: Install audio/vorbis-tools" on -.else -OPTIONS+= LAME "Encoder: lame: Install audio/lame" on \ - VORBIS "Encoder: oggenc: Install audio/vorbis-tools" off +OPTIONS_DEFINE= CDPARANOIA CDDA2WAV LAME VORBIS FAAC FLAC GOGO +OPTIONS_DEFAULT= CDPARANOIA VORBIS + +.if !defined(PACKAGE_BUILDING) +OPTIONS_DEFAULT+= LAME .endif -OPTIONS+= FAAC "Encoder: faac: Install audio/faac" off \ - FLAC "Encoder: flac: Install audio/flac" off \ - GOGO "Encoder: gogo: Install audio/gogo" off .include <bsd.port.pre.mk> @@ -45,34 +39,34 @@ DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE} DEFAULT_CDROM_DEVICE=/dev/acd0 .endif -.if !defined(WITHOUT_CDPARANOIA) +.if ${PORT_OPTIONS:MCDPARANOIA} LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia CONFIGURE_ARGS+= --enable-cdpar .else CONFIGURE_ARGS+= --disable-cdpar .endif -.if defined(WITH_CDDA2WAV) +.if ${PORT_OPTIONS:MCDDA2WAV} USE_CDRTOOLS= yes .endif -.if defined(WITH_FAAC) +.if ${PORT_OPTIONS:MFAAC} RUN_DEPENDS+= faac:${PORTSDIR}/audio/faac .endif -.if defined(WITH_FLAC) +.if ${PORT_OPTIONS:MFLAC} RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac .endif -.if defined(WITH_GOGO) +.if ${PORT_OPTIONS:MGOGO} RUN_DEPENDS+= gogo:${PORTSDIR}/audio/gogo .endif -.if !defined(WITHOUT_LAME) +.if ${PORT_OPTIONS:MLAME} RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame .endif -.if defined(WITH_VORBIS) +.if ${PORT_OPTIONS:MVORBIS} RUN_DEPENDS+= ogg123:${PORTSDIR}/audio/vorbis-tools .endif diff --git a/audio/jack/Makefile b/audio/jack/Makefile index 25156e6ec81a..be9e42a84d6b 100644 --- a/audio/jack/Makefile +++ b/audio/jack/Makefile @@ -35,12 +35,11 @@ USE_GNOME= pkgconfig gnomehack MAN1= jackd.1 jackstart.1 -OPTIONS= ALSA "Build with ALSA compatibility library" off \ - DOCS "Build documentation" off +OPTIONS_DEFINE= ALSA DOCS .include <bsd.port.pre.mk> -.if defined(WITH_DOCS) && !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen PLIST_SUB+= DOCS="" .else @@ -52,7 +51,7 @@ PLIST_SUB+= DOCS="@comment " LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline .endif -.if defined(WITH_ALSA) +.if ${PORT_OPTIONS:MALSA} LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib PLIST_SUB+= ALSA="" .else |