summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/dosbox/dosbox_0.61.bb11
-rw-r--r--packages/dosbox/dosbox_0.63.bb12
-rw-r--r--packages/dosbox/files/.mtn2git_empty0
-rw-r--r--packages/dosbox/files/nocdrom.patch27
4 files changed, 39 insertions, 11 deletions
diff --git a/packages/dosbox/dosbox_0.61.bb b/packages/dosbox/dosbox_0.61.bb
deleted file mode 100644
index 3f2130b410..0000000000
--- a/packages/dosbox/dosbox_0.61.bb
+++ /dev/null
@@ -1,11 +0,0 @@
-BROKEN = "1"
-DESCRIPTION = "Dos Emulator based on SDL"
-SECTION = "base"
-PRIORITY = "optional"
-DEPENDS = "libsdl-qpe"
-LICENSE = "GPL"
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/dosbox/dosbox-${PV}.tar.gz"
-
-inherit autotools
-
diff --git a/packages/dosbox/dosbox_0.63.bb b/packages/dosbox/dosbox_0.63.bb
new file mode 100644
index 0000000000..decb3e5f07
--- /dev/null
+++ b/packages/dosbox/dosbox_0.63.bb
@@ -0,0 +1,12 @@
+DESCRIPTION = "Dos Emulator based on SDL"
+SECTION = "base"
+PRIORITY = "optional"
+DEPENDS = "virtual/libsdl"
+LICENSE = "GPL"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/dosbox/dosbox-${PV}.tar.gz \
+ file://nocdrom.patch;patch=1"
+CXXFLAGS_append = " -DC_SDL_NOCDROM"
+
+inherit autotools
+
diff --git a/packages/dosbox/files/.mtn2git_empty b/packages/dosbox/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/dosbox/files/.mtn2git_empty
diff --git a/packages/dosbox/files/nocdrom.patch b/packages/dosbox/files/nocdrom.patch
new file mode 100644
index 0000000000..29212b316d
--- /dev/null
+++ b/packages/dosbox/files/nocdrom.patch
@@ -0,0 +1,27 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- dosbox-0.63/src/dos/cdrom.h~nocdrom
++++ dosbox-0.63/src/dos/cdrom.h
+@@ -20,6 +20,19 @@
+ #include "SDL_sound.h"
+ #endif
+
++#ifdef C_SDL_NOCDROM
++#define SDL_CDNumDrives(x) (0)
++#define SDL_CDName(x) ((const char *)0)
++#define SDL_CDOpen(x) ((SDL_CD *)0)
++#define SDL_CDPlay(x,y,z) (-1)
++#define SDL_CDResume(x) (-1)
++#define SDL_CDPause(x) (-1)
++#define SDL_CDStop(x) (-1)
++#define SDL_CDEject(x) (-1)
++#define SDL_CDClose(x) ((void)0)
++#define SDL_CDStatus(x) (-1)
++#endif
++
+ #define RAW_SECTOR_SIZE 2352
+ #define COOKED_SECTOR_SIZE 2048
+