freebsd-ports/games/tank/files/patch-Makefile.Linux.Mesa
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

42 lines
1 KiB
Text

--- Makefile.Linux.Mesa.orig Sun Feb 2 12:59:42 1997
+++ Makefile.Linux.Mesa Sat Dec 4 08:56:39 2004
@@ -3,23 +3,23 @@
.SUFFIXES: .cc .o
-ARCH = -DLINUX -DMESA #-DSOUND
+TARCH = -DLINUX -DPREFIX=\"$(PREFIX)\" #-DUSING_MESA -DSOUND
MESA = Mesa
-INCLUDE = -I/usr/include -I$(MESA)/include -I$(MESA)/include/GL
+INCLUDE = -I$(LOCALBASE)/include -I$(LOCALBASE)/include/GL
-CFLAGS = $(INCLUDE) $(ARCH) -O2 -m486 -Wall -pipe \
- -pedantic -funroll-loops -mieee-fp
+CFLAGS += $(INCLUDE) $(TARCH) -DSOUND -Wall -pipe ${PTHREAD_CFLAGS} \
+ -pedantic -funroll-loops
-LDFLAGS = -L/usr/X11R6/lib -L$(MESA)/lib
+LDFLAGS = -L$(LOCALBASE)/lib
TAR = tar
COMPRESS = compress -v
MV = mv
RM = rm -f
LS = /bin/ls
-CC = gcc -Wall
+CC ?= gcc -Wall
CD = cd
.c.o:
@@ -31,8 +31,7 @@
linux-elf: $(Obj)
@echo "Linking $(Obj) to $(EXECNAME)..."
$(CC) -o $(EXECNAME) $(Obj) $(LDFLAGS) \
- -lMesaaux -lMesatk -lMesaGLU -lMesaGL \
- -lXext -lX11 -lm
+ -laux -lGLU -lGL -lXext -lX11 -lm $(PTHREAD_LIBS)
@echo "****** Done ******"
linux: $(Obj)