73 lines
2.1 KiB
Bash
73 lines
2.1 KiB
Bash
# Template file for 'mpg123-extras'
|
|
# Sync with mpg123
|
|
pkgname=mpg123-extras
|
|
version=1.31.1
|
|
revision=3
|
|
build_style=gnu-configure
|
|
# --with-cpu not necessary, upstream detects features correctly
|
|
configure_args="--with-optimization=0 --with-default-audio=alsa"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="alsa-lib-devel SDL2-devel jack-devel pulseaudio-devel sndio-devel"
|
|
depends="mpg123-sdl mpg123-jack mpg123-pulseaudio mpg123-sndio"
|
|
short_desc="Fast console MPEG audio decoder/player - extra plugins"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-only"
|
|
homepage="https://www.mpg123.org/"
|
|
changelog="https://www.mpg123.org/cgi-bin/scm/mpg123/trunk/NEWS"
|
|
distfiles="${SOURCEFORGE_SITE}/mpg123/mpg123-${version}.tar.bz2
|
|
https://www.mpg123.org/download/mpg123-${version}.tar.bz2"
|
|
checksum="5dcb0936efd44cb583498b6585845206f002a7b19d5066a2683be361954d955a
|
|
5dcb0936efd44cb583498b6585845206f002a7b19d5066a2683be361954d955a"
|
|
|
|
# Restrict extras to the same matching version, ignore revision
|
|
_depends="libmpg123>=${version}_1<=${version}_9999"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
configure_args+=" --disable-lfs-alias"
|
|
fi
|
|
|
|
post_install() {
|
|
# Prune everything except the plugins that will be installed
|
|
find ${DESTDIR} \
|
|
'(' -name output_sdl.so \
|
|
-o -name output_jack.so \
|
|
-o -name output_pulse.so \
|
|
-o -name output_sndio.so \
|
|
')' -o '(' -not -type d -delete ')'
|
|
|
|
# Main package cannot be empty
|
|
vdoc README
|
|
}
|
|
|
|
mpg123-sdl_package() {
|
|
depends="${_depends}"
|
|
short_desc="${short_desc%% - *} - SDL output plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/mpg123/output_sdl.so
|
|
}
|
|
}
|
|
|
|
mpg123-jack_package() {
|
|
depends="${_depends}"
|
|
short_desc="${short_desc%% - *} - JACK output plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/mpg123/output_jack.so
|
|
}
|
|
}
|
|
|
|
mpg123-pulseaudio_package() {
|
|
depends="${_depends}"
|
|
short_desc="${short_desc%% - *} - Pulseaudio output plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/mpg123/output_pulse.so
|
|
}
|
|
}
|
|
|
|
mpg123-sndio_package() {
|
|
depends="${_depends}"
|
|
short_desc="${short_desc%% - *} - sndio output plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/mpg123/output_sndio.so
|
|
}
|
|
}
|