dosbox: build with gcc 4.3.
This commit is contained in:
parent
1ff8175069
commit
97f1286f1e
@ -1 +1,2 @@
|
||||
262939cc28966c1f9b07c2bc472b699f dosbox-0.72.tar.gz
|
||||
f09ca654d417f8ef033d9a93c6b1aa5b dosbox.diff
|
||||
|
@ -6,11 +6,13 @@
|
||||
|
||||
name=dosbox
|
||||
version=0.72
|
||||
release=1
|
||||
source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz)
|
||||
release=2
|
||||
source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz
|
||||
$name.diff)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
patch -Np1 -i $SRC/$name.diff
|
||||
./configure --prefix=/usr --mandir=/usr/man
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
33
dosbox/dosbox.diff
Normal file
33
dosbox/dosbox.diff
Normal file
@ -0,0 +1,33 @@
|
||||
diff -urN dosbox-0.72/src/hardware/gameblaster.cpp dosbox-0.72-gcc4.3/src/hardware/gameblaster.cpp
|
||||
--- dosbox-0.72/src/hardware/gameblaster.cpp 2007-01-10 21:17:37.000000000 +1100
|
||||
+++ dosbox-0.72-gcc4.3/src/hardware/gameblaster.cpp 2008-11-29 10:42:27.304432272 +1100
|
||||
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
+#include <cstring>
|
||||
#include "dosbox.h"
|
||||
#include "inout.h"
|
||||
#include "mixer.h"
|
||||
diff -urN dosbox-0.72/src/hardware/tandy_sound.cpp dosbox-0.72-gcc4.3/src/hardware/tandy_sound.cpp
|
||||
--- dosbox-0.72/src/hardware/tandy_sound.cpp 2007-06-30 04:21:12.000000000 +1000
|
||||
+++ dosbox-0.72-gcc4.3/src/hardware/tandy_sound.cpp 2008-11-29 10:43:06.026732418 +1100
|
||||
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
+#include <cstring>
|
||||
#include "dosbox.h"
|
||||
#include "inout.h"
|
||||
#include "mixer.h"
|
||||
diff -urN dosbox-0.72/src/shell/shell_cmds.cpp dosbox-0.72-gcc4.3/src/shell/shell_cmds.cpp
|
||||
--- dosbox-0.72/src/shell/shell_cmds.cpp 2007-08-18 03:58:46.000000000 +1000
|
||||
+++ dosbox-0.72-gcc4.3/src/shell/shell_cmds.cpp 2008-11-29 10:44:16.806788351 +1100
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
/* $Id: shell_cmds.cpp,v 1.78 2007/08/17 17:58:46 qbix79 Exp $ */
|
||||
|
||||
+#include <cstdlib>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <vector>
|
Loading…
x
Reference in New Issue
Block a user