freebsd-ports/games/cube/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

38 lines
1 KiB
Text

--- Makefile.orig Sat Sep 23 23:51:57 2006
+++ Makefile Sat Sep 23 23:54:39 2006
@@ -1,8 +1,8 @@
-CXX=g++
-CXXOPTFLAGS=-Wall -O3 -fsigned-char -fomit-frame-pointer
-CXXFLAGS=$(CXXOPTFLAGS) -I../enet/include `sdl-config --cflags`
+CXX?=g++
+CXXOPTFLAGS=-Wall
+CXXFLAGS+=$(CXXOPTFLAGS) -I$(LOCALBASE)/include `$(SDL_CONFIG) --cflags`
-CLIENT_LIBS=-L../enet -lenet `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU
+CLIENT_LIBS=-L$(LOCALBASE)/lib -lenet `$(SDL_CONFIG) --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU
CLIENT_OBJS= \
client.o \
clientextras.o \
@@ -37,7 +37,7 @@
worldocull.o \
worldrender.o
-SERVER_LIBS=-L../enet -lenet
+SERVER_LIBS=-L$(LOCALBASE)/lib -lenet
SERVER_OBJS= \
standalone.o \
serverms.o \
@@ -49,11 +49,11 @@
all: enet client server
enet:
- -make -C ../enet all
+ -$(MAKE) -C ../enet all
clean:
-rm -f $(SERVER_OBJS) $(CLIENT_OBJS) cube_server cube_client
- -make -C ../enet/ clean
+ -$(MAKE) -C ../enet/ clean
standalone.o:
$(CXX) $(CXXFLAGS) -DSTANDALONE -o standalone.o -c serverutil.cpp