blob: 1e8a2dcb71fe4d01555684b2b9cc5d9d2b4f44bf (
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
47
48
49
50
51
52
53
|
# Created by: Aragon Gouveia <aragon@phat.za.net>
# $FreeBSD$
PORTNAME= alsa-utils
PORTVERSION= 1.0.27.2
CATEGORIES= audio
MASTER_SITES= ALSA/utils \
GENTOO/distfiles
MAINTAINER= aragon@phat.za.net
COMMENT= ALSA compatibility utils
LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
USE_BZIP2= yes
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-udev-rules-dir="\$${prefix}/lib/udev"
CFLAGS+= -I${LOCALBASE}/include
OPTIONS_DEFINE= XMLTO NLS
OPTIONS_DEFAULT=XMLTO
XMLTO_DESC= Generate alsactl_init(7) man page using xmlto(1)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MXMLTO}
BUILD_DEPENDS+= xmlto:${PORTSDIR}/textproc/xmlto
MAN7_EN+= alsactl_init.7
.else
CONFIGURE_ARGS+=--disable-xmlto
.endif
.if empty(PORT_OPTIONS:MNLS)
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
LDFLAGS+= -L${LOCALBASE}/lib -lintl
USES+= gettext
PLIST_SUB+= NLS=""
.endif
post-patch: .SILENT
${REINPLACE_CMD} -e '/LIBS/s/-ldl//g; /LIBRT/s/-lrt//g;' \
${WRKSRC}/configure
${FIND} -E ${WRKSRC} -type f -regex \
'.*\.([[:digit:]]|spec\.in|csv|xml)' -exec \
${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
-e 's|/etc/asound\.conf|${LOCALBASE}&|g' {} +
.include <bsd.port.mk>
|