From bde36d3a744742af47e451d8db5061d8d3cfad8e Mon Sep 17 00:00:00 2001 From: Tibor Nagy <xnagytibor@gmail.com> Date: Thu, 3 May 2018 20:39:12 +0200 Subject: [PATCH] Add dosbox recipe --- recipes/dosbox/01_redox.patch | 11 ++++++++++ recipes/dosbox/recipe.sh | 41 +++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 recipes/dosbox/01_redox.patch create mode 100644 recipes/dosbox/recipe.sh diff --git a/recipes/dosbox/01_redox.patch b/recipes/dosbox/01_redox.patch new file mode 100644 index 000000000..260d25a75 --- /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 000000000..c058a76eb --- /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 +} -- GitLab