freeciv: Add 3.1 recipe (alpha5)

3.1.0-alpha5 is the first snapshot that is compatible with
future 3.1 releases.

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
This commit is contained in:
Marko Lindqvist
2022-12-29 06:19:51 +02:00
parent 62552510bf
commit 20d350d0b4
2 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
diff --git a/configure.ac b/configure.ac
index 4fa608e29b..7f4b94166b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -793,6 +793,8 @@ if test "x$emscripten" = "xyes" ; then
AC_DEFINE([ALWAYS_ROOT], [1], [Can execute program as root - emscripten])
fi
+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 f746126902..7f50fc258e 100644
--- a/meson.build
+++ b/meson.build
@@ -120,6 +120,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,27 @@
require freeciv-qt5.inc
DEFAULT_PREFERENCE = "-2"
DEPENDS += "tolua-native lua gtk4"
SRC_URI += "\
git://github.com/freeciv/freeciv.git;protocol=https;branch=S3_1 \
file://allow-root-S3_1.patch \
"
SRCREV="8d7cdf503164f296990c68e27a4fe3e2a87eb909"
PN = "freeciv"
PV = "3.1.0-alpha5"
S = "${WORKDIR}/git"
FREECIV_GUI += "gtk4"
PACKAGES += "${PN}-gtk4"
RDEPENDS:${PN}-gtk4 = "freeciv-common freeciv-client-common"
RPROVIDES:${PN}-gtk4 = "freeciv-client"
FILES:${PN}-gtk4 = "\
${bindir}/freeciv-gtk4 \
${datadir}/freeciv/themes/gtk4 \
"