mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 12:24:17 +08:00
Add schismtracker recipe
This commit is contained in:
parent
559c743da7
commit
8d61e7492e
24
recipes/schismtracker/01_redox.patch
Normal file
24
recipes/schismtracker/01_redox.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -rupNw source-original/Makefile.am source/Makefile.am
|
||||
--- source-original/Makefile.am 2018-08-10 07:04:54.000000000 +0200
|
||||
+++ source/Makefile.am 2018-12-30 23:18:07.957244170 +0100
|
||||
@@ -223,7 +223,7 @@ files_macosx = \
|
||||
endif
|
||||
|
||||
if USE_NETWORK
|
||||
-cflags_network=-DUSE_NETWORK
|
||||
+#cflags_network=-DUSE_NETWORK
|
||||
endif
|
||||
|
||||
|
||||
diff -rupNw source-original/schism/main.c source/schism/main.c
|
||||
--- source-original/schism/main.c 2018-08-10 07:04:54.000000000 +0200
|
||||
+++ source/schism/main.c 2018-12-30 23:19:24.954046191 +0100
|
||||
@@ -1033,7 +1033,7 @@ int main(int argc, char **argv)
|
||||
|
||||
video_fullscreen(0);
|
||||
|
||||
- tzset(); // localtime_r wants this
|
||||
+ //tzset(); // localtime_r wants this
|
||||
srand(time(NULL));
|
||||
parse_options(argc, argv); /* shouldn't this be like, first? */
|
||||
|
||||
41
recipes/schismtracker/recipe.sh
Normal file
41
recipes/schismtracker/recipe.sh
Normal file
@ -0,0 +1,41 @@
|
||||
VERSION=20181223
|
||||
TAR=https://github.com/schismtracker/schismtracker/archive/$VERSION.tar.gz
|
||||
TAR_SHA256=fc32930c611fdb78face87dbe8a3c62e70088fd8d4ad803140e0b9a0b2e72ad7
|
||||
BUILD_DEPENDS=(sdl liborbital libiconv)
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_update {
|
||||
echo "skipping update"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
sysroot="${PWD}/../sysroot"
|
||||
export CFLAGS="-I$sysroot/include -I$sysroot/include/SDL"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export SDL_CONFIG="$sysroot/bin/sdl-config"
|
||||
autoreconf -i
|
||||
./configure --host=${HOST} --prefix=''
|
||||
make -j"$(nproc)"
|
||||
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