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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat Feb 1 05:50:15 2014 UTC (5 years, 8 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Remove old.

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

1 # Copyright 1999-2012 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.14.4.ebuild,v 1.10 2012/12/30 14:59:40 ago Exp $
4
5 EAPI=4
6 inherit toolchain-funcs libtool eutils
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 ~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 RDEPEND="alsa? ( media-libs/alsa-lib )
18 jack? ( media-sound/jack-audio-connection-kit )
19 nas? ( media-libs/nas )
20 portaudio? ( media-libs/portaudio )
21 pulseaudio? ( media-sound/pulseaudio )
22 sdl? ( media-libs/libsdl )
23 sys-devel/libtool"
24 DEPEND="${RDEPEND}
25 virtual/pkgconfig"
26
27 DOCS=( AUTHORS ChangeLog NEWS NEWS.libmpg123 README )
28
29 src_prepare() {
30 elibtoolize # for Darwin bundles
31 }
32
33 src_configure() {
34 local _audio=dummy
35 local _output=dummy
36 local _cpu=generic_fpu
37
38 for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do
39 if use ${flag}; then
40 _audio="${_audio} ${flag/pulseaudio/pulse}"
41 _output=${flag/pulseaudio/pulse}
42 fi
43 done
44
45 use altivec && _cpu=altivec
46
47 if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then
48 use sse && _cpu=x86-64
49 elif use x86 && gcc-specs-pie ; then
50 # Don't use any mmx, 3dnow, sse and 3dnowext #bug 164504
51 _cpu=generic_fpu
52 elif use x86-macos ; then
53 # ASM doesn't work quite as expected with the Darwin linker
54 _cpu=generic_fpu
55 else
56 use mmx && _cpu=mmx
57 use 3dnow && _cpu=3dnow
58 use sse && _cpu=x86
59 use 3dnowext && _cpu=x86
60 fi
61
62 econf \
63 --with-optimization=0 \
64 --with-audio="${_audio}" \
65 --with-default-audio=${_output} \
66 --with-cpu=${_cpu} \
67 --enable-network \
68 $(use_enable ipv6) \
69 --enable-int-quality=$(usex int-quality)
70 }
71
72 src_install() {
73 default
74 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
75 }

  ViewVC Help
Powered by ViewVC 1.1.20