aboutsummaryrefslogtreecommitdiffstats
path: root/audio/fmit
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-06-01 14:57:16 +0800
committerbapt <bapt@FreeBSD.org>2012-06-01 14:57:16 +0800
commitb557076221bc64a31bd5b376790cb714f486c893 (patch)
treeba92db0751c943ce993ff1ab39dfac9c225c1981 /audio/fmit
parent8033973ca84c7935f11bc3068cf3a5d5f6287da8 (diff)
downloadfreebsd-ports-gnome-b557076221bc64a31bd5b376790cb714f486c893.tar.gz
freebsd-ports-gnome-b557076221bc64a31bd5b376790cb714f486c893.tar.zst
freebsd-ports-gnome-b557076221bc64a31bd5b376790cb714f486c893.zip
Convert to new options framework
Diffstat (limited to 'audio/fmit')
-rw-r--r--audio/fmit/Makefile22
1 files changed, 10 insertions, 12 deletions
diff --git a/audio/fmit/Makefile b/audio/fmit/Makefile
index d89ac9aa9e9a..57c46481984c 100644
--- a/audio/fmit/Makefile
+++ b/audio/fmit/Makefile
@@ -19,10 +19,8 @@ LICENSE= GPLv2
LIB_DEPENDS= fftw3:${PORTSDIR}/math/fftw3
-OPTIONS= OSS "Enable OSS support" on \
- ALSA "Enable ALSA support" off \
- PORTAUDIO "Enable PortAudio support" off \
- JACK "Enable JACK support" on \
+OPTIONS_DEFINE= OSS ALSA PORTAUDIO JACK
+OPTIONS_DEFAULT= OSS JACK
USE_BZIP2= yes
USE_QT_VER= 4
@@ -35,20 +33,20 @@ MAKE_JOBS_SAFE= yes
.include <bsd.port.options.mk>
-.if defined(WITHOUT_OSS)
-CMAKE_ARGS+= -DSOUNDSYSTEM_USE_OSS:BOOL=false
-.else
+.if ${PORT_OPTIONS:MOSS}
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_OSS:BOOL=true
+.else
+CMAKE_ARGS+= -DSOUNDSYSTEM_USE_OSS:BOOL=false
.endif
-.if defined(WITH_ALSA)
+.if ${PORT_OPTIONS:MALSA}
LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_ALSA:BOOL=true
.else
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_ALSA:BOOL=false
.endif
-.if defined(WITH_PORTAUDIO)
+.if ${PORT_OPTIONS:MPORTAUDIO}
BUILD_DEPENDS+= portaudio>=19:${PORTSDIR}/audio/portaudio2
RUN_DEPENDS+= portaudio>=19:${PORTSDIR}/audio/portaudio2
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_PORTAUDIO:BOOL=true
@@ -56,11 +54,11 @@ CMAKE_ARGS+= -DSOUNDSYSTEM_USE_PORTAUDIO:BOOL=true
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_PORTAUDIO:BOOL=false
.endif
-.if defined(WITHOUT_JACK)
-CMAKE_ARGS+= -DSOUNDSYSTEM_USE_JACK:BOOL=false
-.else
+.if ${PORT_OPTIONS:MJACK}
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_JACK:BOOL=true
+.else
+CMAKE_ARGS+= -DSOUNDSYSTEM_USE_JACK:BOOL=false
.endif
.include <bsd.port.mk>