freebsd-ports/audio/alsa-utils/Makefile
Florian Smeets d3c505e600 - update to 1.0.26 [1]
- use newly added alphasort() instead of LGPLv2.1+ patch
- fix async handler [2]
- fix implicit declarations of calloc/free [3]
- disable ARIFF_OSS option by default, except 7.x [4]
- add 3 more mirrors from alsa wiki + gentoo as a backup
- move alsa mirrors to bsd.sites.mk

Changes:	http://www.alsa-project.org/main/index.php/Changes_v1.0.25_v1.0.26
PR:		ports/171601 [1]
PR:		ports/169770 [2]
PR:		ports/170457 [3]
PR:		ports/170473 [4]
Obtained from:	PkgSrc [2]
Submitted by:	Jan Beich <jbeich@tormail.org>
Approved by:	maintainer
2012-10-04 17:04:44 +00:00

64 lines
1.7 KiB
Makefile

# New ports collection makefile for: alsa-utils
# Date created: June 29, 2009
# Whom: Aragon Gouveia <aragon@phat.za.net>
#
# $FreeBSD$
#
PORTNAME= alsa-utils
PORTVERSION= 1.0.26
CATEGORIES= audio
MASTER_SITES= ALSA/utils \
GENTOO/distfiles
MAINTAINER= aragon@phat.za.net
COMMENT= ALSA compatibility utils
LIB_DEPENDS= asound:${PORTSDIR}/audio/alsa-lib
RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
MAN1_EN= aconnect.1 alsactl.1 alsaloop.1 alsamixer.1 amidi.1 amixer.1 aplay.1 aplaymidi.1 \
arecordmidi.1 aseqdump.1 aseqnet.1 iecset.1 speaker-test.1
MAN8= alsaconf.8
MLINKS= aplay.1 arecord.1
_MANPAGES+= ${PREFIX}/man/fr/man8/${MAN8}
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
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
post-patch: .SILENT
${REINPLACE_CMD} '/LIBS/s/-ldl//g' ${WRKSRC}/configure
${REINPLACE_CMD} -e '/install-data-am:/,/^$$/ \
s/install-dist_udevrulesDATA//' \
${WRKSRC}/alsactl/Makefile.in
${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>