summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2024-07-28 21:33:42 +0100
committerJames Le Cuirot <chewi@gentoo.org>2024-07-28 21:33:42 +0100
commit23b787904d2105aa773a80f57e0bef9ecd563636 (patch)
treeb52ef999f6f395fbb00b977bf4724463f7578d5f /games-strategy/dunelegacy
parentgames-strategy/dunelegacy: Fix sed in 0.97.02 (diff)
downloadgentoo-23b787904d2105aa773a80f57e0bef9ecd563636.tar.gz
gentoo-23b787904d2105aa773a80f57e0bef9ecd563636.tar.bz2
gentoo-23b787904d2105aa773a80f57e0bef9ecd563636.zip
games-strategy/dunelegacy: Fix flags with patch
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-strategy/dunelegacy')
-rw-r--r--games-strategy/dunelegacy/dunelegacy-0.97.02.ebuild1
-rw-r--r--games-strategy/dunelegacy/files/dunelegacy-0.97.02-flags.patch14
2 files changed, 15 insertions, 0 deletions
diff --git a/games-strategy/dunelegacy/dunelegacy-0.97.02.ebuild b/games-strategy/dunelegacy/dunelegacy-0.97.02.ebuild
index 80d4cc705e50..47d0fe0bfdd5 100644
--- a/games-strategy/dunelegacy/dunelegacy-0.97.02.ebuild
+++ b/games-strategy/dunelegacy/dunelegacy-0.97.02.ebuild
@@ -30,6 +30,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${P}-flickering.patch
"${FILESDIR}"/${P}-text-manager.patch
+ "${FILESDIR}"/${P}-flags.patch
)
src_prepare() {
diff --git a/games-strategy/dunelegacy/files/dunelegacy-0.97.02-flags.patch b/games-strategy/dunelegacy/files/dunelegacy-0.97.02-flags.patch
new file mode 100644
index 000000000000..1c18bc0bd0c1
--- /dev/null
+++ b/games-strategy/dunelegacy/files/dunelegacy-0.97.02-flags.patch
@@ -0,0 +1,14 @@
+diff -Naur a/configure.ac b/configure.ac
+--- a/configure.ac 2022-12-29 05:22:09.000000000 +0000
++++ b/configure.ac 2024-07-28 21:30:14.793202700 +0100
+@@ -19,8 +19,8 @@
+ AC_SUBST(dunelegacydatadir)
+
+ dnl Some flags for gcc
+-CXXFLAGS="-std=c++14 -pthread -fPIC -O3 -pipe -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-shift-negative-value -Wno-unknown-pragmas -D__STDC_FORMAT_MACROS -DNDEBUG"
+-CFLAGS="-std=c99 -pthread -fPIC -O3 -pipe -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-shift-negative-value -Wno-unknown-pragmas -D__STDC_FORMAT_MACROS -DNDEBUG"
++CXXFLAGS="$CXXFLAGS -std=c++14 -pthread -fPIC -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-shift-negative-value -Wno-unknown-pragmas -D__STDC_FORMAT_MACROS -DNDEBUG"
++CFLAGS="$CFLAGS -std=c99 -pthread -fPIC -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-shift-negative-value -Wno-unknown-pragmas -D__STDC_FORMAT_MACROS -DNDEBUG"
+ dnl Additional flags: -Wconversion -Wno-sign-conversion -Wlogical-op
+
+ dnl Some flags for clang