diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-04-25 13:33:06 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-04-25 13:33:06 +0000 |
commit | 098035acb26c7f6309146ab374c19abd8b32d0cf (patch) | |
tree | 9f7a7ce3e47e2fce0b7668a2ac418849ef63115a /media-sound | |
parent | Add new version 2.0.1, fix bug #317105 (diff) | |
download | gentoo-2-098035acb26c7f6309146ab374c19abd8b32d0cf.tar.gz gentoo-2-098035acb26c7f6309146ab374c19abd8b32d0cf.tar.bz2 gentoo-2-098035acb26c7f6309146ab374c19abd8b32d0cf.zip |
Use tc-arch to select between amd64 and x86 optimization wrt #317069.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/mpg123/ChangeLog | 5 | ||||
-rw-r--r-- | media-sound/mpg123/mpg123-1.12.1.ebuild | 14 |
2 files changed, 9 insertions, 10 deletions
diff --git a/media-sound/mpg123/ChangeLog b/media-sound/mpg123/ChangeLog index d332d271c611..c4a3b4e0136d 100644 --- a/media-sound/mpg123/ChangeLog +++ b/media-sound/mpg123/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for media-sound/mpg123 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/ChangeLog,v 1.222 2010/04/24 17:19:21 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/ChangeLog,v 1.223 2010/04/25 13:33:05 ssuominen Exp $ + + 25 Apr 2010; Samuli Suominen <ssuominen@gentoo.org> mpg123-1.12.1.ebuild: + Use tc-arch to select between amd64 and x86 optimization wrt #317069. 24 Apr 2010; Samuli Suominen <ssuominen@gentoo.org> mpg123-1.12.1.ebuild: Remove USE network from this release wrt #315139. diff --git a/media-sound/mpg123/mpg123-1.12.1.ebuild b/media-sound/mpg123/mpg123-1.12.1.ebuild index 5b5e95eee230..ed4775437349 100644 --- a/media-sound/mpg123/mpg123-1.12.1.ebuild +++ b/media-sound/mpg123/mpg123-1.12.1.ebuild @@ -1,8 +1,9 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-1.12.1.ebuild,v 1.3 2010/04/24 17:24:02 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-1.12.1.ebuild,v 1.4 2010/04/25 13:33:06 ssuominen Exp $ EAPI=2 +inherit toolchain-funcs DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3" HOMEPAGE="http://www.mpg123.org/" @@ -13,7 +14,6 @@ LICENSE="GPL-2 LGPL-2.1" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE="3dnow 3dnowext alsa altivec ipv6 jack mmx nas oss portaudio pulseaudio sdl sse" -# +network RDEPEND="alsa? ( media-libs/alsa-lib ) jack? ( media-sound/jack-audio-connection-kit ) @@ -29,7 +29,6 @@ src_configure() { local _audio=dummy local _output=dummy local _cpu=generic_fpu - local _ipv6=disable for flag in nas portaudio sdl oss jack alsa pulseaudio; do if use ${flag}; then @@ -40,12 +39,9 @@ src_configure() { use altivec && _cpu=altivec - if [[ ${ABI} = amd64 ]] && use sse; then - _cpu=x86-64 - fi - - if [[ ${ABI} = x86 ]]; then - _cpu=i586 + if [[ $(tc-arch) == amd64 ]]; then + use sse && _cpu=x86-64 + else use mmx && _cpu=mmx use 3dnow && _cpu=3dnow use sse && _cpu=x86 |