aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-07-17 08:29:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-07-17 08:29:36 +0000
commit0c5b948f9b90cc1f0204169fe91b2c322efe0f4b (patch)
treec8506bd8e8e7dab02218207a77f1210ccd45a259 /testing
parente2fabcb59d25a74d986dabd22bb72a6a9010be5b (diff)
downloadaports-0c5b948f9b90cc1f0204169fe91b2c322efe0f4b.tar.bz2
aports-0c5b948f9b90cc1f0204169fe91b2c322efe0f4b.tar.xz
testing/dosbox: new aport
x86/DOS emulator with sound and graphics http://dosbox.com
Diffstat (limited to 'testing')
-rw-r--r--testing/dosbox/APKBUILD77
-rw-r--r--testing/dosbox/dosbox-0.74-formatsecurity.patch12
-rw-r--r--testing/dosbox/dosbox-0.74-gcc46.patch10
-rw-r--r--testing/dosbox/dosbox-0.74-init-crash.patch16
-rw-r--r--testing/dosbox/dosbox.desktop8
-rw-r--r--testing/dosbox/dosbox.pngbin0 -> 206 bytes
6 files changed, 123 insertions, 0 deletions
diff --git a/testing/dosbox/APKBUILD b/testing/dosbox/APKBUILD
new file mode 100644
index 0000000000..791fe94344
--- /dev/null
+++ b/testing/dosbox/APKBUILD
@@ -0,0 +1,77 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=dosbox
+pkgver=0.74
+pkgrel=0
+pkgdesc="x86/DOS emulator with sound and graphics"
+url="http://dosbox.com"
+arch="all"
+license="GPLv2+"
+depends="hicolor-icon-theme"
+depends_dev="libpng-dev sdl-dev alsa-lib-dev glu-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/project/dosbox/dosbox/$pkgver/dosbox-$pkgver.tar.gz
+ dosbox-0.74-formatsecurity.patch
+ dosbox-0.74-gcc46.patch
+ dosbox-0.74-init-crash.patch
+ dosbox.desktop
+ dosbox.png
+ "
+
+_builddir="$srcdir"/dosbox-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ update_config_sub
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+ mkdir -p "$pkgdir"/usr/share/pixmaps \
+ "$pkgdir"/usr/share/applications || return 1
+ install -m644 "$srcdir"/dosbox.png "$pkgdir"/usr/share/pixmaps/\
+ || return 1
+ install -m644 "$srcdir"/dosbox.desktop \
+ "$pkgdir"/usr/share/applications/ || return 1
+}
+
+md5sums="b9b240fa87104421962d14eee71351e8 dosbox-0.74.tar.gz
+9bb0b70a44151a33b50a6e07ed0a5658 dosbox-0.74-formatsecurity.patch
+d4534babc251a9ff12bf6ce27301de91 dosbox-0.74-gcc46.patch
+a90321ab0e29f65664317f61ff0abcb3 dosbox-0.74-init-crash.patch
+f197a5de143e94f22c06c8ac3d6ea4d9 dosbox.desktop
+eca02a0e08f639122453a38cc5549eef dosbox.png"
+sha256sums="13f74916e2d4002bad1978e55727f302ff6df3d9be2f9b0e271501bd0a938e05 dosbox-0.74.tar.gz
+3bc0f22e3c47449e655aedcf316c50d634d8661874d3f236b2d9f1f74b67cc0a dosbox-0.74-formatsecurity.patch
+aea0e78a2e2d9963eb902aff9647cc35cb864e970f06d3ca0745e2b89a4e5ad6 dosbox-0.74-gcc46.patch
+99d892707cf1c9d119f0c510eca562c2b4b3fa4c8ad8cb11de37594352ca0f8e dosbox-0.74-init-crash.patch
+d1f5ef81ecb57987425bb250fb7e42f8fac6437e124d3986ab8037068c077c52 dosbox.desktop
+3c4361396fa6a61e2ade5c94b53f0a349193c66c133fdc04cd7cffd2faf86cd0 dosbox.png"
+sha512sums="4a6ff4c658997a495119d200ec6ad37649da940814a4b14fca0dd29a99142026e324695b7aa9d2946efc2abf9067a819d911e43778efe905ed10ddf9b9f2dd3d dosbox-0.74.tar.gz
+8ba824d754b7a804efa9c832608672d257d4978dc84f0035f32d48d312666107c3271158e2764d058d84b70caab0c0b5dff1fa93a72390d11b6dc7f655c50c31 dosbox-0.74-formatsecurity.patch
+115805d684ec5b5eb747fd46e4787d67fae0e6cf6622b52114031e82abb0db08b7bf98b2d2526a8336c41541d7202d429d7689e894a0abcd26599cd4be5768bf dosbox-0.74-gcc46.patch
+b7ee5c48e05a8de5b25eb35421167cf381fd21f1ff8cebf9da5671938d1a6dce05a78e05cd8db3178b233253ad9d8277c66ac38a302fc6cf9eaac4965e208822 dosbox-0.74-init-crash.patch
+882bf0c964c0041460780eb40548a2c5301eca4ff1fbdfd418a35ca98479dd2dce32c3fdfc31fe390ca3c3a5c4a523fa7ef025a13c6ed3457c7042fbb739d16c dosbox.desktop
+249db09d98b293e26189635018248780dd0eaefcb09c5bd9dc1b266547d54930bce413a7a50898872a5e70de2efc5ac665527ebe2450a505df724028d1261000 dosbox.png"
diff --git a/testing/dosbox/dosbox-0.74-formatsecurity.patch b/testing/dosbox/dosbox-0.74-formatsecurity.patch
new file mode 100644
index 0000000000..6b518b702f
--- /dev/null
+++ b/testing/dosbox/dosbox-0.74-formatsecurity.patch
@@ -0,0 +1,12 @@
+diff -up dosbox-0.74/src/gui/sdlmain.cpp.orig dosbox-0.74/src/gui/sdlmain.cpp
+--- dosbox-0.74/src/gui/sdlmain.cpp.orig 2013-12-18 15:06:41.227839719 +0100
++++ dosbox-0.74/src/gui/sdlmain.cpp 2013-12-18 15:07:14.434769053 +0100
+@@ -1529,7 +1529,7 @@ static void show_warning(char const * co
+ if ( !sdl.inited && SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE) < 0 ) textonly = true;
+ sdl.inited = true;
+ #endif
+- printf(message);
++ printf("%s", message);
+ if(textonly) return;
+ if(!sdl.surface) sdl.surface = SDL_SetVideoMode(640,400,0,0);
+ if(!sdl.surface) return;
diff --git a/testing/dosbox/dosbox-0.74-gcc46.patch b/testing/dosbox/dosbox-0.74-gcc46.patch
new file mode 100644
index 0000000000..8b19983a69
--- /dev/null
+++ b/testing/dosbox/dosbox-0.74-gcc46.patch
@@ -0,0 +1,10 @@
+--- a/include/dos_inc.h 2010-05-10 19:43:54.000000000 +0200
++++ b/include/dos_inc.h 2011-03-16 09:46:24.430008904 +0100
+@@ -27,6 +27,7 @@
+ #ifndef DOSBOX_MEM_H
+ #include "mem.h"
+ #endif
++#include <stddef.h>
+
+ #ifdef _MSC_VER
+ #pragma pack (1)
diff --git a/testing/dosbox/dosbox-0.74-init-crash.patch b/testing/dosbox/dosbox-0.74-init-crash.patch
new file mode 100644
index 0000000000..97a0966d6a
--- /dev/null
+++ b/testing/dosbox/dosbox-0.74-init-crash.patch
@@ -0,0 +1,16 @@
+diff -up dosbox-0.74/src/gui/sdl_mapper.cpp~ dosbox-0.74/src/gui/sdl_mapper.cpp
+--- dosbox-0.74/src/gui/sdl_mapper.cpp~ 2010-05-10 20:58:06.000000000 +0200
++++ dosbox-0.74/src/gui/sdl_mapper.cpp 2013-05-10 20:53:02.133112189 +0200
+@@ -2384,9 +2384,11 @@ void MAPPER_StartUp(Section * sec) {
+ mapper.sticks.num=0;
+ mapper.sticks.num_groups=0;
+ Bitu i;
+- for (i=0; i<16; i++) {
++ for (i=0; i<MAX_VJOY_BUTTONS; i++) {
+ virtual_joysticks[0].button_pressed[i]=false;
+ virtual_joysticks[1].button_pressed[i]=false;
++ }
++ for (i=0; i<16; i++) {
+ virtual_joysticks[0].hat_pressed[i]=false;
+ virtual_joysticks[1].hat_pressed[i]=false;
+ }
diff --git a/testing/dosbox/dosbox.desktop b/testing/dosbox/dosbox.desktop
new file mode 100644
index 0000000000..8455c5cfa2
--- /dev/null
+++ b/testing/dosbox/dosbox.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=DOSBox
+Comment=An x86/DOS emulator with sound/graphics
+Exec=dosbox
+Icon=dosbox.png
+Terminal=false
+Type=Application
+Categories=System;Emulator;
diff --git a/testing/dosbox/dosbox.png b/testing/dosbox/dosbox.png
new file mode 100644
index 0000000000..5945b2c902
--- /dev/null
+++ b/testing/dosbox/dosbox.png
Binary files differ