ports/games/galaxyhack/files/patch-Makefile
Pawel Pekala 0453c879cb - Fix build on -current
- Update MASTER_SITES
- Add desktop entry file
- Support staging

PR:		ports/184895
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-12-21 14:02:04 +00:00

19 lines
671 B
Text

--- Makefile.orig Wed Oct 4 22:32:43 2006
+++ Makefile Wed Oct 4 22:34:18 2006
@@ -9,9 +9,13 @@
INSTALL_DIR=/usr/local/share
INSTALL_BIN_DIR=/usr/local/bin
-CXX = g++
-CXXFLAGS = $(shell sdl-config --cflags) -O3
-LDFLAGS = $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lboost_filesystem
+CXX ?= g++
+CXXFLAGS += $(shell $(SDL_CONFIG) --cflags)
+LDFLAGS += $(shell $(SDL_CONFIG) --libs) -lSDL_image -lSDL_mixer -lboost_filesystem -lboost_system
+
+ifdef OPTIMIZED_CFLAGS
+CXXFLAGS += -O3
+endif
OBJS = AIInterpreter.o AutoFireUnit.o BCCompiler.o DerivedGroups.o DragWindow.o \
ForceSelect.o ForceSelectWin.o GenWindow.o GenWindow_Base.o GFX.o Globals.o \