diff --git a/recipes/dosbox/01_redox.patch b/recipes/dosbox/01_redox.patch new file mode 100644 index 0000000000000000000000000000000000000000..260d25a75f068dedacde9a2eb0219cda9b130840 --- /dev/null +++ b/recipes/dosbox/01_redox.patch @@ -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 { diff --git a/recipes/dosbox/recipe.sh b/recipes/dosbox/recipe.sh new file mode 100644 index 0000000000000000000000000000000000000000..c058a76ebb33f87014ec37c0ab71502cfff00e1d --- /dev/null +++ b/recipes/dosbox/recipe.sh @@ -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 +} diff --git a/recipes/sdl/03_cdrom.patch b/recipes/sdl/03_cdrom.patch new file mode 100644 index 0000000000000000000000000000000000000000..350595be69a9cd6105fb18c79dd063b76b60bc5b --- /dev/null +++ b/recipes/sdl/03_cdrom.patch @@ -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 diff --git a/recipes/sdl/recipe.sh b/recipes/sdl/recipe.sh index da0031fe48def79cef9ba36f3bd5f63cb8cc2cab..94eb69e4cfa094a9671c598904cfd0f2bfa08aa5 100644 --- a/recipes/sdl/recipe.sh +++ b/recipes/sdl/recipe.sh @@ -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 }