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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Mon Jan 14 04:11:27 2013 UTC (6 years, 9 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha151/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.2.ebuild,v 1.8 2012/07/29 18:45:12 armin76 Exp $
4
5 EAPI=4
6 inherit toolchain-funcs libtool
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 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 else
53 use mmx && _cpu=mmx
54 use 3dnow && _cpu=3dnow
55 use sse && _cpu=x86
56 use 3dnowext && _cpu=x86
57 fi
58
59 econf \
60 --with-optimization=0 \
61 --with-audio="${_audio}" \
62 --with-default-audio=${_output} \
63 --with-cpu=${_cpu} \
64 --enable-network \
65 $(use_enable ipv6)
66 }
67
68 src_install() {
69 default
70 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
71 }

  ViewVC Help
Powered by ViewVC 1.1.20