mpg123: remove pkg options; features are separated per pkg.

This commit is contained in:
Juan RP 2013-05-25 08:41:45 +02:00
parent b057e57be1
commit 3c3b198960

View file

@ -6,7 +6,7 @@ build_style=gnu-configure
configure_args="--with-module-suffix=.so --with-optimization=4
--with-default-audio=alsa --enable-ipv6=yes --enable-network=yes"
hostmakedepends="pkg-config"
makedepends="alsa-lib-devel libltdl-devel"
makedepends="alsa-lib-devel libltdl-devel jack-devel pulseaudio-devel SDL-devel"
short_desc="Fast console mpeg audio decoder/player"
maintainer="davehome <davehome@redthumb.info.tm>"
homepage="http://www.mpg123.de/"
@ -19,60 +19,39 @@ long_desc="
math, along with several special optimizations (3DNow, SSE, ARM, ...) to make
it most efficient."
# Package build options
build_options="jack pulseaudio sdl"
desc_option_jack="Enable building the JACK module"
desc_option_pulseaudio="Enable building the Pulseaudio module"
desc_option_sdl="Enable building the SDL module"
build_options_default="${build_options}"
if [ "$build_option_jack" ]; then
makedepends+=" jack-devel"
mpg123-jack_package() {
depends="libmpg123>=${version}"
short_desc+=" - JACK output plugin"
replaces="libmpg123<1.13.4_1"
do_install() {
vmove usr/lib/mpg123/output_jack.so
}
mpg123-jack_package() {
depends="libmpg123>=${version}"
short_desc+=" - JACK output plugin"
replaces="libmpg123<1.13.4_1"
pkg_install() {
vmove usr/lib/mpg123/output_jack.so
}
}
fi
if [ "$build_option_pulseaudio" ]; then
makedepends+=" pulseaudio-devel"
mpg123-pulseaudio_package() {
depends="libmpg123>=${version}"
short_desc+=" - Pulseaudio output plugin"
replaces="libmpg123<1.13.4_1"
do_install() {
vmove usr/lib/mpg123/output_pulse.so
}
mpg123-pulseaudio_package() {
depends="libmpg123>=${version}"
short_desc+=" - Pulseaudio output plugin"
replaces="libmpg123<1.13.4_1"
pkg_install() {
vmove usr/lib/mpg123/output_pulse.so
}
}
fi
if [ "$build_option_sdl" ]; then
makedepends+=" SDL-devel"
mpg123-sdl_package() {
depends="libmpg123>=${version}"
short_desc+=" - SDL output plugin"
replaces="libmpg123<1.13.4_1"
do_install() {
vmove usr/lib/mpg123/output_sdl.so
}
mpg123-sdl_package() {
depends="libmpg123>=${version}"
short_desc+=" - SDL output plugin"
replaces="libmpg123<1.13.4_1"
pkg_install() {
vmove usr/lib/mpg123/output_sdl.so
}
fi
}
mpg123-alsa_package() {
depends="libmpg123>=${version}"
short_desc+=" - ALSA output plugin"
replaces="libmpg123<1.13.4_1"
pkg_install() {
vmove usr/lib/mpg123/output_alsa.so
vmove usr/lib/mpg123/output_alsa.so
}
}