summaryrefslogtreecommitdiff
path: root/media-sound
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2015-08-13 09:10:39 +0200
committerLars Wendler <polynomial-c@gentoo.org>2015-08-13 09:10:39 +0200
commitd31f58dfc8fd7b179a8a28060e23fff311ac124f (patch)
tree69c404ffc670f41ba38bc287b6e2ba5df8da19df /media-sound
parentc31a2f2cf7e5508a98e3bf5aa40cda71040e3cb4 (diff)
downloadgentoo-d31f58dfc8fd7b179a8a28060e23fff311ac124f.tar.gz
gentoo-d31f58dfc8fd7b179a8a28060e23fff311ac124f.tar.xz
media-sound/mpg123: Version bump.
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/mpg123/Manifest1
-rw-r--r--media-sound/mpg123/mpg123-1.22.4.ebuild101
2 files changed, 102 insertions, 0 deletions
diff --git a/media-sound/mpg123/Manifest b/media-sound/mpg123/Manifest
index 742a1c67ba8..bdc99550804 100644
--- a/media-sound/mpg123/Manifest
+++ b/media-sound/mpg123/Manifest
@@ -6,3 +6,4 @@ DIST mpg123-1.21.0.tar.bz2 863177 SHA256 3ad197f77c9ffdf3601e1c3183ae0709ccb3c3d
DIST mpg123-1.22.0.tar.bz2 854090 SHA256 25244c07dcb1df0a94092d94126c4172918739fe0e78faaaf97cf0b0fcc1a800 SHA512 b9ac9b95e2627949b32a4c3175e2ad1dda43986222750903e565696e03ef751ee545707ad081a5c06160d199ccae841c90d228082df4d9db841987e973ac5eda WHIRLPOOL fe9a599a5d8433564bc3615a453c5f7205f175438bb296c67efbeeed8d101733e7d302bd327dc90aa3a2d34553b63623955f106422dad36f2f80446942d6ea9d
DIST mpg123-1.22.1.tar.bz2 854802 SHA256 a0eb598e5bd72cee4c1b7603fa227b7bd54575aa84b7b94a35ca05dd3536cdba SHA512 bb7bb43e1ce3be22c24835aa7a8e91863f39d855d5b66d03b1989fffa14784117f65374301c8e38f3f58a6fe93f07a66c181b2d2f2eb24ca7b81c6a83bd648c4 WHIRLPOOL 1b7435ee0b362241f88243e4876ca0bb3e27bbc488010561b007f6fa2a5d87265a2e8de170159a73d8ab9c3e525a47a8c6114c5ba7f4b57b363419fa5d040220
DIST mpg123-1.22.2.tar.bz2 870063 SHA256 6d1e2487777114ba8a73c543f355cacfa2055646724000fc195ac9e64c843744 SHA512 503fb42ec6cf69ded895adfb81fd0e05d02f34b5e4e35a0eeaa041c5bc855d26c02a9c7103735e00ab2155b201128c4e0b1e1efed87a183c6e66b66b5a887236 WHIRLPOOL 590076210ef7459a57d1d075dfc525f11e7409ae96f953b97a001969b2ab5afd36ad55c18199a61623a93108b9890f27d232b1de850981b199c155701705147a
+DIST mpg123-1.22.4.tar.bz2 870889 SHA256 5069e02e50138600f10cc5f7674e44e9bf6f1930af81d0e1d2f869b3c0ee40d2 SHA512 d8552b3522fa58647cee7c43227737993851452a15dc6d3ae6948c6c62d4a8f6064e2b284f170413aa3f805a3f3e1a6f1faac7d19daddd25c6790863e4925212 WHIRLPOOL 079ac4dacbee6bbfb915a84c1f2c5738f1edff69b75a7d1c1e6bc9b323c2e1d574985c91339c5ecab8cc0de93d72fc95c8c278676a92511da0c23d210d64a0dd
diff --git a/media-sound/mpg123/mpg123-1.22.4.ebuild b/media-sound/mpg123/mpg123-1.22.4.ebuild
new file mode 100644
index 00000000000..f9b87d365a2
--- /dev/null
+++ b/media-sound/mpg123/mpg123-1.22.4.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils toolchain-funcs libtool multilib-minimal
+
+DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3"
+HOMEPAGE="http://www.mpg123.org/"
+SRC_URI="http://www.mpg123.org/download/${P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="cpu_flags_x86_3dnow cpu_flags_x86_3dnowext alsa altivec 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.
+RDEPEND="app-eselect/eselect-mpg123
+ || ( dev-libs/libltdl:0 <sys-devel/libtool-2.4.3-r2:2 )
+ alsa? ( media-libs/alsa-lib )
+ jack? ( media-sound/jack-audio-connection-kit )
+ nas? ( media-libs/nas )
+ portaudio? ( media-libs/portaudio )
+ pulseaudio? ( media-sound/pulseaudio )
+ sdl? ( media-libs/libsdl )
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-soundlibs-20130224-r9
+ !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
+ )"
+DEPEND="${RDEPEND}
+ sys-devel/libtool
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog NEWS NEWS.libmpg123 README )
+
+src_prepare() {
+ elibtoolize # for Darwin bundles
+}
+
+multilib_src_configure() {
+ local _audio=dummy
+ local _output=dummy
+ local _cpu=generic_fpu
+
+ if $(multilib_is_native_abi) ; then
+ for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do
+ if use ${flag}; then
+ _audio+=" ${flag/pulseaudio/pulse}"
+ _output=${flag/pulseaudio/pulse}
+ fi
+ done
+ fi
+
+ use 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
+ elif use x86-macos ; then
+ # ASM doesn't work quite as expected with the Darwin linker
+ _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=""
+ multilib_is_native_abi || myconf="${myconf} --disable-modules"
+
+ ECONF_SOURCE="${S}" econf \
+ --with-optimization=0 \
+ --with-audio="${_audio}" \
+ --with-default-audio=${_output} \
+ --with-cpu=${_cpu} \
+ --enable-network \
+ $(use_enable ipv6) \
+ --enable-int-quality=$(usex int-quality) \
+ ${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}
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
+}
+
+pkg_postinst() {
+ eselect mpg123 update ifunset
+}
+
+pkg_postrm() {
+ eselect mpg123 update ifunset
+}