2013-09-20 16:36:35 +02:00
|
|
|
# Created by: Aragon Gouveia <aragon@phat.za.net>
|
2010-06-05 14:43:25 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= alsa-lib
|
2016-08-05 03:51:43 +02:00
|
|
|
PORTVERSION= 1.1.2
|
2010-06-05 14:43:25 +02:00
|
|
|
CATEGORIES= audio
|
2016-04-01 22:45:03 +02:00
|
|
|
MASTER_SITES= ftp://ftp.alsa-project.org/pub/lib/ \
|
2015-05-14 12:15:04 +02:00
|
|
|
GENTOO
|
2010-06-05 14:43:25 +02:00
|
|
|
|
2015-01-20 23:03:55 +01:00
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
2010-06-05 14:43:25 +02:00
|
|
|
COMMENT= ALSA compatibility library
|
2011-10-29 10:45:31 +02:00
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= LGPL21+
|
2014-08-09 17:20:35 +02:00
|
|
|
|
2015-12-09 04:17:49 +01:00
|
|
|
USES= cpe libtool:keepla tar:bzip2
|
2010-06-05 14:43:25 +02:00
|
|
|
USE_LDCONFIG= yes
|
2015-12-09 04:17:49 +01:00
|
|
|
CPE_VENDOR= alsa
|
2010-06-05 14:43:25 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2016-08-05 03:51:43 +02:00
|
|
|
CONFIGURE_ENV= ac_cv_header_endian_h=no
|
2013-10-03 18:34:28 +02:00
|
|
|
CONFIGURE_ARGS= --with-pkgconfdir="\$${prefix}/libdata/pkgconfig"
|
2014-06-26 16:38:04 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2015-10-13 20:01:57 +02:00
|
|
|
TEST_ENV= ${MAKE_ENV} ALSA_CONFIG_PATH="${FILESDIR}/asound.conf.sample"
|
|
|
|
TEST_TARGET= check
|
2014-08-09 17:20:35 +02:00
|
|
|
CPPFLAGS+= -I${FILESDIR}
|
2013-10-03 18:34:28 +02:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= PYTHON
|
2014-08-09 17:20:35 +02:00
|
|
|
OPTIONS_SUB= yes
|
2013-10-03 18:34:28 +02:00
|
|
|
|
2014-08-09 17:20:35 +02:00
|
|
|
PYTHON_CONFIGURE_ENABLE=python
|
2015-01-03 09:47:51 +01:00
|
|
|
PYTHON_USES= python:2
|
2010-06-05 14:43:25 +02:00
|
|
|
|
|
|
|
post-patch: .SILENT
|
|
|
|
${REINPLACE_CMD} -e '/LIBS/ { s/-ldl//g; s/-lrt//g; }' \
|
2013-10-03 18:34:28 +02:00
|
|
|
-e 's/python-config/${PYTHON_CMD:T}-config/g' \
|
2014-08-09 17:20:35 +02:00
|
|
|
-e '/pythonlibs/s/--libs/--ldflags/' \
|
2015-11-10 23:43:16 +01:00
|
|
|
-e '/_GNU_SOURCE/d' \
|
2010-06-05 14:43:25 +02:00
|
|
|
-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:
|
2013-10-03 18:34:28 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/asound.conf.sample ${STAGEDIR}${PREFIX}/etc
|
2010-06-05 14:43:25 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|