mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
media-sound/mpg123-base: add 1.33.4
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -2,3 +2,4 @@ DIST mpg123-1.32.10.tar.bz2 1118315 BLAKE2B 14cae4880436870b3adae0e98bcf33c27308
|
||||
DIST mpg123-1.33.0.tar.bz2 1120676 BLAKE2B 481151c35efa4c3756d21aefb3c3d1657b0e97cc2cb074b622413267f0005682495f303b9b5f93d3a1239e22fdd4fdeea475ddcdd263c4cffa91a2f079ed7161 SHA512 c2c6a3536f18334e310337dc2cc7d4af141c1f7fffb02fc079d645f46113581d457587c562cf353d39375d721af6716cb4db6a964ef83284e390b597744c52ea
|
||||
DIST mpg123-1.33.1.tar.bz2 1121415 BLAKE2B a77b959e36d0ce613e51a92a4a7a4e6e33aa021b9c6d590102b109634ae691aea43a391ae50740285bbf30a282f2dd7212bdaa5fe2d14195899ed0813e7ebb0c SHA512 2426281368d80ffdfa3411ae5f739463c69a241a7d0d03cc9def5cc614a772268ada7ebb4c9a18bdd9d047efc8c59427a4f8ed2ee76d78df178a9b271aaaacd1
|
||||
DIST mpg123-1.33.3.tar.bz2 1121537 BLAKE2B d4610c07d7f7c90ef5ddadf15b847705bfe780102bee94a0fee122d8bb4ede75f33682643df3105f3193e234ddffb97e8dc8540ea3f3b365830682c5c45a42a7 SHA512 509841e296dabf6039b5301e8160fcea37f13963d7bedf12082d2ce0d3bd14229fd906cb899eea2be9942fb994d9e1e4f00c757ca96f4ca7d5a14469cf13b91d
|
||||
DIST mpg123-1.33.4.tar.bz2 1122088 BLAKE2B 3af400a54e19ed93f200c006ea57db97709fed6daa1f8e6f23229a395b3dec8f38f999c24f8209fa7243be19f6c05baa2925e7016b7518378cc0668ef6b539f6 SHA512 9b7aa93b692132da7eb8dcfef12ce91bf66bf8475af50e9c57d7b80225f96c0e74264e518e558371af1f4cf6d2afda5b3dfc844949fd747db7ac7c44d0e9f6ad
|
||||
|
||||
107
media-sound/mpg123-base/mpg123-base-1.33.4.ebuild
Normal file
107
media-sound/mpg123-base/mpg123-base-1.33.4.ebuild
Normal file
@@ -0,0 +1,107 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_PN="mpg123"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
inherit flag-o-matic toolchain-funcs libtool multilib-minimal
|
||||
|
||||
DESCRIPTION="Realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3"
|
||||
HOMEPAGE="https://www.mpg123.org/"
|
||||
SRC_URI="https://downloads.sourceforge.net/${MY_PN}/${MY_P}.tar.bz2"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
|
||||
IUSE="cpu_flags_x86_3dnow cpu_flags_x86_3dnowext cpu_flags_ppc_altivec alsa coreaudio int-quality ipv6 jack cpu_flags_x86_mmx nas oss portaudio pulseaudio sdl cpu_flags_x86_sse"
|
||||
|
||||
# No MULTILIB_USEDEP here since we only build libmpg123 for non native ABIs.
|
||||
# Note: build system prefers libsdl2 > libsdl. We could in theory add both
|
||||
# but it's tricky when it comes to handling switching between them properly.
|
||||
# We'd need a USE flag for both sdl1 and sdl2 and to make them clash.
|
||||
RDEPEND="
|
||||
!<media-sound/mpg123-1.32.3-r100
|
||||
!media-libs/libmpg123
|
||||
dev-libs/libltdl:0
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-build/libtool
|
||||
virtual/pkgconfig
|
||||
"
|
||||
IDEPEND="app-eselect/eselect-mpg123"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS NEWS.libmpg123 README )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
elibtoolize # for Darwin bundles
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local _audio=
|
||||
local _cpu=generic_fpu
|
||||
|
||||
# Build fails without -D_GNU_SOURCE like this:
|
||||
# error: 'struct hostent' has no member named 'h_addr'
|
||||
append-cflags -D_GNU_SOURCE
|
||||
|
||||
filter-lto # bug #951124
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
local flag
|
||||
for flag in coreaudio pulseaudio jack alsa oss sdl portaudio nas ; do
|
||||
if use ${flag}; then
|
||||
_audio+=" ${flag/pulseaudio/pulse}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
use cpu_flags_ppc_altivec && _cpu=altivec
|
||||
if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then
|
||||
use cpu_flags_x86_sse && _cpu=x86-64
|
||||
elif use x86 && gcc-specs-pie ; then
|
||||
# Don't use any mmx, 3dnow, sse and 3dnowext (bug #164504)
|
||||
_cpu=generic_fpu
|
||||
else
|
||||
use cpu_flags_x86_mmx && _cpu=mmx
|
||||
use cpu_flags_x86_3dnow && _cpu=3dnow
|
||||
use cpu_flags_x86_sse && _cpu=x86
|
||||
use cpu_flags_x86_3dnowext && _cpu=x86
|
||||
fi
|
||||
|
||||
local myconf=(
|
||||
--with-optimization=0
|
||||
--with-audio=dummy
|
||||
--with-default-audio="${_audio} dummy"
|
||||
--with-cpu=${_cpu}
|
||||
--enable-network
|
||||
$(use_enable ipv6)
|
||||
--enable-int-quality=$(usex int-quality)
|
||||
$(multilib_native_enable programs)
|
||||
)
|
||||
|
||||
multilib_is_native_abi || myconf+=( --disable-modules )
|
||||
|
||||
ECONF_SOURCE="${S}" econf "${myconf[@]}"
|
||||
|
||||
if ! multilib_is_native_abi ; then
|
||||
sed -i -e 's:src doc:src/libmpg123:' Makefile || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
mv "${ED}"/usr/bin/mpg123{,-mpg123} || die
|
||||
find "${ED}" -type f -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect mpg123 update ifunset
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect mpg123 update ifunset
|
||||
}
|
||||
Reference in New Issue
Block a user