From 01995dedb84f264737b62e9498e1726a891fad18 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 26 Oct 2011 17:27:25 +0200 Subject: [PATCH] mpg123: new subpkgs -alsa, -jack, -pulseaudio, -sdl. ALSA by default. --- srcpkgs/mpg123-alsa | 1 + srcpkgs/mpg123-jack | 1 + srcpkgs/mpg123-pulseaudio | 1 + srcpkgs/mpg123-sdl | 1 + srcpkgs/mpg123/depends | 2 +- srcpkgs/mpg123/libmpg123.template | 11 ++++------- srcpkgs/mpg123/mpg123-alsa.template | 17 +++++++++++++++++ srcpkgs/mpg123/mpg123-jack.template | 17 +++++++++++++++++ srcpkgs/mpg123/mpg123-pulseaudio.template | 17 +++++++++++++++++ srcpkgs/mpg123/mpg123-sdl.template | 17 +++++++++++++++++ srcpkgs/mpg123/template | 11 +++++++---- 11 files changed, 84 insertions(+), 12 deletions(-) create mode 120000 srcpkgs/mpg123-alsa create mode 120000 srcpkgs/mpg123-jack create mode 120000 srcpkgs/mpg123-pulseaudio create mode 120000 srcpkgs/mpg123-sdl create mode 100644 srcpkgs/mpg123/mpg123-alsa.template create mode 100644 srcpkgs/mpg123/mpg123-jack.template create mode 100644 srcpkgs/mpg123/mpg123-pulseaudio.template create mode 100644 srcpkgs/mpg123/mpg123-sdl.template diff --git a/srcpkgs/mpg123-alsa b/srcpkgs/mpg123-alsa new file mode 120000 index 00000000000..9e68ce8491a --- /dev/null +++ b/srcpkgs/mpg123-alsa @@ -0,0 +1 @@ +mpg123 \ No newline at end of file diff --git a/srcpkgs/mpg123-jack b/srcpkgs/mpg123-jack new file mode 120000 index 00000000000..9e68ce8491a --- /dev/null +++ b/srcpkgs/mpg123-jack @@ -0,0 +1 @@ +mpg123 \ No newline at end of file diff --git a/srcpkgs/mpg123-pulseaudio b/srcpkgs/mpg123-pulseaudio new file mode 120000 index 00000000000..9e68ce8491a --- /dev/null +++ b/srcpkgs/mpg123-pulseaudio @@ -0,0 +1 @@ +mpg123 \ No newline at end of file diff --git a/srcpkgs/mpg123-sdl b/srcpkgs/mpg123-sdl new file mode 120000 index 00000000000..9e68ce8491a --- /dev/null +++ b/srcpkgs/mpg123-sdl @@ -0,0 +1 @@ +mpg123 \ No newline at end of file diff --git a/srcpkgs/mpg123/depends b/srcpkgs/mpg123/depends index 6f1ee8491a9..299a8606bb8 100644 --- a/srcpkgs/mpg123/depends +++ b/srcpkgs/mpg123/depends @@ -1,2 +1,2 @@ -abi_depends=">=1.13.4" +abi_depends=">=1.13.4_1" api_depends="${abi_depends}" diff --git a/srcpkgs/mpg123/libmpg123.template b/srcpkgs/mpg123/libmpg123.template index 1e4fb60a250..e65094590a1 100644 --- a/srcpkgs/mpg123/libmpg123.template +++ b/srcpkgs/mpg123/libmpg123.template @@ -3,17 +3,14 @@ short_desc="${short_desc} - Runtime library" long_desc="${long_desc} - This package contains the runtime." + This package contains the runtime library." Add_dependency run glibc Add_dependency run libltdl -Add_dependency run libpulseaudio -Add_dependency run SDL -Add_dependency run alsa-lib -Add_dependency run libjack -do_install() -{ +revision=1 + +do_install() { vmove "usr/lib/*.so*" usr/lib vmove usr/lib/mpg123 usr/lib } diff --git a/srcpkgs/mpg123/mpg123-alsa.template b/srcpkgs/mpg123/mpg123-alsa.template new file mode 100644 index 00000000000..6562f57d9bf --- /dev/null +++ b/srcpkgs/mpg123/mpg123-alsa.template @@ -0,0 +1,17 @@ +# Template file for 'mpg123-alsa'. +# +short_desc="${short_desc} - ALSA output plugin" +long_desc="${long_desc} + + This package contains the ALSA plugin for output." + +Add_dependency run glibc +Add_dependency run libltdl +Add_dependency run libmpg123 +Add_dependency run alsa-lib + +replaces="libmpg123<1.13.4_1" + +do_install() { + vmove usr/lib/mpg123/output_alsa.so usr/lib/mpg123 +} diff --git a/srcpkgs/mpg123/mpg123-jack.template b/srcpkgs/mpg123/mpg123-jack.template new file mode 100644 index 00000000000..9582d67a68b --- /dev/null +++ b/srcpkgs/mpg123/mpg123-jack.template @@ -0,0 +1,17 @@ +# Template file for 'mpg123-jack'. +# +short_desc="${short_desc} - JACK output plugin" +long_desc="${long_desc} + + This package contains the JACK output plugin." + +Add_dependency run glibc +Add_dependency run libltdl +Add_dependency run libmpg123 +Add_dependency run libjack + +replaces="libmpg123<1.13.4_1" + +do_install() { + vmove usr/lib/mpg123/output_jack.so usr/lib/mpg123 +} diff --git a/srcpkgs/mpg123/mpg123-pulseaudio.template b/srcpkgs/mpg123/mpg123-pulseaudio.template new file mode 100644 index 00000000000..25c32810df8 --- /dev/null +++ b/srcpkgs/mpg123/mpg123-pulseaudio.template @@ -0,0 +1,17 @@ +# Template file for 'mpg123-pulseaudio'. +# +short_desc="${short_desc} - Pulseaudio output plugin" +long_desc="${long_desc} + + This package contains the Pulseaudio output plugin." + +Add_dependency run glibc +Add_dependency run libltdl +Add_dependency run libmpg123 +Add_dependency run libpulseaudio + +replaces="libmpg123<1.13.4_1" + +do_install() { + vmove usr/lib/mpg123/output_pulse.so usr/lib/mpg123 +} diff --git a/srcpkgs/mpg123/mpg123-sdl.template b/srcpkgs/mpg123/mpg123-sdl.template new file mode 100644 index 00000000000..a345bfcc358 --- /dev/null +++ b/srcpkgs/mpg123/mpg123-sdl.template @@ -0,0 +1,17 @@ +# Template file for 'mpg123-sdl'. +# +short_desc="${short_desc} - SDL output plugin" +long_desc="${long_desc} + + This package contains the SDL output plugin." + +Add_dependency run glibc +Add_dependency run libltdl +Add_dependency run libmpg123 +Add_dependency run SDL + +replaces="libmpg123<1.13.4_1" + +do_install() { + vmove usr/lib/mpg123/output_sdl.so usr/lib/mpg123 +} diff --git a/srcpkgs/mpg123/template b/srcpkgs/mpg123/template index e9133df87ab..105e0b1e74b 100644 --- a/srcpkgs/mpg123/template +++ b/srcpkgs/mpg123/template @@ -1,11 +1,12 @@ # Template file for 'mpg123' pkgname=mpg123 version=1.13.4 +revision=1 distfiles="http://www.${pkgname}.de/download/${pkgname}-${version}.tar.bz2" build_style=gnu-configure -configure_args=" ---with-module-suffix=.so ---with-optimization=4" +configure_args="--with-module-suffix=.so --with-optimization=4 +--with-default-audio=alsa --with-audio=pulse,jack,alsa,sdl +--enable-ipv6=yes --enable-network=yes" short_desc="Fast console mpeg audio decoder/player." maintainer="davehome " homepage="http://www.mpg123.de/" @@ -17,11 +18,13 @@ long_desc=" math, along with several special optimizations (3DNow, SSE, ARM, ...) to make it most efficient." -subpackages="lib$pkgname $pkgname-devel" +subpackages="${pkgname}-alsa ${pkgname}-jack ${pkgname}-pulseaudio +${pkgname}-sdl lib${pkgname} ${pkgname}-devel" Add_dependency run glibc Add_dependency run libltdl Add_dependency run libmpg123 +Add_dependency run mpg123-alsa # default output plugin Add_dependency build libltdl-devel Add_dependency build pulseaudio-devel