aboutsummaryrefslogtreecommitdiffstats
path: root/audio/openal-soft/Makefile
blob: bd72677254a973ef2876f3a04d60b4aa32b2e3e0 (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
# 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.12.854
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

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
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
CMAKE_ARGS+=    -DPULSEAUDIO:BOOL=ON
.else
CMAKE_ARGS+=    -DPULSEAUDIO:BOOL=OFF
.endif

.include <bsd.port.post.mk>