diff options
-rw-r--r-- | media-sound/ardour/ChangeLog | 6 | ||||
-rw-r--r-- | media-sound/ardour/ardour-3.5.403.ebuild | 30 | ||||
-rw-r--r-- | media-sound/ardour/ardour-9999.ebuild | 30 |
3 files changed, 39 insertions, 27 deletions
diff --git a/media-sound/ardour/ChangeLog b/media-sound/ardour/ChangeLog index 5fb0ebff2637..f6d350553f3c 100644 --- a/media-sound/ardour/ChangeLog +++ b/media-sound/ardour/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-sound/ardour # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/ardour/ChangeLog,v 1.135 2014/10/24 19:14:34 nativemad Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/ardour/ChangeLog,v 1.136 2014/10/27 15:58:35 nativemad Exp $ + + 27 Oct 2014; Andreas Schuerch <nativemad@gentoo.org> ardour-3.5.403.ebuild, + ardour-9999.ebuild: + A more sophisticated attempt at bug 526608 24 Oct 2014; Andreas Schuerch <nativemad@gentoo.org> ardour-9999.ebuild: update 9999 to 3.5.403 again diff --git a/media-sound/ardour/ardour-3.5.403.ebuild b/media-sound/ardour/ardour-3.5.403.ebuild index 1e82c20a127c..459fa1cfb15b 100644 --- a/media-sound/ardour/ardour-3.5.403.ebuild +++ b/media-sound/ardour/ardour-3.5.403.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/ardour/ardour-3.5.403.ebuild,v 1.2 2014/10/24 19:07:19 nativemad Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/ardour/ardour-3.5.403.ebuild,v 1.3 2014/10/27 15:58:35 nativemad Exp $ EAPI=5 inherit eutils toolchain-funcs flag-o-matic waf-utils @@ -76,17 +76,6 @@ src_unpack() { fi } -pkg_pretend() { - if use sse; then - MARCH=$(get-flag march) - for ARCHWOSSE in i686 i486; do - if [[ ${MARCH} = ${ARCHWOSSE} ]]; then - is-flag -msse || is-flag -msse2 || die "Ardour fails to build with USE=sse and an march that is not sse capable, unless the -msse or -msse2 cflag are set also!" - fi - done - fi -} - src_prepare(){ if ! [ ${PV} = 9999 ]; then PVTEMP=$(echo "${PV}" | sed "s/\./-/2") @@ -102,6 +91,21 @@ src_prepare(){ } src_configure() { + if use sse; then + MARCH=$(get-flag march) + for ARCHWOSSE in i686 i486; do + if [[ ${MARCH} = ${ARCHWOSSE} ]]; then + for SSEOPT in -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2; do + is-flag ${SSEOPT} && SSEON="yes" + done + if [ -z ${SSEON} ]; then + append-flags -msse + elog "You enabled sse but use an march that does not support sse!" + elog "We add -msse to the cflags now, but please consider switching your march in make.conf!" + fi + fi + done + fi tc-export CC CXX mkdir -p "${D}" waf-utils_src_configure \ @@ -111,7 +115,7 @@ src_configure() { $(use lv2 && echo "--lv2" || echo "--no-lv2") \ $(use nls && echo "--nls" || echo "--no-nls") \ $(use debug && echo "--stl-debug" || echo "--optimize") \ - $((use altivec || use sse) && echo "--fpu-optimization" || echo "--no-fpu-optimization") \ + $({ use altivec || use sse; } && echo "--fpu-optimization" || echo "--no-fpu-optimization") \ $(use doc && echo "--docs") } diff --git a/media-sound/ardour/ardour-9999.ebuild b/media-sound/ardour/ardour-9999.ebuild index 6f7c9e538994..9eb8e5c550cf 100644 --- a/media-sound/ardour/ardour-9999.ebuild +++ b/media-sound/ardour/ardour-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/ardour/ardour-9999.ebuild,v 1.11 2014/10/24 19:14:34 nativemad Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/ardour/ardour-9999.ebuild,v 1.12 2014/10/27 15:58:35 nativemad Exp $ EAPI=5 inherit eutils toolchain-funcs flag-o-matic waf-utils @@ -76,17 +76,6 @@ src_unpack() { fi } -pkg_pretend() { - if use sse; then - MARCH=$(get-flag march) - for ARCHWOSSE in i686 i486; do - if [[ ${MARCH} = ${ARCHWOSSE} ]]; then - is-flag -msse || is-flag -msse2 || die "Ardour fails to build with USE=sse and an march that is not sse capable, unless the -msse or -msse2 cflag are set also!" - fi - done - fi -} - src_prepare(){ if ! [ ${PV} = 9999 ]; then PVTEMP=$(echo "${PV}" | sed "s/\./-/2") @@ -102,6 +91,21 @@ src_prepare(){ } src_configure() { + if use sse; then + MARCH=$(get-flag march) + for ARCHWOSSE in i686 i486; do + if [[ ${MARCH} = ${ARCHWOSSE} ]]; then + for SSEOPT in -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2; do + is-flag ${SSEOPT} && SSEON="yes" + done + if [ -z ${SSEON} ]; then + append-flags -msse + elog "You enabled sse but use an march that does not support sse!" + elog "We add -msse to the cflags now, but please consider switching your march in make.conf!" + fi + fi + done + fi tc-export CC CXX mkdir -p "${D}" waf-utils_src_configure \ @@ -111,7 +115,7 @@ src_configure() { $(use lv2 && echo "--lv2" || echo "--no-lv2") \ $(use nls && echo "--nls" || echo "--no-nls") \ $(use debug && echo "--stl-debug" || echo "--optimize") \ - $((use altivec || use sse) && echo "--fpu-optimization" || echo "--no-fpu-optimization") \ + $({ use altivec || use sse; } && echo "--fpu-optimization" || echo "--no-fpu-optimization") \ $(use doc && echo "--docs") } |