diff --git a/recipes-games/freeciv/freeciv/allow-root-S3_1.patch b/recipes-games/freeciv/freeciv/allow-root-S3_1.patch new file mode 100644 index 0000000..ff3b794 --- /dev/null +++ b/recipes-games/freeciv/freeciv/allow-root-S3_1.patch @@ -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 diff --git a/recipes-games/freeciv/freeciv_S3-1-git.bb b/recipes-games/freeciv/freeciv_S3-1-git.bb new file mode 100644 index 0000000..7b02b77 --- /dev/null +++ b/recipes-games/freeciv/freeciv_S3-1-git.bb @@ -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 \ +"