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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20