1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/audio/openal-soft/Makefile
Marcus von Appen 83e8407ad1 - Enable stage support
- Convert to new LIB_DEPENDS format
2013-09-29 11:31:53 +00:00

44 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= openal-soft
PORTVERSION= 1.15.1
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://kcat.strangesoft.net/openal-releases/
MAINTAINER= mva@FreeBSD.org
COMMENT= A software implementation of the OpenAL specification
CONFLICTS= openal-200[0-9]*
USE_BZIP2= yes
USES= cmake
USE_LDCONFIG= yes
CMAKE_ARGS+= -DALSA:BOOL=OFF -DPORTAUDIO:BOOL=OFF -DSOLARIS:BOOL=OFF \
-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
OPTIONS_DEFINE= PULSEAUDIO
PULSEAUDIO_DESC= Enable sound streaming using PulseAudio
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPULSEAUDIO}
LIB_DEPENDS+= libpulse-simple.so:${PORTSDIR}/audio/pulseaudio
CFLAGS+= -Iinclude -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CMAKE_ARGS+= -DPULSEAUDIO:BOOL=ON
.else
CMAKE_ARGS+= -DPULSEAUDIO:BOOL=OFF
.endif
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>