Merge pull request #151 from xTibor/dosbox-sdl

Add dosbox recipe
This commit is contained in:
Jeremy Soller 2018-05-03 13:37:13 -06:00 committed by GitHub
commit ea4e29ae81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 68 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- source/include/cross_orig.h 2017-10-25 01:51:53.148610915 +0200
+++ source/include/cross.h 2017-10-25 00:56:43.896422986 +0200
@@ -64,7 +64,7 @@
//Solaris maybe others
#if defined (DB_HAVE_NO_POWF)
#include <math.h>
-static inline float powf (float x, float y) { return (float) pow (x,y); }
+//static inline float powf (float x, float y) { return (float) pow (x,y); }
#endif
class Cross {

41
recipes/dosbox/recipe.sh Normal file
View File

@ -0,0 +1,41 @@
VERSION=0.74
TAR=https://sourceforge.net/projects/dosbox/files/dosbox/$VERSION/dosbox-$VERSION.tar.gz/download
BUILD_DEPENDS=(sdl liborbital)
export CFLAGS="-I$PWD/sysroot/include/SDL/"
export CPPFLAGS="-I$PWD/sysroot/include/SDL/"
export LDFLAGS="-L$PWD/sysroot/lib/"
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
./autogen.sh
wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
./configure --host=${HOST} --prefix='' --disable-opengl --disable-sdltest --with-sdl-prefix="$PWD/../sysroot"
make
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
make clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
make DESTDIR="$dest" install
skip=1
}

View File

@ -0,0 +1,15 @@
diff -rupNw source-original/configure.in source/configure.in
--- source-original/configure.in 2012-01-19 07:30:05.000000000 +0100
+++ source/configure.in 2018-05-03 00:23:39.060438383 +0200
@@ -2445,6 +2445,11 @@ case "$host" in
SOURCES="$SOURCES $srcdir/src/cdrom/osf/*.c"
have_cdrom=yes
;;
+ redox)
+ AC_DEFINE(SDL_CDROM_DUMMY)
+ SOURCES="$SOURCES $srcdir/src/cdrom/dummy/*.c"
+ have_cdrom=yes
+ ;;
esac
fi
# Set up files for the thread library

View File

@ -17,7 +17,7 @@ function recipe_update {
function recipe_build {
./autogen.sh
./configure --prefix=/ --host=${HOST} --disable-shared --disable-pulseaudio --disable-video-x11 --disable-cdrom --disable-loadso --disable-threads --enable-audio --enable-dummyaudio --enable-video-orbital
./configure --prefix=/ --host=${HOST} --disable-shared --disable-pulseaudio --disable-video-x11 --disable-loadso --disable-threads --enable-audio --enable-dummyaudio --enable-video-orbital --enable-cdrom
make
skip=1
}