Commit 9cfbf508 authored by Jeremy Soller's avatar Jeremy Soller

WIP: neverball

parent b22e461d
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 -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) \
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment