diff options
author | nsayer <nsayer@FreeBSD.org> | 2001-03-10 02:25:08 +0800 |
---|---|---|
committer | nsayer <nsayer@FreeBSD.org> | 2001-03-10 02:25:08 +0800 |
commit | 9776aabd5385b7fd6171aa92b82ce0d1e19962b2 (patch) | |
tree | b6d352e7c6c019fc722d84e37a36dc00acf5c60b /math | |
parent | 1dddff5c885cf941a6364e7762a2b9b0c96529d3 (diff) | |
download | freebsd-ports-gnome-9776aabd5385b7fd6171aa92b82ce0d1e19962b2.tar.gz freebsd-ports-gnome-9776aabd5385b7fd6171aa92b82ce0d1e19962b2.tar.zst freebsd-ports-gnome-9776aabd5385b7fd6171aa92b82ce0d1e19962b2.zip |
1. Respect CFLAGS
2. Respect X11BASE
3. Reduce Makefile patching by specifying ALL-TARGET
Diffstat (limited to 'math')
-rw-r--r-- | math/calctool/Makefile | 2 | ||||
-rw-r--r-- | math/calctool/files/patch-ab | 34 |
2 files changed, 20 insertions, 16 deletions
diff --git a/math/calctool/Makefile b/math/calctool/Makefile index efbafc5275b3..f06005832be8 100644 --- a/math/calctool/Makefile +++ b/math/calctool/Makefile @@ -17,4 +17,6 @@ MAINTAINER= nsayer@freebsd.org USE_X_PREFIX= yes MAN1= calctool.1 +ALL_TARGET= x11 + .include <bsd.port.mk> diff --git a/math/calctool/files/patch-ab b/math/calctool/files/patch-ab index 1b6f64e338e4..fd22b93a54cd 100644 --- a/math/calctool/files/patch-ab +++ b/math/calctool/files/patch-ab @@ -1,17 +1,17 @@ ---- Makefile.orig Sat May 29 11:35:43 1993 -+++ Makefile Sun Aug 16 10:37:31 1998 +--- Makefile.orig Sat May 29 09:35:43 1993 ++++ Makefile Fri Mar 9 10:17:33 2001 @@ -116,8 +116,8 @@ # library files are not in a standard place, then the following # two lines should be uncommented, and set appropriately. # -#X11INCDIR = -I$(OPENWINHOME)/include -#X11LIBDIR = -L$(OPENWINHOME)/lib -+X11INCDIR = -I/usr/X11R6/include -+X11LIBDIR = -L/usr/X11R6/lib ++X11INCDIR = -I${X11BASE}/include ++X11LIBDIR = -L${X11BASE}/lib #------------------------------------------------------------------------- # If you are compiling the XView version, then the following two lines # should be uncommented. -@@ -130,10 +130,10 @@ +@@ -130,14 +130,14 @@ # Default locations where calctool files will be installed. # You might wish to alter these values. # @@ -26,19 +26,21 @@ # # Compilation flags and standard macro definitions. # -@@ -144,8 +144,9 @@ - # - #========================================================================= - --BINARIES = mgr_calctool ps_calctool sv_calctool \ -- tty_calctool xcalctool xv_calctool -+#BINARIES = mgr_calctool ps_calctool sv_calctool \ -+# tty_calctool xcalctool xv_calctool -+BINARIES = x11 +-CFLAGS = -g $(HELPNAME) $(NEWSFILE) $(STUPID_FPE) $(NOIEEE) \ ++CFLAGS += $(HELPNAME) $(NEWSFILE) $(STUPID_FPE) $(NOIEEE) \ + $(NOINDEX) $(RCNAME) $(SELTYPE) $(SHLIB) $(SIGRET) \ + $(SUN4_KEYBOARD) $(TTEXT) $(MGRPARAM) $(MGRINCDIR) \ + $(X11INCDIR) $(XVIEWINCDIR) +@@ -147,7 +147,7 @@ + BINARIES = mgr_calctool ps_calctool sv_calctool \ + tty_calctool xcalctool xv_calctool - CC = cc +-CC = cc ++#CC = cc -@@ -233,8 +234,7 @@ + LIBSRCS = graphics.c display.c functions.c get.c + LIBOBJS = graphics.o display.o functions.o get.o +@@ -233,8 +233,7 @@ ld -o libcalctool.so.1.1 -assert pure-text $? install: |