1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/cad/chipmunk/files/patch-ad
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

93 lines
2.0 KiB
Plaintext

--- log/src/Makefile.orig Wed Nov 5 04:53:39 2003
+++ log/src/Makefile Tue Dec 9 17:42:37 2003
@@ -45,8 +45,8 @@
CD = cd
-LOGLIBDIR = `$(CD) ../../log/lib; pwd`
-LIBDIR = `$(CD) ../../lib; pwd`
+LOGLIBDIR = ${PREFIX}/share/chipmunk
+LIBDIR = ${PREFIX}/share/chipmunk
LOCINC = ../../psys/include
@@ -63,9 +63,9 @@
## or some other directory, depending on your installation. Use the
## first one for OS X.
-XINCLUDEDIR = .
+XINCLUDEDIR = ${LOCALBASE}/include
-BINDIR = ../../bin
+BINDIR = ${PREFIX}/bin
LIBP2C = ../../psys/src/libp2c.a
##
@@ -81,7 +81,7 @@
## depending on your installation. Use the second one for OS X.
##
-LIBX11 = -lX11
+LIBX11 = -lX11 -L${LOCALBASE}/lib
##
## (2) Library additions
@@ -91,7 +91,7 @@
##
## on Sun Solaris 2.X, -lsocket -lnsl must be added to OTHERLIBS
-OTHERLIBS= -lm
+OTHERLIBS= -lm -lcompat
##
@@ -110,7 +110,7 @@
CHIPMUNKCC = gcc -O3
-CC = $(CHIPMUNKCC)
+CC ?= $(CHIPMUNKCC)
##
## (4) Adding appropriate flags
@@ -148,7 +148,7 @@
CHIPMUNKFLAGS =
-CFLAGS = $(CHIPMUNKFLAGS) -I$(LOCINC) -I$(XINCLUDEDIR) -DLOGLIB=\"$(LOGLIBDIR)\" -DF_OK=0
+CFLAGS += -DBSD -I$(LOCINC) -I$(XINCLUDEDIR) -DLOGLIB=\"$(LOGLIBDIR)\" -DF_OK=0
DIGOBJ = logsim.o logdig.o logsimasm.o logsimed.o diggates.o \
loghier.o logsimh.o swap.o
@@ -179,22 +179,24 @@
## older operating systems -- if problems arise, use a hard link.
##
+all: makeana main
+
install: all
- cp log $(BINDIR)/diglog
+ ${BSD_INSTALL_PROGRAM} log $(BINDIR)/diglog
-rm -f $(BINDIR)/analog
-(cd $(BINDIR); ln -s diglog analog)
- cp loged $(BINDIR)/loged
- cp fixfet7 $(BINDIR)/fixfet7
+ ${BSD_INSTALL_PROGRAM} loged $(BINDIR)/loged
+ ${BSD_INSTALL_SCRIPT} fixfet7 $(BINDIR)/fixfet7
+ cp -R ../lib/* $(LOGLIBDIR)
+ chmod -R a=r+X $(LOGLIBDIR)
clean:
-rm -f *.o ana/*.o ana/logdef.h log loged
-all: makeana main
-
main: log loged
makeana:
- ($(CD) ana; make $(MFLAGS) grab all)
+ ($(CD) ana; $(MAKE) $(MFLAGS) grab all)
LOGOBJ = log.o $(TOOLOBJ) logstuff.o logdef.o