freeciv-3.2: Add

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
This commit is contained in:
Marko Lindqvist
2024-11-14 02:18:45 +02:00
parent 966c6d9bd1
commit 3073825606
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
Upstream-Status: Inappropriate
diff --git a/configure.ac b/configure.ac
index 657a3689e2..0f3e87a6a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -756,6 +756,8 @@ dnl Defaults to override with host specific values
HOST_PATH_SEPARATOR=":"
HOST_DIR_SEPARATOR="/"
+AC_DEFINE([ALWAYS_ROOT], [1], [Can execute program as root - OpenEmbedded])
+
dnl Settings specific to host OS
case "$host_os" in
diff --git a/meson.build b/meson.build
index 0fa23a94c7..6471de9f3f 100644
--- a/meson.build
+++ b/meson.build
@@ -312,6 +312,7 @@ else
priv_conf_data.set('ALWAYS_ROOT', 1)
else
pub_conf_data.set('FREECIV_HAVE_PTHREAD', 1)
+ priv_conf_data.set('ALWAYS_ROOT', 1)
net_dep = []
endif
endif

View File

@@ -0,0 +1,16 @@
require freeciv-qt6.inc
DEFAULT_PREFERENCE = "-2"
DEPENDS += "tolua-native lua"
SRC_URI += "\
git://github.com/freeciv/freeciv.git;protocol=https;branch=S3_2 \
file://allow-root-S3_2.patch \
"
SRCREV="cf06c4b0eea932e6ee9919f13b84b6bea8713aa7"
PN = "freeciv"
PV = "3.2.0-alpha4"
S = "${WORKDIR}/git"