diff --git a/recipes/neverball/recipe.sh b/recipes/neverball/recipe.sh new file mode 100644 index 0000000000000000000000000000000000000000..e455b4f7fbc37e045e98bc1bfa885eaf14ea620e --- /dev/null +++ b/recipes/neverball/recipe.sh @@ -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 +} diff --git a/recipes/neverball/redox.patch b/recipes/neverball/redox.patch new file mode 100644 index 0000000000000000000000000000000000000000..d3825f1c248f55a9c334dc3fb4febbdb37ccfd41 --- /dev/null +++ b/recipes/neverball/redox.patch @@ -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) \