freebsd-ports/games/solarconquest/files/patch-makefile
Emanuel Haupt 9715677bb7 Add solarconquest 0.2, a space 2D action game with plenty of shooting.
PR:		95385
Submitted by:	Dmitry Marakasov <amdmi3@mail.ru>
2006-05-31 13:30:16 +00:00

11 lines
537 B
Text

--- makefile.orig Sun Mar 6 16:36:47 2005
+++ makefile Thu Apr 6 02:54:20 2006
@@ -1,5 +1,5 @@
-LIBRARIES = `sdl-config --libs` -L/usr/X11R6/lib -lSDL_mixer -lSDL_image -lGL -lGLU -lpng -ljpeg
-CFLAGS = -w -O3 -I/usr/include/GL `sdl-config --cflags`
+LIBRARIES = `${SDL_CONFIG} --libs` -L${X11BASE}/lib -lSDL_mixer -lSDL_image -lGL -lGLU -lpng -ljpeg
+CXXFLAGS += `${SDL_CONFIG} --cflags` -I${X11BASE}/include
all:
- g++ $(CFLAGS) -o solar ./source/main.cpp $(LIBRARIES)
+ ${CXX} ${CXXFLAGS} -o solar ./source/main.cpp ${LIBRARIES}