mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 21:04:18 +08:00
WIP: neverball
This commit is contained in:
parent
b22e461d80
commit
9cfbf5085d
37
recipes/neverball/recipe.sh
Normal file
37
recipes/neverball/recipe.sh
Normal file
@ -0,0 +1,37 @@
|
||||
VERSION=1.6.0
|
||||
TAR="https://neverball.org/neverball-${VERSION}.tar.gz"
|
||||
BUILD_DEPENDS=(gettext libjpeg libogg liborbital libpng libvorbis llvm mesa sdl2 sdl2_ttf)
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_update {
|
||||
echo "skipping update"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export CPPFLAGS="-I$sysroot/include"
|
||||
export LDFLAGS="-L$sysroot/lib -static"
|
||||
make ENABLE_FS=stdio -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
|
||||
}
|
||||
57
recipes/neverball/redox.patch
Normal file
57
recipes/neverball/redox.patch
Normal file
@ -0,0 +1,57 @@
|
||||
diff -ruwN source/Makefile source-new/Makefile
|
||||
--- source/Makefile 2019-08-07 22:16:07.630185664 -0600
|
||||
+++ source-new/Makefile 2019-08-07 22:30:34.246756435 -0600
|
||||
@@ -38,11 +38,11 @@
|
||||
ifeq ($(DEBUG),1)
|
||||
CFLAGS := -g
|
||||
CXXFLAGS := -g
|
||||
- CPPFLAGS :=
|
||||
+ CPPFLAGS +=
|
||||
else
|
||||
CFLAGS := -O2
|
||||
CXXFLAGS := -O2
|
||||
- CPPFLAGS := -DNDEBUG
|
||||
+ CPPFLAGS += -DNDEBUG
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@@ -64,8 +64,8 @@
|
||||
|
||||
# Preprocessor...
|
||||
|
||||
-SDL_CPPFLAGS := $(shell sdl2-config --cflags)
|
||||
-PNG_CPPFLAGS := $(shell libpng-config --cflags)
|
||||
+SDL_CPPFLAGS := $(shell $(PKG_CONFIG) sdl2 --cflags)
|
||||
+PNG_CPPFLAGS := $(shell $(PKG_CONFIG) libpng --cflags)
|
||||
|
||||
ALL_CPPFLAGS := $(SDL_CPPFLAGS) $(PNG_CPPFLAGS) -Ishare
|
||||
|
||||
@@ -124,8 +124,8 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# Libraries
|
||||
|
||||
-SDL_LIBS := $(shell sdl2-config --libs)
|
||||
-PNG_LIBS := $(shell libpng-config --libs)
|
||||
+SDL_LIBS := $(shell $(PKG_CONFIG) sdl2 --libs)
|
||||
+PNG_LIBS := $(shell $(PKG_CONFIG) libpng --libs)
|
||||
|
||||
ifeq ($(ENABLE_FS),stdio)
|
||||
FS_LIBS :=
|
||||
@@ -148,7 +148,7 @@
|
||||
endif
|
||||
endif
|
||||
|
||||
-OGL_LIBS := -lGL
|
||||
+OGL_LIBS := -lorbital $(shell $(PKG_CONFIG) osmesa --libs) -lglapi
|
||||
|
||||
ifeq ($(PLATFORM),mingw)
|
||||
ifneq ($(ENABLE_NLS),0)
|
||||
@@ -175,7 +175,7 @@
|
||||
/usr/local/lib))
|
||||
endif
|
||||
|
||||
-OGG_LIBS := -lvorbisfile
|
||||
+OGG_LIBS := -lvorbisfile -lvorbis -logg
|
||||
TTF_LIBS := -lSDL2_ttf
|
||||
|
||||
ALL_LIBS := $(HMD_LIBS) $(TILT_LIBS) $(INTL_LIBS) $(TTF_LIBS) \
|
||||
Loading…
Reference in New Issue
Block a user