diff --git a/recipes-emulators/dosbox/dosbox-staging.bb b/recipes-emulators/dosbox/dosbox-staging.bb new file mode 100644 index 0000000..5590e3c --- /dev/null +++ b/recipes-emulators/dosbox/dosbox-staging.bb @@ -0,0 +1,45 @@ +SUMMARY = "DOS/x86 emulator focusing on ease of use" +HOMEPAGE = "https://dosbox-staging.github.io/" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=a75e9ff85f9de2c690521c2b6ddd26cf" + +DEPENDS = " \ + libsdl2 \ + libsdl2-net \ + libpcap \ + libxkbfile \ + libpng \ + alsa-lib \ + fluidsynth \ + opusfile \ + munt \ +" + +inherit meson gtk-icon-cache features_check + +REQUIRED_DISTRO_FEATURES = "x11 opengl" + +SRC_URI = " \ + git://github.com/dosbox-staging/dosbox-staging.git \ + file://0001-Fix-missing-include.patch \ +" +SRCREV = "15a57e26c4d1123606a7ac455d2ccbce15e976b9" +PV = "0.77.0" +S = "${WORKDIR}/git" + +DYNCORE ?= "-Ddynamic_core=dynrec" + +EXTRA_OEMESON = " \ + -Duse_pcap=true \ + ${DYNCORE} \ +" + +# sorry - but it does not make sense +COMPATIBLE_HOST_armv4 = 'null' +COMPATIBLE_HOST_armv5 = 'null' +COMPATIBLE_HOST_armv6 = 'null' + +FILES_${PN} += "${datadir}/metainfo" +FILES_${PN}-doc += "${datadir}/licenses" + diff --git a/recipes-emulators/dosbox/dosbox-staging/0001-Fix-missing-include.patch b/recipes-emulators/dosbox/dosbox-staging/0001-Fix-missing-include.patch new file mode 100644 index 0000000..fa21df2 --- /dev/null +++ b/recipes-emulators/dosbox/dosbox-staging/0001-Fix-missing-include.patch @@ -0,0 +1,25 @@ +From 5b23877f74f9cbfc8a6442e19c672ba91229f923 Mon Sep 17 00:00:00 2001 +From: Dan Church +Date: Thu, 8 Jul 2021 16:15:37 -0500 +Subject: [PATCH] Fix missing include + +Upstream-Status: Accepted[https://github.com/dosbox-staging/dosbox-staging/commit/5b23877f74f9cbfc8a6442e19c672ba91229f923] +--- + src/hardware/ne2000.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/hardware/ne2000.cpp b/src/hardware/ne2000.cpp +index 7b4dcec4..3f68fe79 100644 +--- a/src/hardware/ne2000.cpp ++++ b/src/hardware/ne2000.cpp +@@ -26,6 +26,7 @@ + + #if C_NE2000 + ++#include + #include + #include + +-- +2.31.1 +