From d7b06c7c2aeb151390e2b467e008ee8d0991b97b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 3 Dec 2013 11:24:27 +0100 Subject: [PATCH] alsa-plugins: split plugins into -{ffmpeg,jack,pulseaudio,samplerate,speex} pkgs. --- srcpkgs/alsa-plugins-ffmpeg | 1 + srcpkgs/alsa-plugins-jack | 1 + srcpkgs/alsa-plugins-pulseaudio | 1 + srcpkgs/alsa-plugins-samplerate | 1 + srcpkgs/alsa-plugins-speex | 1 + srcpkgs/alsa-plugins/template | 51 +++++++++++++++++++++++++++------ 6 files changed, 47 insertions(+), 9 deletions(-) create mode 120000 srcpkgs/alsa-plugins-ffmpeg create mode 120000 srcpkgs/alsa-plugins-jack create mode 120000 srcpkgs/alsa-plugins-pulseaudio create mode 120000 srcpkgs/alsa-plugins-samplerate create mode 120000 srcpkgs/alsa-plugins-speex diff --git a/srcpkgs/alsa-plugins-ffmpeg b/srcpkgs/alsa-plugins-ffmpeg new file mode 120000 index 00000000000..d675d287d46 --- /dev/null +++ b/srcpkgs/alsa-plugins-ffmpeg @@ -0,0 +1 @@ +alsa-plugins \ No newline at end of file diff --git a/srcpkgs/alsa-plugins-jack b/srcpkgs/alsa-plugins-jack new file mode 120000 index 00000000000..d675d287d46 --- /dev/null +++ b/srcpkgs/alsa-plugins-jack @@ -0,0 +1 @@ +alsa-plugins \ No newline at end of file diff --git a/srcpkgs/alsa-plugins-pulseaudio b/srcpkgs/alsa-plugins-pulseaudio new file mode 120000 index 00000000000..d675d287d46 --- /dev/null +++ b/srcpkgs/alsa-plugins-pulseaudio @@ -0,0 +1 @@ +alsa-plugins \ No newline at end of file diff --git a/srcpkgs/alsa-plugins-samplerate b/srcpkgs/alsa-plugins-samplerate new file mode 120000 index 00000000000..d675d287d46 --- /dev/null +++ b/srcpkgs/alsa-plugins-samplerate @@ -0,0 +1 @@ +alsa-plugins \ No newline at end of file diff --git a/srcpkgs/alsa-plugins-speex b/srcpkgs/alsa-plugins-speex new file mode 120000 index 00000000000..d675d287d46 --- /dev/null +++ b/srcpkgs/alsa-plugins-speex @@ -0,0 +1 @@ +alsa-plugins \ No newline at end of file diff --git a/srcpkgs/alsa-plugins/template b/srcpkgs/alsa-plugins/template index bf1b7bd4952..661685d32c0 100644 --- a/srcpkgs/alsa-plugins/template +++ b/srcpkgs/alsa-plugins/template @@ -1,7 +1,7 @@ # Template build file for 'alsa-plugins'. pkgname=alsa-plugins version=1.0.27 -revision=2 +revision=3 build_style=gnu-configure configure_args="--disable-maemo-plugin --with-speex=lib" hostmakedepends="pkg-config" @@ -13,19 +13,52 @@ license="GPL-2, LGPL-2.1" homepage="http://www.alsa-project.org" distfiles="ftp://ftp.alsa-project.org/pub/plugins/$pkgname-$version.tar.bz2" checksum=0bbd0c37c2dd7baf16363afb2e58169ffb0f9c0a70031b3b6235594630f3ab35 -long_desc=" - The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI - functionality to the Linux operating system. - This package includes some ALSA extra plugins for PulseAudio, Speex, - FFmpeg's libavcodec library and libsamplerate." +alsa-plugins-jack_package() { + replaces="alsa-plugins<1.0.27_3" + short_desc+=" - Jack output plugin" + pkg_install() { + vmove "usr/lib/alsa-lib/*jack*" + } +} -post_install() { - vinstall ${FILESDIR}/asound.conf 644 etc +alsa-plugins-pulseaudio_package() { + replaces="alsa-plugins<1.0.27_3" + short_desc+=" - Pulseaudio output plugin" + conf_files="/etc/asound.conf" + pkg_install() { + vmove "usr/lib/alsa-lib/*pulse*" + vmove "usr/share/alsa/alsa.conf.d/*pulse*" + vinstall ${FILESDIR}/asound.conf 644 etc + } +} + +alsa-plugins-speex_package() { + replaces="alsa-plugins<1.0.27_3" + short_desc+=" - Speex resample plugin" + pkg_install() { + vmove "usr/lib/alsa-lib/*speex*" + } +} + +alsa-plugins-samplerate_package() { + replaces="alsa-plugins<1.0.27_3" + short_desc+=" - libsamplerate resample plugin" + pkg_install() { + vmove "usr/lib/alsa-lib/*samplerate*" + } +} + +alsa-plugins-ffmpeg_package() { + replaces="alsa-plugins<1.0.27_3" + short_desc+=" - libavcodec/a52 plugins" + pkg_install() { + vmove "usr/lib/alsa-lib/*lavc*" + vmove "usr/lib/alsa-lib/*a52*" + } } alsa-plugins_package() { - conf_files="/etc/asound.conf" pkg_install() { vmove all }