1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/cad/chipmunk/files/patch-ah
Ying-Chieh Liao 797d6cd4f1 upgrade to 5.59
PR:		38227
Submitted by:	Ports Fury
2002-05-21 03:30:49 +00:00

50 lines
1.1 KiB
Plaintext

--- 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 = ${X11BASE}/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