Add dosbox recipe

This commit is contained in:
Tibor Nagy 2018-05-03 20:39:12 +02:00
parent 8189b9725a
commit bde36d3a74
2 changed files with 52 additions and 0 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
}