summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2018-10-10 08:05:45 +0200
committerThomas Beierlein <tomjbe@gentoo.org>2018-10-10 08:05:45 +0200
commit354952960df7a939124ef311048b877b0eaef688 (patch)
tree2112d06a0cd12dde94ff1e699d4d5bd9661f181e
parentnet-irc/weechat: drop 2.1 (diff)
downloadgentoo-354952960df7a939124ef311048b877b0eaef688.tar.gz
gentoo-354952960df7a939124ef311048b877b0eaef688.tar.bz2
gentoo-354952960df7a939124ef311048b877b0eaef688.zip
media-radio/fldigi: Fix wrong evaluation of cpu_flags_x86
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
-rw-r--r--media-radio/fldigi/fldigi-4.0.17.ebuild14
-rw-r--r--media-radio/fldigi/fldigi-4.0.18.ebuild14
2 files changed, 18 insertions, 10 deletions
diff --git a/media-radio/fldigi/fldigi-4.0.17.ebuild b/media-radio/fldigi/fldigi-4.0.17.ebuild
index 36c4d891600..81f8dc09f51 100644
--- a/media-radio/fldigi/fldigi-4.0.17.ebuild
+++ b/media-radio/fldigi/fldigi-4.0.17.ebuild
@@ -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
}
diff --git a/media-radio/fldigi/fldigi-4.0.18.ebuild b/media-radio/fldigi/fldigi-4.0.18.ebuild
index 36c4d891600..81f8dc09f51 100644
--- a/media-radio/fldigi/fldigi-4.0.18.ebuild
+++ b/media-radio/fldigi/fldigi-4.0.18.ebuild
@@ -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
}