summaryrefslogtreecommitdiff
path: root/games/redeclipse/files/patch-src_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/redeclipse/files/patch-src_Makefile')
-rw-r--r--games/redeclipse/files/patch-src_Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/games/redeclipse/files/patch-src_Makefile b/games/redeclipse/files/patch-src_Makefile
new file mode 100644
index 000000000000..cb9acca9d1f7
--- /dev/null
+++ b/games/redeclipse/files/patch-src_Makefile
@@ -0,0 +1,25 @@
+--- src/Makefile.orig 2015-03-22 02:34:16.000000000 +0300
++++ src/Makefile 2015-03-24 22:21:53.223966000 +0300
+@@ -3,10 +3,9 @@
+ APPSERVER=$(APPNAME)_server
+
+ #CXXFLAGS= -ggdb3
+-CXXFLAGS= -O3 -fomit-frame-pointer -ffast-math
+ override CXXFLAGS+= -Wall -fsigned-char -fno-exceptions -fno-rtti
+
+-PLATFORM= $(shell gcc -dumpmachine)
++PLATFORM= $(shell ${CC} -dumpmachine)
+
+ ifeq (,$(PLATFORM_BIN))
+ ifneq (,$(findstring arm,$(PLATFORM)))
+@@ -80,8 +79,8 @@
+ BIN_SUFFIX=_native
+ endif
+ endif
+-CLIENT_INCLUDES= $(INCLUDES) -I/usr/X11R6/include `sdl-config --cflags`
+-CLIENT_LIBS= -Lenet -lenet -L/usr/X11R6/lib -lX11 `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL
++CLIENT_INCLUDES= $(INCLUDES) -I${LOCALBASE}/include `${SDL_CONFIG} --cflags`
++CLIENT_LIBS= -Lenet -lenet -L${LOCALBASE}/include -lX11 `${SDL_CONFIG} --libs` -lSDL_image -lSDL_mixer -lz -lGL
+ endif
+ ifneq (,$(findstring linux,$(PLATFORM)))
+ CLIENT_LIBS+= -lrt