1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/audio/openal-soft/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

46 lines
1.1 KiB
Makefile

# New ports collection makefile for: openal-soft
# Date created: 2009-02-01
# Whom: Marcus von Appen <mva@sysfault.org>
#
# $FreeBSD$
#
PORTNAME= openal-soft
PORTVERSION= 1.13
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
USE_CMAKE= yes
USE_LDCONFIG= yes
CMAKE_USE_PTHREAD= yes
CMAKE_ARGS+= -DALSA:BOOL=OFF -DPORTAUDIO:BOOL=OFF -DSOLARIS:BOOL=OFF \
-DDSOUND:BOOL=OFF -DALSOFT_CONFIG:BOOL=ON
OPTIONS= PULSEAUDIO "Enable sound streaming using PulseAudio" off
.include <bsd.port.pre.mk>
.if defined(WITH_PULSEAUDIO)
LIB_DEPENDS+= pulse-simple.0:${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|alsoft.conf|alsoft.conf.sample|' \
${WRKSRC}/CMakeLists.txt
.include <bsd.port.post.mk>