freebsd-ports/cad/chipmunk/files/patch-ah
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

49 lines
1.1 KiB
Text

--- psys/src/Makefile.orig Sat Mar 2 06:39:14 2002
+++ psys/src/Makefile Sat May 18 13:25:17 2002
@@ -30,8 +30,8 @@
## to be made for different systems. Its a good idea to look over each
## block and make necessary changes before doing a "make install"
-LIBDIR = ../../lib
-BINDIR = ../../bin
+LIBDIR = ${PREFIX}/share/chipmunk
+BINDIR = ${PREFIX}/bin
LIB = ../libp2c.a
@@ -51,7 +51,7 @@
## or some other directory, depending on your installation.
##
-XINCLUDEDIR = .
+XINCLUDEDIR = ${LOCALBASE}/include
##
## (1) Choosing your compiler
@@ -101,7 +101,7 @@
LIBSTUFF = texstuff.ps untilstuff.ps plot.font
-CC = $(CHIPMUNKCC)
+CC ?= $(CHIPMUNKCC)
##
@@ -149,7 +149,7 @@
CHIPMUNKFLAGS =
-CFLAGS = $(CHIPMUNKFLAGS) -I$(LOCINC) -I$(XINCLUDEDIR) -DCHIPLIB=\"`$(CD) $(LIBDIR); pwd`\"
+CFLAGS += -DBSD -DF_OK -I$(LOCINC) -I$(XINCLUDEDIR) -DCHIPLIB=\"$(LIBDIR)\"
P2CFLAGS = -DLOCAL_INIT=_local_p2c_init
@@ -165,7 +165,7 @@
## below; however the "-" allows this to be non-fatal and thus not essential
## to delete
-all: setup libp2c.a
+all: libp2c.a
setup:
-if [ ! -d $(LIBDIR) ] ; then mkdir $(LIBDIR) ; fi