redox/recipes/neverball/redox.patch
2019-08-07 22:33:00 -06:00

58 lines
1.5 KiB
Diff

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) \