freebsd-ports/audio/fmit/Makefile

61 lines
1.4 KiB
Makefile
Raw Normal View History

# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
# $FreeBSD$
PORTNAME= fmit
PORTVERSION= 0.99.2
PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= http://download.gna.org/fmit/
DISTNAME= ${PORTNAME}-${PORTVERSION}-Source
MAINTAINER= ports@FreeBSD.org
COMMENT= Free Music Instrument Tuner
LICENSE= GPLv2
LIB_DEPENDS= fftw3:${PORTSDIR}/math/fftw3
2012-06-01 08:57:16 +02:00
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
USE_GL= glut
USES= cmake
INSTALLS_ICONS= yes
.include <bsd.port.options.mk>
2012-06-01 08:57:16 +02:00
.if ${PORT_OPTIONS:MOSS}
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_OSS:BOOL=true
2012-06-01 08:57:16 +02:00
.else
CMAKE_ARGS+= -DSOUNDSYSTEM_USE_OSS:BOOL=false
.endif
2012-06-01 08:57:16 +02:00
.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
2012-06-01 08:57:16 +02:00
.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
2012-06-01 08:57:16 +02:00
.if ${PORT_OPTIONS:MJACK}
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
.endif
.include <bsd.port.mk>