mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-08 20:48:41 +08:00
commit
ea4e29ae81
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
|
||||||
|
}
|
||||||
15
recipes/sdl/03_cdrom.patch
Normal file
15
recipes/sdl/03_cdrom.patch
Normal 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
|
||||||
@ -17,7 +17,7 @@ function recipe_update {
|
|||||||
|
|
||||||
function recipe_build {
|
function recipe_build {
|
||||||
./autogen.sh
|
./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
|
make
|
||||||
skip=1
|
skip=1
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user