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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Jun 22 04:24:03 2014 UTC (5 years, 4 months ago) by radhermit
Branch: MAIN
Version bump.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

1 radhermit 1.1 # Copyright 1999-2014 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
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="3dnow 3dnowext alsa altivec coreaudio int-quality ipv6 jack mmx nas oss portaudio pulseaudio sdl sse"
16    
17     # No MULTILIB_USEDEP here since we only build libmpg123 for non native ABIs.
18     RDEPEND="app-admin/eselect-mpg123
19     >=sys-devel/libtool-2.2.6b
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? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r9
27     !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )"
28     DEPEND="${RDEPEND}
29     virtual/pkgconfig"
30    
31     DOCS=( AUTHORS ChangeLog NEWS NEWS.libmpg123 README )
32    
33     src_prepare() {
34     elibtoolize # for Darwin bundles
35     }
36    
37     multilib_src_configure() {
38     local _audio=dummy
39     local _output=dummy
40     local _cpu=generic_fpu
41    
42     if $(multilib_is_native_abi) ; then
43     for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do
44     if use ${flag}; then
45     _audio="${_audio} ${flag/pulseaudio/pulse}"
46     _output=${flag/pulseaudio/pulse}
47     fi
48     done
49     fi
50    
51     use altivec && _cpu=altivec
52    
53     if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then
54     use sse && _cpu=x86-64
55     elif use x86 && gcc-specs-pie ; then
56     # Don't use any mmx, 3dnow, sse and 3dnowext #bug 164504
57     _cpu=generic_fpu
58     elif use x86-macos ; then
59     # ASM doesn't work quite as expected with the Darwin linker
60     _cpu=generic_fpu
61     else
62     use mmx && _cpu=mmx
63     use 3dnow && _cpu=3dnow
64     use sse && _cpu=x86
65     use 3dnowext && _cpu=x86
66     fi
67    
68     local myconf=""
69     multilib_is_native_abi || myconf="${myconf} --disable-modules"
70    
71     ECONF_SOURCE="${S}" econf \
72     --with-optimization=0 \
73     --with-audio="${_audio}" \
74     --with-default-audio=${_output} \
75     --with-cpu=${_cpu} \
76     --enable-network \
77     $(use_enable ipv6) \
78     --enable-int-quality=$(usex int-quality) \
79     ${myconf}
80    
81     if ! $(multilib_is_native_abi) ; then
82     sed -i -e 's:src doc:src/libmpg123:' Makefile || die
83     fi
84     }
85    
86     multilib_src_install_all() {
87     einstalldocs
88     mv "${ED}"/usr/bin/mpg123{,-mpg123}
89     find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
90     }
91    
92     pkg_postinst() {
93     eselect mpg123 update ifunset
94     }
95    
96     pkg_postrm() {
97     eselect mpg123 update ifunset
98     }

  ViewVC Help
Powered by ViewVC 1.1.20