2009-02-02 10:31:47 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= openal-soft
|
2012-12-19 08:55:02 +01:00
|
|
|
PORTVERSION= 1.15.1
|
2009-02-02 10:31:47 +01:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://kcat.strangesoft.net/openal-releases/
|
|
|
|
|
2009-02-19 22:45:43 +01:00
|
|
|
MAINTAINER= mva@FreeBSD.org
|
2009-02-02 10:31:47 +01:00
|
|
|
COMMENT= A software implementation of the OpenAL specification
|
|
|
|
|
|
|
|
CONFLICTS= openal-200[0-9]*
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_CMAKE= yes
|
|
|
|
USE_LDCONFIG= yes
|
2009-03-18 21:28:17 +01:00
|
|
|
CMAKE_ARGS+= -DALSA:BOOL=OFF -DPORTAUDIO:BOOL=OFF -DSOLARIS:BOOL=OFF \
|
2012-12-19 08:55:02 +01:00
|
|
|
-DDSOUND:BOOL=OFF -DSNDIO:BOOL=OFF -DEXAMPLES:BOOL=OFF \
|
|
|
|
-DMMDEVAPI:BOOL=OFF -DWINMM:BOOL=OFF -DCOREAUDIO:BOOL=OFF \
|
|
|
|
-DOPENSL:BOOL=OFF -DALSOFT_CONFIG:BOOL=ON
|
2009-02-02 10:31:47 +01:00
|
|
|
|
2012-10-24 20:08:50 +02:00
|
|
|
OPTIONS_DEFINE= PULSEAUDIO
|
|
|
|
PULSEAUDIO_DESC= Enable sound streaming using PulseAudio
|
2009-07-05 22:25:36 +02:00
|
|
|
|
2012-10-24 20:08:50 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2009-07-05 22:25:36 +02:00
|
|
|
|
2012-10-24 20:08:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MPULSEAUDIO}
|
|
|
|
LIB_DEPENDS+= pulse-simple:${PORTSDIR}/audio/pulseaudio
|
2009-10-03 11:41:27 +02:00
|
|
|
CFLAGS+= -Iinclude -I${LOCALBASE}/include
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2009-07-05 22:25:36 +02:00
|
|
|
CMAKE_ARGS+= -DPULSEAUDIO:BOOL=ON
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DPULSEAUDIO:BOOL=OFF
|
|
|
|
.endif
|
|
|
|
|
2010-09-21 07:39:17 +02:00
|
|
|
post-patch:
|
2010-09-20 23:36:29 +02:00
|
|
|
@${REINPLACE_CMD} 's|/etc/openal|${ETCDIR}|' \
|
|
|
|
${WRKSRC}/Alc/alcConfig.c \
|
|
|
|
${WRKSRC}/CMakeLists.txt
|
2012-12-19 08:55:02 +01:00
|
|
|
@${REINPLACE_CMD} 's|share/openal|${ETCDIR}|' \
|
2010-09-20 23:36:29 +02:00
|
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
|
2012-10-24 20:08:50 +02:00
|
|
|
.include <bsd.port.mk>
|