freebsd-ports/audio/openal-soft/Makefile
Alexey Dokuchaev cd06f7ccc0 Add FLUIDSYNTH option generic description, and remove ad-hoc setting in
ports where it is applicable (alongside with other shared descriptions).
2016-03-01 16:41:13 +00:00

54 lines
1.8 KiB
Makefile

# $FreeBSD$
PORTNAME= openal-soft
PORTVERSION= 1.16.0
PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= http://kcat.strangesoft.net/openal-releases/
MAINTAINER= mva@FreeBSD.org
COMMENT= Software implementation of the OpenAL specification
LICENSE= LGPL20
CONFLICTS= openal-200[0-9]*
USES= tar:bzip2 cmake compiler:c11
USE_LDCONFIG= yes
CMAKE_ARGS+= -DALSOFT_REQUIRE_OSS:BOOL=ON \
-DALSOFT_REQUIRE_SOLARIS:BOOL=OFF \
-DALSOFT_REQUIRE_SNDIO:BOOL=OFF \
-DALSOFT_REQUIRE_QSA:BOOL=OFF \
-DALSOFT_BACKEND_ALSA:BOOL=OFF \
-DALSOFT_BACKEND_WAVE:BOOL=ON \
-DALSOFT_UTILS:BOOL=ON \
-DALSOFT_EXAMPLES:BOOL=OFF
OPTIONS_DEFINE= FLUIDSYNTH CONFIG PORTAUDIO PULSEAUDIO
OPTIONS_SUB= yes
CONFIG_DESC= Install configuration utility (needs Qt 4.x)
#ALSA_CMAKE_ON= -DALSOFT_REQUIRE_ALSA:BOOL=ON
#ALSA_CMAKE_OFF= -DALSOFT_BACKEND_ALSA:BOOL=OFF
#ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
CONFIG_CMAKE_ON= -DALSOFT_NO_CONFIG_UTIL:BOOL=OFF
CONFIG_CMAKE_OFF= -DALSOFT_NO_CONFIG_UTIL:BOOL=ON
CONFIG_USE= QT4=gui
FLUIDSYNTH_CMAKE_ON= -DALSOFT_REQUIRE_FLUIDSYNTH:BOOL=ON
FLUIDSYNTH_CMAKE_OFF= -DALSOFT_MIDI_FLUIDSYNTH:BOOL=OFF
FLUIDSYNTH_LIB_DEPENDS= libfluidsynth.so:${PORTSDIR}/audio/fluidsynth
PORTAUDIO_CMAKE_ON= -DALSOFT_REQUIRE_PORTAUDIO:BOOL=ON
PORTAUDIO_CMAKE_OFF= -DALSOFT_BACKEND_PORTAUDIO:BOOL=OFF
PORTAUDIO_LIB_DEPENDS= libportaudio.so:${PORTSDIR}/audio/portaudio
PULSEAUDIO_CMAKE_ON= -DALSOFT_REQUIRE_PULSEAUDIO:BOOL=ON
PULSEAUDIO_CMAKE_OFF= -DALSOFT_BACKEND_PULSEAUDIO:BOOL=OFF
PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:${PORTSDIR}/audio/pulseaudio
post-patch:
@${REINPLACE_CMD} 's|/etc/openal|${ETCDIR}|' \
${WRKSRC}/Alc/alcConfig.c \
${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} 's|share/openal|${ETCDIR}|' \
${WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>