aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2013-10-26 15:55:22 +0800
committernemysis <nemysis@FreeBSD.org>2013-10-26 15:55:22 +0800
commita723d5876fc651b14204835fe635da5efe24b64f (patch)
tree7bccf171f1845202ffcfc7016a07205558a45e9d
parent1fed3a8d0e2983bf3fa925369ad3516e9e9bfe89 (diff)
downloadfreebsd-ports-gnome-a723d5876fc651b14204835fe635da5efe24b64f.tar.gz
freebsd-ports-gnome-a723d5876fc651b14204835fe635da5efe24b64f.tar.zst
freebsd-ports-gnome-a723d5876fc651b14204835fe635da5efe24b64f.zip
- Bump PORTREVISION for dependency change
- Fix portaudio2 dependency due to recent commit - Support STAGEDIR and add OPTIONS_SUB Approved by: pawel / wg (mentors, implicit)
-rw-r--r--audio/fmit/Makefile55
1 files changed, 21 insertions, 34 deletions
diff --git a/audio/fmit/Makefile b/audio/fmit/Makefile
index 3dc6c2fff262..423fda154c8b 100644
--- a/audio/fmit/Makefile
+++ b/audio/fmit/Makefile
@@ -3,7 +3,7 @@
PORTNAME= fmit
PORTVERSION= 0.99.2
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= audio
MASTER_SITES= http://download.gna.org/fmit/
DISTNAME= ${PORTNAME}-${PORTVERSION}-Source
@@ -15,11 +15,7 @@ LICENSE= GPLv2
LIB_DEPENDS= fftw3:${PORTSDIR}/math/fftw3
-OPTIONS_DEFINE= OSS ALSA PORTAUDIO JACK
-OPTIONS_DEFAULT= OSS JACK
-
USE_BZIP2= yes
-NO_STAGE= yes
USE_XORG= xmu
USE_QT4= corelib gui opengl \
linguist_build moc_build qmake_build rcc_build uic_build
@@ -27,34 +23,25 @@ USE_GL= glut
USES= cmake
INSTALLS_ICONS= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MOSS}
-CMAKE_ARGS+= -DSOUNDSYSTEM_USE_OSS:BOOL=true
-.else
-CMAKE_ARGS+= -DSOUNDSYSTEM_USE_OSS:BOOL=false
-.endif
-
-.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 ${PORT_OPTIONS:MPORTAUDIO}
-BUILD_DEPENDS+= portaudio>=19:${PORTSDIR}/audio/portaudio2
-RUN_DEPENDS+= portaudio>=19:${PORTSDIR}/audio/portaudio2
-CMAKE_ARGS+= -DSOUNDSYSTEM_USE_PORTAUDIO:BOOL=true
-.else
-CMAKE_ARGS+= -DSOUNDSYSTEM_USE_PORTAUDIO:BOOL=false
-.endif
-
-.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
+OPTIONS_DEFINE= ALSA JACK OSS PORTAUDIO
+OPTIONS_DEFAULT= JACK OSS
+
+OPTIONS_SUB= yes
+
+ALSA_LIB_DEPENDS= libasound.so.2:${PORTSDIR}/audio/alsa-lib
+ALSA_CMAKE_ON= -DSOUNDSYSTEM_USE_ALSA:BOOL=true
+ALSA_CMAKE_OFF= -DSOUNDSYSTEM_USE_ALSA:BOOL=false
+
+OSS_CMAKE_ON= -DSOUNDSYSTEM_USE_OSS:BOOL=true
+OSS_CMAKE_OFF= -DSOUNDSYSTEM_USE_OSS:BOOL=false
+
+JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
+JACK_CMAKE_ON= -DSOUNDSYSTEM_USE_JACK:BOOL=true
+JACK_CMAKE_OFF= -DSOUNDSYSTEM_USE_JACK:BOOL=false
+
+PORTAUDIO_BUILD_DEPENDS= portaudio2>=0:${PORTSDIR}/audio/portaudio2
+PORTAUDIO_RUN_DEPENDS= portaudio2>=0:${PORTSDIR}/audio/portaudio2
+PORTAUDIO_CMAKE_ON= -DSOUNDSYSTEM_USE_PORTAUDIO:BOOL=true
+PORTAUDIO_CMAKE_OFF= -DSOUNDSYSTEM_USE_PORTAUDIO:BOOL=false
.include <bsd.port.mk>