From f2d7d7100687747e79db9dc41f1a3b76adfc24ed Mon Sep 17 00:00:00 2001 From: Christopher Brannon Date: Sat, 10 Oct 2015 14:53:32 -0700 Subject: [PATCH] libao: Split out some plugins into their own packages. This reduces the dependency footprint for libao considerably. --- srcpkgs/libao-pulse | 1 + srcpkgs/libao-sndio | 1 + srcpkgs/libao/template | 24 ++++++++++++++++++------ 3 files changed, 20 insertions(+), 6 deletions(-) create mode 120000 srcpkgs/libao-pulse create mode 120000 srcpkgs/libao-sndio diff --git a/srcpkgs/libao-pulse b/srcpkgs/libao-pulse new file mode 120000 index 0000000000..560aebcde6 --- /dev/null +++ b/srcpkgs/libao-pulse @@ -0,0 +1 @@ +libao \ No newline at end of file diff --git a/srcpkgs/libao-sndio b/srcpkgs/libao-sndio new file mode 120000 index 0000000000..560aebcde6 --- /dev/null +++ b/srcpkgs/libao-sndio @@ -0,0 +1 @@ +libao \ No newline at end of file diff --git a/srcpkgs/libao/template b/srcpkgs/libao/template index 73e93b2222..b96563bdc9 100644 --- a/srcpkgs/libao/template +++ b/srcpkgs/libao/template @@ -1,13 +1,11 @@ # Template file for 'libao' pkgname=libao version=1.2.0 -revision=3 +revision=4 build_style=gnu-configure configure_args="--enable-alsa-mmap" hostmakedepends="automake libtool pkg-config" -makedepends="alsa-lib-devel - $(vopt_if pulseaudio pulseaudio-devel) - $(vopt_if sndio sndio-devel)" +makedepends="alsa-lib-devel pulseaudio-devel sndio-devel" conf_files="/etc/libao.conf" homepage="http://xiph.org/ao/" 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" checksum=03ad231ad1f9d64b52474392d63c31197b0bc7bd416e58b1c10a329a5ed89caf -build_options="pulseaudio sndio" -build_options_default="pulseaudio" pre_configure() { autoreconf -fi @@ -37,3 +33,19 @@ libao-devel_package() { 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 + } +}