freebsd-ports/games/solarconquest/files/patch-makefile
Martin Wilke 3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
2008-04-19 17:56:05 +00:00

11 lines
541 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${LOCALBASE}/lib -lSDL_mixer -lSDL_image -lGL -lGLU -lpng -ljpeg
+CXXFLAGS += `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include
all:
- g++ $(CFLAGS) -o solar ./source/main.cpp $(LIBRARIES)
+ ${CXX} ${CXXFLAGS} -o solar ./source/main.cpp ${LIBRARIES}