Skip to content
Snippets Groups Projects
Verified Commit 66353b80 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

neverball: Build sol files and install to /games/neverball

parent 195dffe9
No related branches found
No related tags found
No related merge requests found
......@@ -13,10 +13,12 @@ function recipe_update {
}
function recipe_build {
env -i PATH=/usr/bin:/bin PKG_CONFIG=pkg-config \
make -j"$(nproc)" ENABLE_FS=stdio mapc sols
sysroot="$(realpath ../sysroot)"
export CPPFLAGS="-I$sysroot/include"
export LDFLAGS="-L$sysroot/lib -static"
#TODO: Make sol using host compiler
make -j"$(nproc)" ENABLE_FS=stdio ENABLE_NLS=0 clean-src
make -j"$(nproc)" ENABLE_FS=stdio ENABLE_NLS=0 neverball neverputt
skip=1
}
......@@ -33,6 +35,11 @@ function recipe_clean {
function recipe_stage {
dest="$(realpath $1)"
make DESTDIR="$dest" install
mkdir -p "${dest}/games"
cp -rv data "${dest}/games/neverball"
for bin in neverball neverputt
do
"${STRIP}" -v "$bin" -o "${dest}/games/neverball/$bin"
done
skip=1
}
......@@ -73,18 +73,3 @@ diff -ruwN source/Makefile source-new/Makefile
$(BALL_TARG) : $(BALL_OBJS)
$(LINK) -o $(BALL_TARG) $(BALL_OBJS) $(LDFLAGS) $(ALL_LIBS)
diff -ruwN source/share/version.h source-new/share/version.h
--- source/share/version.h 2019-08-07 22:43:26.197100463 -0600
+++ source-new/share/version.h 1969-12-31 17:00:00.000000000 -0700
@@ -1,6 +0,0 @@
-#ifndef VERSION_H
-#define VERSION_H
-
-#define VERSION "1.6.0"
-
-#endif
diff -ruwN source/.version source-new/.version
--- source/.version 2019-08-07 22:43:26.197100463 -0600
+++ source-new/.version 1969-12-31 17:00:00.000000000 -0700
@@ -1 +0,0 @@
-1.6.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment