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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Mar 31 19:55:21 2015 UTC (4 years, 6 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Update dependency after package move of eselect modules to app-eselect.

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 9433907D693FB5B8!)

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.20.0.ebuild,v 1.2 2015/01/29 18:56:09 mgorny 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 >=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 cpu_flags_x86_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 cpu_flags_x86_mmx && _cpu=mmx
63 use cpu_flags_x86_3dnow && _cpu=3dnow
64 use cpu_flags_x86_sse && _cpu=x86
65 use cpu_flags_x86_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