2009-05-15 04:11:50 +00:00
|
|
|
# Template build file for 'alsa-lib'.
|
|
|
|
pkgname=alsa-lib
|
2013-07-09 17:16:30 +00:00
|
|
|
version=1.0.27.2
|
2014-03-09 08:47:28 +00:00
|
|
|
revision=3
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-02-17 17:23:23 +00:00
|
|
|
configure_args="--with-pythonlibs=-lpython2.7 --with-pythonincludes=-I${XBPS_CROSS_BASE}/usr/include/python2.7"
|
|
|
|
hostmakedepends="automake libtool pkg-config python-devel"
|
2013-04-12 06:55:23 +00:00
|
|
|
makedepends="python-devel"
|
2009-05-15 04:11:50 +00:00
|
|
|
short_desc="The Advanced Linux Sound Architecture (ALSA) library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-05-06 14:57:48 +00:00
|
|
|
license="LGPL-2.1"
|
2012-09-07 07:19:28 +00:00
|
|
|
homepage="http://www.alsa-project.org"
|
|
|
|
distfiles="ftp://ftp.alsa-project.org/pub/lib/$pkgname-$version.tar.bz2"
|
2013-07-09 17:16:30 +00:00
|
|
|
checksum=690ed393e7efd4fc7e3a2d2cda5449298ca0c895197e5914e350882012430d19
|
2009-05-15 04:11:50 +00:00
|
|
|
|
2014-03-09 08:47:28 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
|
|
configure_args+=" --libdir=/usr/lib32"
|
|
|
|
pre_install() {
|
|
|
|
vmkdir usr/lib
|
|
|
|
ln -s lib ${DESTDIR}/usr/lib32
|
|
|
|
}
|
|
|
|
post_install() {
|
|
|
|
rm ${DESTDIR}/usr/lib32
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
2014-02-17 17:23:23 +00:00
|
|
|
pre_configure() {
|
|
|
|
sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.in
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
2013-04-12 06:55:23 +00:00
|
|
|
|
|
|
|
alsa-lib-devel_package() {
|
|
|
|
depends="alsa-lib>=${version}"
|
2013-05-26 19:12:35 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 06:55:23 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/aclocal
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-17 17:23:23 +00:00
|
|
|
alsa-lib-python_package() {
|
|
|
|
short_desc+=" - python smixer plugin"
|
|
|
|
replaces="alsa-lib<=1.0.25"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/alsa-lib/smixer/smixer-python.so
|
2013-04-12 06:55:23 +00:00
|
|
|
}
|
2014-02-17 17:23:23 +00:00
|
|
|
}
|