summaryrefslogtreecommitdiff
path: root/math/apc
diff options
context:
space:
mode:
authorMike Heffner <mikeh@FreeBSD.org>2002-07-04 08:09:05 +0000
committerMike Heffner <mikeh@FreeBSD.org>2002-07-04 08:09:05 +0000
commitdb59d15a8ececbddd134ccfee64ce13d9cfa3919 (patch)
tree4618426a17ffccb60420d694accab0ede2b37738 /math/apc
parentUpdate to version 9.3b. (diff)
Prepare for xforms update.
Notes
Notes: svn path=/head/; revision=62419
Diffstat (limited to 'math/apc')
-rw-r--r--math/apc/Makefile2
-rw-r--r--math/apc/files/patch-aa15
2 files changed, 11 insertions, 6 deletions
diff --git a/math/apc/Makefile b/math/apc/Makefile
index 7bc1ff049b6d..2b0a1fd2246d 100644
--- a/math/apc/Makefile
+++ b/math/apc/Makefile
@@ -12,7 +12,7 @@ MASTER_SITES= http://members.global2000.net/~eagriff/
MAINTAINER= eagriff@global2000.net
-LIB_DEPENDS= xforms.0:${PORTSDIR}/x11-toolkits/xforms
+LIB_DEPENDS= forms.0:${PORTSDIR}/x11-toolkits/xforms
USE_X_PREFIX= yes
MAN1= apc.1
diff --git a/math/apc/files/patch-aa b/math/apc/files/patch-aa
index 7fe0dcbbfc50..9d55486bc273 100644
--- a/math/apc/files/patch-aa
+++ b/math/apc/files/patch-aa
@@ -1,11 +1,16 @@
---- Makefile.orig Fri Aug 31 23:39:56 2001
-+++ Makefile Fri Aug 31 23:40:02 2001
-@@ -2,7 +2,7 @@
+--- Makefile.orig Mon Oct 13 15:25:38 1997
++++ Makefile Tue Jul 2 01:04:00 2002
+@@ -1,8 +1,11 @@
+ # New Makefile for apc (13 October 1997)
#
- CFLAGS+=-DOS=\"$(OSTYPE)\" -I${X11BASE}/include
+-CFLAGS+=-DOS=\"$(OSTYPE)\" -I${X11BASE}/include
++.if exists(${X11BASE}/include/X11/forms.h)
++XFORMSINC=-I${X11BASE}/include/X11
++.endif
++CFLAGS+=-DOS=\"$(OSTYPE)\" -I${X11BASE}/include ${XFORMSINC}
LDFLAGS+=-L${X11BASE}/lib
-LDADD+=-lxforms -lX11 -lm
-+LDADD+=-lxforms -lX11 -lm -lXpm
++LDADD+=-lforms -lX11 -lm -lXpm
BINDIR=${X11BASE}/bin
MANDIR=${X11BASE}/man/man
PROG= apc