freebsd-ports/games/3dc/files/patch-aa
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

35 lines
1.2 KiB
Text

--- Makefile.orig Thu Apr 11 16:23:53 1996
+++ Makefile Fri Jan 26 23:23:12 2007
@@ -13,7 +13,7 @@
# If your system doesn't have a unique define already, define one here.
# Linux
-CONFIGS=-DHAVE_UNISTD_H -DHAVE_ULIMIT_H
+CONFIGS=-DHAVE_UNISTD_H
# OSF/Digital Unix/HPUX
#CONFIGS=-fPIC -DHAVE_UNISTD_H -DHAVE_ULIMIT_H
# Sun
@@ -27,19 +27,19 @@
# can send me opinions at mailto:paulh@euristix.ie
PREFS=-DUNDO_ANY_MOVE
-CC=gcc
+#CC=gcc
#DEBUG=-g -Wall -DDEBUG
DEBUG=
-COPTIONS=-O2 -fstrength-reduce -fpcc-struct-return -DVERSION=\"${VERSION}\"
+COPTIONS=-DVERSION=\"${VERSION}\"
-CFLAGS=${COPTIONS} ${DEBUG} ${CONFIGS} ${PREFS} -I../include
+CFLAGS+=${COPTIONS} ${DEBUG} ${CONFIGS} ${PREFS} -I../include -I${LOCALBASE}/include
LDOPTIONS=
# LDLIBS should include the name of your X library path if not /usr/lib;
# and I definitely recommend getting Xaw3d. The extra appearance doesn't
# appear much but it looks much better when it does.
# Linux
-LDLIBS=-L/usr/X11R6/lib -lXpm -lXaw3d -lXmu -lXext -lXt -lX11
+LDLIBS=-L${LOCALBASE}/lib -lXpm -lXaw3d -lXmu -lXext -lXt -lX11 -Wl,-rpath,${LOCALBASE}/lib
# Sun
#LDLIBS=-lXpm -lXaw -lXmu -lXext -lXt -lX11 -lm