mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-05 11:35:01 +00:00
3e4ed01146
- 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)
101 lines
2.9 KiB
Makefile
101 lines
2.9 KiB
Makefile
--- ./system.mk.orig Thu Jul 29 00:10:32 2004
|
|
+++ ./system.mk Mon Jul 17 21:53:01 2006
|
|
@@ -7,7 +7,7 @@
|
|
## Installation paths
|
|
##
|
|
|
|
-PREFIX=/usr/local
|
|
+#PREFIX=/usr/local
|
|
|
|
# Unless you are creating a package conforming to some OS's standards, you
|
|
# probably do not want to modify the following directories:
|
|
@@ -19,7 +19,7 @@
|
|
# Some .lua files and ion-* shell scripts
|
|
SHAREDIR=$(PREFIX)/share/ion
|
|
# Manual pages
|
|
-MANDIR=$(PREFIX)/share/man
|
|
+MANDIR=$(PREFIX)/man
|
|
# Some documents
|
|
DOCDIR=$(PREFIX)/share/doc/ion
|
|
# Nothing at the moment
|
|
@@ -42,11 +42,11 @@
|
|
# libtool because even more-recent-than-libtool-1.4.3 releases of those
|
|
# OSes only have an _ancient_ 1.3.x libtool that _will_ _not_ _work even
|
|
# though a lot of libltdl-using apps require 1.4.3.
|
|
-LIBTOOL=libtool
|
|
+LIBTOOL=$(LOCALBASE)/bin/libtool --tag=CC
|
|
|
|
# Settings for compiling and linking to ltdl
|
|
-LTDL_INCLUDES=
|
|
-LTDL_LIBS=-lltdl
|
|
+LTDL_INCLUDES=-I$(LOCALBASE)/include
|
|
+LTDL_LIBS=-L$(LOCALBASE)/lib -lltdl
|
|
|
|
# The following should do it if you have manually installed libtool 1.5 in
|
|
# $(LIBTOOLDIR).
|
|
@@ -72,11 +72,11 @@
|
|
|
|
# If you have installed Lua 5.0 from the official tarball without changing
|
|
# paths, this should do it.
|
|
-LUA_DIR=/usr/local
|
|
-LUA_LIBS = -L$(LUA_DIR)/lib -R$(LUA_DIR)/lib -llua -llualib
|
|
-LUA_INCLUDES = -I$(LUA_DIR)/include
|
|
-LUA=$(LUA_DIR)/bin/lua
|
|
-LUAC=$(LUA_DIR)/bin/luac
|
|
+LUA_DIR=$(LOCALBASE)
|
|
+LUA_LIBS = -L$(LUA_LIBDIR) -R$(LUA_LIBDIR) -llua -llualib
|
|
+LUA_INCLUDES = -I$(LUA_INCDIR)
|
|
+LUA=$(LUA_BINDIR)/lua
|
|
+LUAC=$(LUA_BINDIR)/luac
|
|
|
|
# If you are using the Debian packages, the following settings should be
|
|
# what you want.
|
|
@@ -90,7 +90,7 @@
|
|
## X libraries, includes and options
|
|
##
|
|
|
|
-X11_PREFIX=/usr/X11R6
|
|
+X11_PREFIX=$(LOCALBASE)
|
|
# SunOS/Solaris
|
|
#X11_PREFIX=/usr/openwin
|
|
|
|
@@ -119,7 +119,7 @@
|
|
# asprintf and vasprintf in the c library. (gnu libc has.)
|
|
# If HAS_SYSTEM_ASPRINTF is not defined, an implementation
|
|
# in sprintf_2.2/ is used.
|
|
-#HAS_SYSTEM_ASPRINTF=1
|
|
+HAS_SYSTEM_ASPRINTF=1
|
|
|
|
|
|
# If you're on an archaic system (such as relatively recent *BSD releases)
|
|
@@ -132,16 +132,16 @@
|
|
## C compiler
|
|
##
|
|
|
|
-CC=gcc
|
|
+CC?=gcc
|
|
|
|
# Same as '-Wall -pedantic' without '-Wunused' as callbacks often
|
|
# have unused variables.
|
|
WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
|
|
-Wtrigraphs -Wformat -Wchar-subscripts \
|
|
- -Wparentheses -pedantic -Wuninitialized
|
|
+ -Wparentheses -Wuninitialized
|
|
|
|
-CFLAGS=-g -Os $(WARN) $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
|
|
-LDFLAGS=-g -Os $(EXTRA_LIBS) $(LIBS)
|
|
+CFLAGS+= $(WARN) $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
|
|
+LDFLAGS= $(EXTRA_LIBS) $(LIBS)
|
|
|
|
# The following options are mainly for development use and can be used
|
|
# to check that the code seems to conform to some standards. Depending
|
|
@@ -154,7 +154,7 @@
|
|
#POSIX_SOURCE=-D_POSIX_SOURCE
|
|
|
|
# Most systems
|
|
-#XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
|
|
+XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
|
|
# SunOS, (Irix)
|
|
#XOPEN_SOURCE=-D__EXTENSIONS__
|
|
|