2013-09-20 16:36:35 +02:00
|
|
|
# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
|
2007-09-08 20:28:13 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= fmit
|
2011-08-26 05:33:52 +02:00
|
|
|
PORTVERSION= 0.99.2
|
2012-08-05 00:52:02 +02:00
|
|
|
PORTREVISION= 3
|
2007-09-08 20:28:13 +02:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://download.gna.org/fmit/
|
2011-08-26 05:33:52 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-Source
|
2007-09-08 20:28:13 +02:00
|
|
|
|
2010-10-25 22:09:06 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2007-09-08 20:28:13 +02:00
|
|
|
COMMENT= Free Music Instrument Tuner
|
|
|
|
|
2011-10-18 16:01:38 +02:00
|
|
|
LICENSE= GPLv2
|
2011-08-26 05:33:52 +02:00
|
|
|
|
2011-10-18 16:01:38 +02:00
|
|
|
LIB_DEPENDS= fftw3:${PORTSDIR}/math/fftw3
|
2007-09-08 20:28:13 +02:00
|
|
|
|
2012-06-01 08:57:16 +02:00
|
|
|
OPTIONS_DEFINE= OSS ALSA PORTAUDIO JACK
|
|
|
|
OPTIONS_DEFAULT= OSS JACK
|
2011-09-05 23:46:35 +02:00
|
|
|
|
2011-08-26 05:33:52 +02:00
|
|
|
USE_BZIP2= yes
|
2013-09-20 16:36:35 +02:00
|
|
|
NO_STAGE= yes
|
2012-08-05 00:52:02 +02:00
|
|
|
USE_XORG= xmu
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= corelib gui opengl \
|
2011-10-18 16:01:38 +02:00
|
|
|
linguist_build moc_build qmake_build rcc_build uic_build
|
2011-08-26 05:33:52 +02:00
|
|
|
USE_GL= glut
|
2013-03-22 21:06:14 +01:00
|
|
|
USES= cmake
|
2011-10-18 16:01:38 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2007-09-08 20:28:13 +02:00
|
|
|
|
2011-10-18 16:01:38 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-06-01 08:57:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MOSS}
|
2011-10-18 16:01:38 +02:00
|
|
|
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_OSS:BOOL=true
|
2012-06-01 08:57:16 +02:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_OSS:BOOL=false
|
2011-10-18 16:01:38 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-01 08:57:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MALSA}
|
2011-10-18 16:01:38 +02:00
|
|
|
LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib
|
|
|
|
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_ALSA:BOOL=true
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_ALSA:BOOL=false
|
|
|
|
.endif
|
|
|
|
|
2012-06-01 08:57:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MPORTAUDIO}
|
2011-10-18 16:01:38 +02:00
|
|
|
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
|
|
|
|
|
2012-06-01 08:57:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MJACK}
|
2011-10-18 16:01:38 +02:00
|
|
|
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
|
|
|
|
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_JACK:BOOL=true
|
2012-06-01 08:57:16 +02:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_JACK:BOOL=false
|
2011-10-18 16:01:38 +02:00
|
|
|
.endif
|
|
|
|
|
2007-09-08 20:28:13 +02:00
|
|
|
.include <bsd.port.mk>
|