freebsd-ports/x11-wm/ion/files/patch-system.mk
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

84 lines
1.8 KiB
Makefile

--- system.mk.orig Sat Jan 19 15:15:13 2002
+++ system.mk Mon Mar 15 03:19:42 2004
@@ -7,13 +7,13 @@
## Installation paths
##
-PREFIX=/usr/local
+#PREFIX=/usr/local
# No need to modify these usually
BINDIR=$(PREFIX)/bin
ETCDIR=$(PREFIX)/etc
MANDIR=$(PREFIX)/man
-DOCDIR=$(PREFIX)/doc
+DOCDIR=$(PREFIX)/share/doc
# Not used
INCDIR=$(PREFIX)/include
LIBDIR=$(PREFIX)/lib
@@ -24,14 +24,14 @@
##
#MODULE_SUPPORT=-DCF_NO_MODULE_SUPPORT
-MODULE_SUPPORT_LDFLAGS=-export-dynamic -ldl
+MODULE_SUPPORT_LDFLAGS=-export-dynamic
##
## X libraries, includes and options
##
-X11_PREFIX=/usr/X11R6
+X11_PREFIX=$(LOCALBASE)
# SunOS/Solaris
#X11_PREFIX=/usr/openwin
@@ -52,14 +52,14 @@
# asprintf and vasprintf in the c library. (gnu libc has.)
# If HAS_SYSTEM_ASPRINTF is not defined, an implementation
# in libtu/sprintf_2.2/ is used.
-#HAS_SYSTEM_ASPRINTF=1
+HAS_SYSTEM_ASPRINTF=1
##
## C compiler
##
-CC=gcc
+CC?=gcc
# The POSIX_SOURCE, XOPEN_SOURCE and WARN options should not be necessary,
# they're mainly for development use. So, if they cause trouble (not
@@ -83,11 +83,11 @@
# have unused variables.
WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
-Wtrigraphs -Wformat -Wchar-subscripts \
- -Wparentheses -pedantic-errors -Wuninitialized
+ -Wparentheses -Wuninitialized
-CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
-LDFLAGS=-g $(LIBS) $(EXTRA_LIBS)
+CFLAGS+= $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
+LDFLAGS= $(LIBS) $(EXTRA_LIBS)
##
@@ -112,13 +112,13 @@
##
# Should work almost everywhere
-INSTALL=install
+#INSTALL=install
# On a system with pure BSD install, -c might be preferred
-#INSTALL=install -c
+INSTALL=install -c
INSTALLDIR=mkdir -p
BIN_MODE=755
-DATA_MODE=664
+DATA_MODE=644
STRIP=strip