2003-12-09 18:31:03 +01:00
|
|
|
--- wol/Makefile.orig Wed Nov 5 20:24:18 2003
|
|
|
|
+++ wol/Makefile Tue Dec 9 17:49:36 2003
|
|
|
|
@@ -40,7 +40,7 @@
|
|
|
|
## first one for OS X.
|
1999-09-24 07:11:58 +02:00
|
|
|
##
|
|
|
|
|
|
|
|
-XINCLUDEDIR = .
|
- 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 19:56:05 +02:00
|
|
|
+XINCLUDEDIR = ${LOCALBASE}/include
|
1999-09-24 07:11:58 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
## If X isn't in the library path (the case for many MachTen and Linux
|
2003-12-09 18:31:03 +01:00
|
|
|
@@ -55,7 +55,7 @@
|
|
|
|
## depending on your installation. Use the second one for OS X.
|
2002-05-21 05:30:49 +02:00
|
|
|
##
|
|
|
|
|
|
|
|
-LIBX11 = -lX11
|
- 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 19:56:05 +02:00
|
|
|
+LIBX11 = -lX11 -L${LOCALBASE}/lib
|
2002-05-21 05:30:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2003-12-09 18:31:03 +01:00
|
|
|
@@ -67,7 +67,7 @@
|
1999-09-24 07:11:58 +02:00
|
|
|
##
|
|
|
|
## on some systems, -ldl must be added to the following line
|
|
|
|
|
|
|
|
-OTHERLIBS= -lm
|
|
|
|
+OTHERLIBS= -lm -lcompat
|
|
|
|
|
|
|
|
|
|
|
|
##
|
2002-05-21 05:30:49 +02:00
|
|
|
@@ -97,11 +97,11 @@
|
1999-09-24 07:11:58 +02:00
|
|
|
##
|
|
|
|
|
2002-05-21 05:30:49 +02:00
|
|
|
CHIPMUNKCC = gcc -O3
|
1999-09-24 07:11:58 +02:00
|
|
|
-CC = $(CHIPMUNKCC)
|
|
|
|
+CC ?= $(CHIPMUNKCC)
|
|
|
|
|
|
|
|
-LIBDIR = `pwd`/
|
2002-05-21 05:30:49 +02:00
|
|
|
+LIBDIR = ${PREFIX}/share/chipmunk
|
1999-09-24 07:11:58 +02:00
|
|
|
WOLPL = $(LIBDIR)
|
|
|
|
-BINDIR = ../bin
|
2002-05-21 05:30:49 +02:00
|
|
|
+BINDIR = ${PREFIX}/bin
|
1999-09-24 07:11:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
##
|
2003-12-09 18:31:03 +01:00
|
|
|
@@ -158,7 +158,7 @@
|
2002-05-21 05:30:49 +02:00
|
|
|
|
|
|
|
CHIPMUNKFLAGS =
|
1999-09-24 07:11:58 +02:00
|
|
|
|
2002-05-21 05:30:49 +02:00
|
|
|
-CFLAGS= $(CHIPMUNKFLAGS) -I$(LOCINC) -I$(XINCLUDEDIR) -DWOLLIBDIR=\"$(WOLPL)\"
|
1999-09-24 07:11:58 +02:00
|
|
|
+CFLAGS += -DBSD -DF_OK -I$(LOCINC) -I$(XINCLUDEDIR) -DWOLLIBDIR=\"$(WOLPL)\"
|
|
|
|
|
2002-05-21 05:30:49 +02:00
|
|
|
LDFLAGS= $(LIBP2C) $(LIBX11) $(OTHERLIBS)
|
1999-09-24 07:11:58 +02:00
|
|
|
|
2003-12-09 18:31:03 +01:00
|
|
|
@@ -201,8 +201,8 @@
|
1999-09-24 07:11:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
install: wol
|
|
|
|
- cp wol $(BINDIR)
|
2003-12-09 18:31:03 +01:00
|
|
|
- cp fixcify $(BINDIR)
|
2002-05-21 05:30:49 +02:00
|
|
|
+ ${BSD_INSTALL_PROGRAM} wol $(BINDIR)
|
2003-12-09 18:31:03 +01:00
|
|
|
+ ${BSD_INSTALL_SCRIPT} fixcify $(BINDIR)
|
1999-09-24 07:11:58 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.o wol
|