mirror of
https://github.com/cazfi/meta-games.git
synced 2026-01-29 17:08:42 +01:00
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:
25
recipes-games/freeciv/freeciv/allow-root-S3_1.patch
Normal file
25
recipes-games/freeciv/freeciv/allow-root-S3_1.patch
Normal 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
|
||||
27
recipes-games/freeciv/freeciv_S3-1-git.bb
Normal file
27
recipes-games/freeciv/freeciv_S3-1-git.bb
Normal 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 \
|
||||
"
|
||||
Reference in New Issue
Block a user