mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 13:24:17 +08:00
Add dosbox recipe
This commit is contained in:
parent
8189b9725a
commit
bde36d3a74
11
recipes/dosbox/01_redox.patch
Normal file
11
recipes/dosbox/01_redox.patch
Normal 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
41
recipes/dosbox/recipe.sh
Normal 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
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user