void-packages/srcpkgs/alsa-lib/template
2013-05-26 21:12:35 +02:00

57 lines
1.5 KiB
Text

# Template build file for 'alsa-lib'.
pkgname=alsa-lib
version=1.0.27.1
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="python-devel"
short_desc="The Advanced Linux Sound Architecture (ALSA) library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://www.alsa-project.org"
distfiles="ftp://ftp.alsa-project.org/pub/lib/$pkgname-$version.tar.bz2"
checksum=690e07a3ef6270d40ed2130638dba3c18395aae8db4a109bcc473643ce29a03b
long_desc="
The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
functionality to the Linux operating system.
This package includes the ALSA runtime libraries to simplify application
programming and provide higher level functionality as well as support for
the older OSS API, providing binary compatibility for most OSS programs."
if [ -n "$CROSS_BUILD" ]; then
# XXX python plugin
unset makedepends
hostmakedepends+=" libtool automake"
configure_args+=" --disable-python"
pre_configure() {
sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.in
autoreconf -fi
}
fi
alsa-lib-devel_package() {
depends="alsa-lib>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
}
}
alsa-lib_package() {
pkg_install() {
vmove all
}
}
if [ -z "$CROSS_BUILD" ]; then
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
}
}
fi