-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mpg123: move all "extra" plugings to mpg123-sdl, rename to mpg123-extras
mpg123-jack introduces a build cycle, so let's minimize the dependencies of the base mpg123 package by moving all "extras" to an mpg123-extras package that manages the individual subpackages. The mpg123-extras package can act as a meta that pulls in all the others. Closes #41301.
- Loading branch information
Showing
7 changed files
with
76 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# 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" | ||
|
||
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="libmpg123>=${version}_${revision}" | ||
short_desc="${short_desc%% - *} - SDL output plugin" | ||
pkg_install() { | ||
vmove usr/lib/mpg123/output_sdl.so | ||
} | ||
} | ||
|
||
mpg123-jack_package() { | ||
depends="libmpg123>=${version}_${revision}" | ||
short_desc="${short_desc%% - *} - JACK output plugin" | ||
pkg_install() { | ||
vmove usr/lib/mpg123/output_jack.so | ||
} | ||
} | ||
|
||
mpg123-pulseaudio_package() { | ||
depends="libmpg123>=${version}_${revision}" | ||
short_desc="${short_desc%% - *} - Pulseaudio output plugin" | ||
pkg_install() { | ||
vmove usr/lib/mpg123/output_pulse.so | ||
} | ||
} | ||
|
||
mpg123-sndio_package() { | ||
depends="libmpg123>=${version}_${revision}" | ||
short_desc="${short_desc%% - *} - sndio output plugin" | ||
pkg_install() { | ||
vmove usr/lib/mpg123/output_sndio.so | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mpg123 | ||
mpg123-extras |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mpg123 | ||
mpg123-extras |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mpg123-extras |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mpg123 | ||
mpg123-extras |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters