/[gentoo-x86]/media-sound/mpg123/mpg123-1.22.1.ebuild
Gentoo

Contents of /media-sound/mpg123/mpg123-1.22.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Apr 8 07:29:07 2015 UTC (4 years, 6 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
version bump

Signed-off-by: aballier@gentoo.org
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-1.22.0.ebuild,v 1.2 2015/03/31 19:55:21 ulm Exp $
4
5 EAPI=5
6 inherit eutils toolchain-funcs libtool multilib-minimal
7
8 DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3"
9 HOMEPAGE="http://www.mpg123.org/"
10 SRC_URI="http://www.mpg123.org/download/${P}.tar.bz2"
11
12 LICENSE="GPL-2 LGPL-2.1"
13 SLOT="0"
14 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"
15 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"
16
17 # No MULTILIB_USEDEP here since we only build libmpg123 for non native ABIs.
18 RDEPEND="app-eselect/eselect-mpg123
19 || ( dev-libs/libltdl:0 <sys-devel/libtool-2.4.3-r2:2 )
20 alsa? ( media-libs/alsa-lib )
21 jack? ( media-sound/jack-audio-connection-kit )
22 nas? ( media-libs/nas )
23 portaudio? ( media-libs/portaudio )
24 pulseaudio? ( media-sound/pulseaudio )
25 sdl? ( media-libs/libsdl )
26 abi_x86_32? (
27 !<=app-emulation/emul-linux-x86-soundlibs-20130224-r9
28 !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
29 )"
30 DEPEND="${RDEPEND}
31 sys-devel/libtool
32 virtual/pkgconfig"
33
34 DOCS=( AUTHORS ChangeLog NEWS NEWS.libmpg123 README )
35
36 src_prepare() {
37 elibtoolize # for Darwin bundles
38 }
39
40 multilib_src_configure() {
41 local _audio=dummy
42 local _output=dummy
43 local _cpu=generic_fpu
44
45 if $(multilib_is_native_abi) ; then
46 for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do
47 if use ${flag}; then
48 _audio="${_audio} ${flag/pulseaudio/pulse}"
49 _output=${flag/pulseaudio/pulse}
50 fi
51 done
52 fi
53
54 use altivec && _cpu=altivec
55
56 if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then
57 use cpu_flags_x86_sse && _cpu=x86-64
58 elif use x86 && gcc-specs-pie ; then
59 # Don't use any mmx, 3dnow, sse and 3dnowext #bug 164504
60 _cpu=generic_fpu
61 elif use x86-macos ; then
62 # ASM doesn't work quite as expected with the Darwin linker
63 _cpu=generic_fpu
64 else
65 use cpu_flags_x86_mmx && _cpu=mmx
66 use cpu_flags_x86_3dnow && _cpu=3dnow
67 use cpu_flags_x86_sse && _cpu=x86
68 use cpu_flags_x86_3dnowext && _cpu=x86
69 fi
70
71 local myconf=""
72 multilib_is_native_abi || myconf="${myconf} --disable-modules"
73
74 ECONF_SOURCE="${S}" econf \
75 --with-optimization=0 \
76 --with-audio="${_audio}" \
77 --with-default-audio=${_output} \
78 --with-cpu=${_cpu} \
79 --enable-network \
80 $(use_enable ipv6) \
81 --enable-int-quality=$(usex int-quality) \
82 ${myconf}
83
84 if ! $(multilib_is_native_abi) ; then
85 sed -i -e 's:src doc:src/libmpg123:' Makefile || die
86 fi
87 }
88
89 multilib_src_install_all() {
90 einstalldocs
91 mv "${ED}"/usr/bin/mpg123{,-mpg123}
92 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
93 }
94
95 pkg_postinst() {
96 eselect mpg123 update ifunset
97 }
98
99 pkg_postrm() {
100 eselect mpg123 update ifunset
101 }

  ViewVC Help
Powered by ViewVC 1.1.20