aboutsummaryrefslogtreecommitdiffstats
path: root/audio/openal-soft/Makefile
blob: f334002c11d544ca0d2ff1917ac22b0281f3dd2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# $FreeBSD$

PORTNAME=   openal-soft
PORTVERSION=    1.18.1
CATEGORIES= audio
MASTER_SITES=   http://kcat.strangesoft.net/openal-releases/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Software implementation of the OpenAL specification

LICENSE=    LGPL20+
LICENSE_FILE=   ${WRKSRC}/COPYING

CONFLICTS=  openal-200[0-9]*

USES=       tar:bzip2 cmake compiler:c11
USE_LDCONFIG=   yes
LLD_UNSAFE= yes
CMAKE_ARGS= -DSHARE_INSTALL_DIR:STRING=${ETCDIR} \
        -DALSOFT_REQUIRE_OSS:BOOL=OFF \
        -DALSOFT_REQUIRE_JACK:BOOL=OFF \
        -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_EXAMPLES:BOOL=OFF \
        -DALSOFT_UTILS:BOOL=ON

OPTIONS_DEFINE=     EXAMPLES FLUIDSYNTH CONFIG OSS JACK PORTAUDIO \
            PULSEAUDIO SNDIO
OPTIONS_DEFAULT=    OSS
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:audio/alsa-lib
CONFIG_CMAKE_ON=    -DALSOFT_NO_CONFIG_UTIL:BOOL=OFF
CONFIG_CMAKE_OFF=   -DALSOFT_NO_CONFIG_UTIL:BOOL=ON
CONFIG_USE=     QT4=corelib,gui,qmake_build,moc_build,rcc_build,uic_build
FLUIDSYNTH_CMAKE_ON=    -DALSOFT_REQUIRE_FLUIDSYNTH:BOOL=ON
FLUIDSYNTH_CMAKE_OFF=   -DALSOFT_MIDI_FLUIDSYNTH:BOOL=OFF
FLUIDSYNTH_LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth
OSS_CMAKE_ON=       -DALSOFT_REQUIRE_OSS:BOOL=ON
OSS_CMAKE_OFF=      -DALSOFT_BACKEND_OSS:BOOL=OFF
JACK_CMAKE_ON=      -DALSOFT_REQUIRE_JACK:BOOL=ON
JACK_CMAKE_OFF=     -DALSOFT_BACKEND_JACK:BOOL=OFF
JACK_LIB_DEPENDS=   libjack.so:audio/jack
PORTAUDIO_CMAKE_ON= -DALSOFT_REQUIRE_PORTAUDIO:BOOL=ON
PORTAUDIO_CMAKE_OFF=    -DALSOFT_BACKEND_PORTAUDIO:BOOL=OFF
PORTAUDIO_LIB_DEPENDS=  libportaudio.so:audio/portaudio
PULSEAUDIO_CMAKE_ON=    -DALSOFT_REQUIRE_PULSEAUDIO:BOOL=ON
PULSEAUDIO_CMAKE_OFF=   -DALSOFT_BACKEND_PULSEAUDIO:BOOL=OFF
PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio
SNDIO_CMAKE_ON=     -DALSOFT_REQUIRE_SNDIO:BOOL=ON
SNDIO_CMAKE_OFF=    -DALSOFT_BACKEND_SNDIO:BOOL=OFF
SNDIO_LIB_DEPENDS=  libsndio.so:audio/sndio

post-patch:
    @${REINPLACE_CMD} 's|/etc/openal|${ETCDIR}|' \
        ${WRKSRC}/Alc/alcConfig.c
    @${REINPLACE_CMD} 's|$${CMAKE_INSTALL_DATADIR}/openal|${ETCDIR}|' \
        ${WRKSRC}/CMakeLists.txt

post-install-EXAMPLES-on:
    (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \
        ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>