blob: dc5be0b72db73bb75412ab1145d2b7459b673d3c (
plain)
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
|
# New ports collection makefile for: alsa-lib
# Date created: June 29, 2009
# Whom: Aragon Gouveia <aragon@phat.za.net>
#
# $FreeBSD$
#
PORTNAME= alsa-lib
PORTVERSION= 1.0.23
CATEGORIES= audio
MASTER_SITES= ftp://ftp.silug.org/pub/alsa/lib/ \
ftp://gd.tuwien.ac.at/opsys/linux/alsa/lib/ \
http://dl.ambiweb.de/mirrors/ftp.alsa-project.org/lib/ \
ftp://ftp.alsa-project.org/pub/lib/
MAINTAINER= aragon@phat.za.net
COMMENT= ALSA compatibility library
USE_BZIP2= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-aload --disable-python
post-patch: .SILENT
${REINPLACE_CMD} -e '/LIBS/ { s/-ldl//g; s/-lrt//g; }' \
-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
${REINPLACE_CMD} \
'/pkgconfigdir/s|$$(libdir)|$$(prefix)/libdata|g' \
${WRKSRC}/utils/Makefile.in
post-install:
${INSTALL_DATA} ${FILESDIR}/asound.conf.sample ${PREFIX}/etc
@if [ ! -f ${PREFIX}/etc/asound.conf ]; then \
${CP} -p ${PREFIX}/etc/asound.conf.sample \
${PREFIX}/etc/asound.conf ; \
fi
.include <bsd.port.mk>
|