freebsd-ports/graphics/glean/files/patch-common.mak
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

59 lines
1.3 KiB
Makefile

--- ../make/common.mak.orig Wed Nov 6 19:13:23 2002
+++ ../make/common.mak Thu Sep 25 16:22:58 2003
@@ -39,11 +39,11 @@
# Locations of common commands:
ifeq ($(PLATFORM), Unix)
AR:=/usr/bin/ar
- CC:=/usr/bin/g++
+ CC:=${CXX}
INSTALL:=/usr/bin/install -c
RANLIB:=/usr/bin/ranlib
RM:=/bin/rm
- SED:=/bin/sed
+ SED:=/usr/bin/sed
SHELL:=/bin/sh
MKDIR:=/bin/mkdir
endif # Unix
@@ -72,14 +72,14 @@
ifeq ($(PLATFORM), Unix)
# Note: Do *not* list standard system #include directories here,
# because some compilers complain about them.
- XINC:=-I/usr/include/X11
- XLIB:=/usr/X11R6/lib
- GLINC:=#-I/usr/include
- GLLIB:=/usr/lib
- GLUTINC:=#-I/usr/include
- GLUTLIB:=/usr/lib
- TIFFINC:=#-I/usr/include
- TIFFLIB:=/usr/lib
+ XINC:=-I${LOCALBASE}/include
+ XLIB:=${LOCALBASE}/lib
+ GLINC:=-I${LOCALBASE}/include
+ GLLIB:=${LOCALBASE}/lib
+ GLUTINC:=-I${LOCALBASE}/include
+ GLUTLIB:=${LOCALBASE}/lib
+ TIFFINC:=-I${LOCALBASE}/include
+ TIFFLIB:=${LOCALBASE}/lib
EXTRALIBS:=
endif # Unix
ifeq ($(PLATFORM), BeOS)
@@ -166,10 +162,7 @@
$(TIFFINC)
OPT:= # Optimization options
ifeq ($(PLATFORM), Unix)
-_OPT=\
- -march=pentiumpro \
- -O -fno-unroll-all-loops \
- $(OPT)
+_OPT= ${CFLAGS}
endif # Unix
ifeq ($(PLATFORM), BeOS)
_OPT=\
@@ -183,7 +176,6 @@
WARN:= # warning options
ifeq ($(PLATFORM), Unix)
_WARN=\
- -Wall \
-W \
$(WARN)
endif # Unix