commit: e17ea23a40c1fcdb092d14d118ea10352078b34c
Author: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 6 01:09:45 2020 +0000
Commit: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
CommitDate: Thu Feb 6 01:12:16 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e17ea23a
games-simulation/flightgear: Do not add flags unrelated cpu_flags_x86_sse2, fix
live ebuild
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Maciej Mrozowski <reavertm <AT> gentoo.org>
games-simulation/flightgear/flightgear-2019.1.1.ebuild | 4 +++-
games-simulation/flightgear/flightgear-9999.ebuild | 11 ++++++-----
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/games-simulation/flightgear/flightgear-2019.1.1.ebuild
b/games-simulation/flightgear/flightgear-2019.1.1.ebuild
index 5eb17e2184a..a8847f1ad50 100644
--- a/games-simulation/flightgear/flightgear-2019.1.1.ebuild
+++ b/games-simulation/flightgear/flightgear-2019.1.1.ebuild
@@ -92,6 +92,8 @@ src_configure() {
-DENABLE_PROFILE=OFF
-DENABLE_QT=$(usex qt5)
-DENABLE_RTI=OFF
+ -DENABLE_SIMD=OFF # see CPU_FLAGS
+ -DENABLE_SIMD_CODE=$(usex cpu_flags_x86_sse2)
-DENABLE_STGMERGE=ON
-DENABLE_TERRASYNC=$(usex utils)
-DENABLE_TRAFFIC=$(usex utils)
@@ -114,7 +116,7 @@ src_configure() {
-DWITH_FGPANEL=$(usex utils)
)
if use cpu_flags_x86_sse2; then
- append-flags -msse2 -mfpmath=sse -ftree-vectorize
-ftree-slp-vectorize
+ append-flags -msse2 -mfpmath=sse
fi
if use gdal && use utils; then
mycmakeargs+=(-DENABLE_DEMCONVERT=ON)
diff --git a/games-simulation/flightgear/flightgear-9999.ebuild
b/games-simulation/flightgear/flightgear-9999.ebuild
index 6303c1ab598..ce6c889aeb7 100644
--- a/games-simulation/flightgear/flightgear-9999.ebuild
+++ b/games-simulation/flightgear/flightgear-9999.ebuild
@@ -14,7 +14,7 @@ EGIT_BRANCH="next"
LICENSE="GPL-2"
KEYWORDS=""
SLOT="0"
-IUSE="dbus debug examples gdal openmp qt5 +udev +utils vim-syntax"
+IUSE="cpu_flags_x86_sse2 dbus debug examples gdal openmp qt5 +udev +utils
vim-syntax"
# Needs --fg-root with path to flightgear-data passed to test runner passed,
# not really worth patching
@@ -81,7 +81,6 @@ src_configure() {
-DENABLE_FGELEV=$(usex utils)
-DENABLE_FGJS=$(usex utils)
-DENABLE_FGVIEWER=$(usex utils)
- -DENABLE_FLITE=OFF
-DENABLE_GDAL=$(usex gdal)
-DENABLE_GPSSMOOTH=$(usex utils)
-DENABLE_HID_INPUT=$(usex udev)
@@ -94,6 +93,8 @@ src_configure() {
-DENABLE_PROFILE=OFF
-DENABLE_QT=$(usex qt5)
-DENABLE_RTI=OFF
+ -DENABLE_SIMD=OFF # see CPU_FLAGS
+ -DENABLE_SIMD_CODE=$(usex cpu_flags_x86_sse2)
-DENABLE_STGMERGE=ON
-DENABLE_TERRASYNC=$(usex utils)
-DENABLE_TRAFFIC=$(usex utils)
@@ -106,8 +107,8 @@ src_configure() {
-DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO also see simgear
-DSP_FDMS=ON
-DSYSTEM_CPPUNIT=OFF # NOTE we do not build tests anyway
- -DSYSTEM_FLITE=ON
- -DSYSTEM_HTS_ENGINE=ON
+ -DSYSTEM_FLITE=OFF
+ -DSYSTEM_HTS_ENGINE=OFF
-DSYSTEM_SPEEX=ON
-DSYSTEM_GSM=ON
-DSYSTEM_SQLITE=ON
@@ -116,7 +117,7 @@ src_configure() {
-DWITH_FGPANEL=$(usex utils)
)
if use cpu_flags_x86_sse2; then
- append-flags -msse2 -mfpmath=sse -ftree-vectorize
-ftree-slp-vectorize
+ append-flags -msse2 -mfpmath=sse
fi
if use gdal && use utils; then
mycmakeargs+=(-DENABLE_DEMCONVERT=ON)