aboutsummaryrefslogtreecommitdiffstats
path: root/audio/libao/Makefile
blob: 6504ba2a1d166c5f92cf37e445f11d880697da58 (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
# Created by: t.vanklaveren@student.utwente.nl
# $FreeBSD$

PORTNAME=   libao
PORTVERSION=    1.2.0
PORTREVISION=   3
CATEGORIES= audio
MASTER_SITES=   http://downloads.xiph.org/releases/ao/

MAINTAINER= naddy@FreeBSD.org
COMMENT=    Portable audio output library

LICENSE=    GPLv2

USES=       libtool pathfix pkgconfig
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-static \
        --disable-alsa \
        --disable-arts
INSTALL_TARGET= install-strip

# do not install
MAKE_ARGS=  ckport_DATA=""

OPTIONS_DEFINE= DOCS ESOUND NAS PULSEAUDIO SNDIO
OPTIONS_SUB=    yes

NAS_LIB_DEPENDS=libaudio.so:audio/nas
NAS_CONFIGURE_ENABLE=   nas

PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_ENABLE=    pulse

ESOUND_CONFIGURE_ENABLE=esd
ESOUND_USE= GNOME=esound

SNDIO_LIB_DEPENDS=  libsndio.so:audio/sndio
SNDIO_USES= localbase

post-patch:
    @${REINPLACE_CMD} -e 's|/etc/libao.conf|${PREFIX}&|' \
        ${WRKSRC}/libao.conf.5 ${WRKSRC}/include/ao/ao_private.h \
        ${WRKSRC}/doc/config.html

.include <bsd.port.mk>