Merge pull request #2725 from CMB/ao

libao: Split out some plugins into their own packages.
This commit is contained in:
Juan RP 2015-10-11 09:38:37 +02:00
commit 0fd35f5f1b
3 changed files with 20 additions and 6 deletions

1
srcpkgs/libao-pulse Symbolic link
View File

@ -0,0 +1 @@
libao

1
srcpkgs/libao-sndio Symbolic link
View File

@ -0,0 +1 @@
libao

View File

@ -1,13 +1,11 @@
# Template file for 'libao' # Template file for 'libao'
pkgname=libao pkgname=libao
version=1.2.0 version=1.2.0
revision=3 revision=4
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-alsa-mmap" configure_args="--enable-alsa-mmap"
hostmakedepends="automake libtool pkg-config" hostmakedepends="automake libtool pkg-config"
makedepends="alsa-lib-devel makedepends="alsa-lib-devel pulseaudio-devel sndio-devel"
$(vopt_if pulseaudio pulseaudio-devel)
$(vopt_if sndio sndio-devel)"
conf_files="/etc/libao.conf" conf_files="/etc/libao.conf"
homepage="http://xiph.org/ao/" homepage="http://xiph.org/ao/"
short_desc="Cross-platform audio output library" short_desc="Cross-platform audio output library"
@ -16,8 +14,6 @@ license="GPL-2"
distfiles="http://downloads.xiph.org/releases/ao/${pkgname}-${version}.tar.gz" distfiles="http://downloads.xiph.org/releases/ao/${pkgname}-${version}.tar.gz"
checksum=03ad231ad1f9d64b52474392d63c31197b0bc7bd416e58b1c10a329a5ed89caf checksum=03ad231ad1f9d64b52474392d63c31197b0bc7bd416e58b1c10a329a5ed89caf
build_options="pulseaudio sndio"
build_options_default="pulseaudio"
pre_configure() { pre_configure() {
autoreconf -fi autoreconf -fi
@ -37,3 +33,19 @@ libao-devel_package() {
vmove usr/share/aclocal vmove usr/share/aclocal
} }
} }
libao-pulse_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc="The pulseaudio plugin for libao"
pkg_install() {
vmove usr/lib/ao/plugins-4/libpulse.so
}
}
libao-sndio_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc="The sndio plugin for libao"
pkg_install() {
vmove usr/lib/ao/plugins-4/libsndio.so
}
}