media-radio/fldigi: Fix wrong evaluation of cpu_flags_x86
authorThomas Beierlein <tomjbe@gentoo.org>
Wed, 10 Oct 2018 06:05:45 +0000 (08:05 +0200)
committerThomas Beierlein <tomjbe@gentoo.org>
Wed, 10 Oct 2018 06:05:45 +0000 (08:05 +0200)
Reported-by: Mike Auty <ikelos@gentoo.org>
Closes: https://bugs.gentoo.org/667396
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
Package-Manager: Portage-2.3.50, Repoman-2.3.11

media-radio/fldigi/fldigi-4.0.17.ebuild
media-radio/fldigi/fldigi-4.0.18.ebuild

index 36c4d891600dd4e863dc9db4f9d160d3f5794376..81f8dc09f51ce4b646512be391142dbbe59c8eb6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -36,12 +36,16 @@ DOCS=( AUTHORS ChangeLog NEWS README )
 PATCHES=( "$FILESDIR"/$PN-c++11.patch )
 
 src_configure() {
-       econf --with-sndfile \
+       local myconf=""
+
+       use cpu_flags_x86_sse && myconf="${myconf} --enable-optimizations=sse"
+       use cpu_flags_x86_sse2 && myconf="${myconf} --enable-optimizations=sse2"
+       use cpu_flags_x86_sse3 && myconf="${myconf} --enable-optimizations=sse3"
+
+       econf ${myconf} \
+               --with-sndfile \
                $(use_with hamlib) \
                $(use_enable nls) \
                $(use_with pulseaudio) \
-               $(use_enable cpu_flags_x86_sse optimizations sse) \
-               $(use_enable cpu_flags_x86_sse2 optimizations sse2) \
-               $(use_enable cpu_flags_x86_sse3 optimizations sse3) \
                --without-asciidoc
 }
index 36c4d891600dd4e863dc9db4f9d160d3f5794376..81f8dc09f51ce4b646512be391142dbbe59c8eb6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -36,12 +36,16 @@ DOCS=( AUTHORS ChangeLog NEWS README )
 PATCHES=( "$FILESDIR"/$PN-c++11.patch )
 
 src_configure() {
-       econf --with-sndfile \
+       local myconf=""
+
+       use cpu_flags_x86_sse && myconf="${myconf} --enable-optimizations=sse"
+       use cpu_flags_x86_sse2 && myconf="${myconf} --enable-optimizations=sse2"
+       use cpu_flags_x86_sse3 && myconf="${myconf} --enable-optimizations=sse3"
+
+       econf ${myconf} \
+               --with-sndfile \
                $(use_with hamlib) \
                $(use_enable nls) \
                $(use_with pulseaudio) \
-               $(use_enable cpu_flags_x86_sse optimizations sse) \
-               $(use_enable cpu_flags_x86_sse2 optimizations sse2) \
-               $(use_enable cpu_flags_x86_sse3 optimizations sse3) \
                --without-asciidoc
 }