aboutsummaryrefslogtreecommitdiffstats
path: root/audio/alsa-lib/Makefile
blob: df97ad9e32b24a073976f9b250d9c9962cf20d32 (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
# Created by: Aragon Gouveia <aragon@phat.za.net>
# $FreeBSD$

PORTNAME=   alsa-lib
PORTVERSION=    1.0.29
CATEGORIES= audio
MASTER_SITES=   ALSA/lib \
        GENTOO

MAINTAINER= jbeich@FreeBSD.org
COMMENT=    ALSA compatibility library

LICENSE=    LGPL21 # or any later version

USES=       libtool:keepla tar:bzip2
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-pkgconfdir="\$${prefix}/libdata/pkgconfig"
INSTALL_TARGET= install-strip
CPPFLAGS+=  -I${FILESDIR}

OPTIONS_DEFINE= PYTHON
OPTIONS_SUB=    yes

PYTHON_CONFIGURE_ENABLE=python
PYTHON_USES=    python:2

post-patch: .SILENT
    ${REINPLACE_CMD} -e '/LIBS/ { s/-ldl//g; s/-lrt//g; }' \
        -e 's/python-config/${PYTHON_CMD:T}-config/g' \
        -e '/pythonlibs/s/--libs/--ldflags/' \
        -e '/-D_GNU_SOURCE/d' \
        -e '/lt_cv_dlopen/s/-ldl//g' ${WRKSRC}/configure
    ${REINPLACE_CMD} '/LIBADD/s/-ldl//g' \
        ${WRKSRC}/modules/mixer/simple/Makefile.in
    ${REINPLACE_CMD} 's|/etc|${PREFIX}&|g' \
        ${WRKSRC}/src/conf/alsa.conf

post-install:
    ${INSTALL_DATA} ${FILESDIR}/asound.conf.sample ${STAGEDIR}${PREFIX}/etc

.include <bsd.port.mk>