summaryrefslogtreecommitdiff
path: root/www/analog/patches
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-05-09 16:41:15 +0000
committertron <tron@pkgsrc.org>1999-05-09 16:41:15 +0000
commit1eec97e321add8f0e264715425ddb769dbebdb6b (patch)
tree738bbb9a31063fd7253f422e6a8bc29bbb3b686c /www/analog/patches
parentf684b51d3c9eb348b56c3a31aa939609e7adef51 (diff)
downloadpkgsrc-1eec97e321add8f0e264715425ddb769dbebdb6b.tar.gz
Adapt this package to NetBSD and update to version 3.2.
Diffstat (limited to 'www/analog/patches')
-rw-r--r--www/analog/patches/patch-aa69
-rw-r--r--www/analog/patches/patch-ab2
-rw-r--r--www/analog/patches/patch-ac2
3 files changed, 59 insertions, 14 deletions
diff --git a/www/analog/patches/patch-aa b/www/analog/patches/patch-aa
index d970227f9d0..bd5fe147301 100644
--- a/www/analog/patches/patch-aa
+++ b/www/analog/patches/patch-aa
@@ -1,25 +1,66 @@
---- Makefile.orig Sat Nov 7 00:27:05 1998
-+++ Makefile Tue Jan 19 21:21:20 1999
-@@ -2,10 +2,11 @@
+$NetBSD: patch-aa,v 1.2 1999/05/09 16:41:15 tron Exp $
+
+--- Makefile.orig Tue May 4 12:02:27 1999
++++ Makefile Sun May 9 17:40:24 1999
+@@ -2,17 +2,16 @@
# Please read docs/Readme.html, or http://www.statslab.cam.ac.uk/~sret1/analog/
CC = gcc # which compiler to use: eg cc, acc, gcc. NB Different
# compilers need different CFLAGS, e.g., -O instead of -O2.
-CFLAGS = -O2 # options, e.g. for optimisation or ANSI compilation.
-+#CFLAGS = -O2 # options, e.g. for optimisation or ANSI compilation.
- # HP/UX cc needs -Aa (HP/UX 9) or -Ae (HP/UX 10)
- # Some Linuces might need -I/usr/src/linux/include
--DEFS = # any of -DNOPIPES -DNODNS -DNODIRENT -DNOSTRCMP -DEBCDIC
-+#DEFS = # any of -DNOPIPES -DNODNS -DNODIRENT -DNOSTRCMP -DEBCDIC
-+DEFS = -DPREFIX=\"$(PREFIX)\"
- # Solaris 2 (SunOS 5) might need DEFS = -DNOSTRCMP
+-# HP/UX cc needs -Aa (HP/UX 9) or -Ae (HP/UX 10)
+-# Some Linuces might need -I/usr/src/linux/include
+-# BS2000/OSD requires -XLLML -XLLMK
+-DEFS = # any of -DNOPIPES -DNODNS -DNODIRENT -DEBCDIC ...
++CEXTRAFLAGS = -O2 # options, e.g. for optimisation or ANSI compilation.
++# HP/UX cc requires CEXTRAFLAGS = -Aa (HP/UX 9) or ...
++# -Ae (HP/UX 10); BS2000/OSD requires -XLLML -XLLMK
++DEFS = -DPREFIX=\"${PREFIX}\"
++ # any of -DNOPIPES -DNODNS -DNODIRENT -DEBCDIC ...
+ # ... -DNEED_STRCMP -DNEED_MEMMOVE -DNEED_STRTOUL ...
+-# ... -DNEED_DIFFTIME -DNEED_FLOATINGPONT_H
++# ... -DNEED_DIFFTIME -DNEED_FLOATINGPOINT_H
+ # Solaris 2 (SunOS 5) might need DEFS = -DNEED_STRCMP
+ # SunOS 4 probably needs...
+-# DEFS = -DNEED_MEMMOVE -DNEED_STRTOUL -DNEED_DIFFTIME -DNEED_FLOATINGPONT_H
+-# but even then it may have bugs.
++# DEFS = -DNEED_MEMMOVE -DNEED_STRTOUL -DNEED_DIFFTIME -DNEED_FLOATINGPOINT_H
OS = UNIX # Operating system: UNIX, DOS, WIN32, MAC, OS2, VMS
# RISCOS, BEOS, BS2000
-@@ -27,6 +28,8 @@
+ LIBS = # extra libraries needed; Solaris 2 (SunOS 5) needs
+@@ -29,29 +28,31 @@
+ macinput.o macstuff.o output.o output2.o process.o settings.o \
+ sort.o tree.o utils.o win32.o
+ HEADERS = analhead.h analhea2.h macdir.h
++CFLAGS = $(CEXTRAFLAGS) $(DEFS) -D$(OS)
+
# Form interface options:
FORMPROG = anlgform.cgi # The program that processes the data from the form
FORMSRC = anlgform.c # The source code for that program
-+
-+all: $(PROGRAM)
$(PROGRAM): $(OBJS) $(HEADERS) Makefile
- $(CC) $(CFLAGS) $(OBJS) -o $(PROGRAM) $(LIBS)
+- $(CC) $(CFLAGS) $(OBJS) -o $(PROGRAM) $(LIBS)
++ $(CC) $(CEXTRAFLAGS) $(OBJS) -o $(PROGRAM) $(LIBS)
+ @echo '***'
+ @echo '***IMPORTANT: You must read the licence before using analog'
+ @echo '***'
+
++# Some make's won't pick up this rule but their .c.o rule should be good enough
+ %.o: %.c $(HEADERS) Makefile
+- $(CC) $(CFLAGS) $(DEFS) -D$(OS) -c $<
++ $(CC) $(CFLAGS) -c $<
+
+ $(FORMPROG): $(FORMSRC) Makefile
+- $(CC) $(CFLAGS) $(FORMSRC) -o $(FORMPROG)
++ $(CC) $(CEXTRAFLAGS) $(FORMSRC) -o $(FORMPROG)
+
+ form: $(FORMPROG)
+
+ force:
+ rm -f $(OBJS)
+- make $(PROGRAM) 'CFLAGS=$(CFLAGS)' 'LIBS=$(LIBS)' 'DEFS=$(DEFS)' \
+- CC=$(CC)
++ make $(PROGRAM) 'CEXTRAFLAGS=$(CEXTRAFLAGS)' 'LIBS=$(LIBS)' \
++ 'DEFS=$(DEFS)' CC=$(CC)
+
+ clean:
+ rm -f *.o analog *~
diff --git a/www/analog/patches/patch-ab b/www/analog/patches/patch-ab
index 5597d0e17fc..1dadca9fdda 100644
--- a/www/analog/patches/patch-ab
+++ b/www/analog/patches/patch-ab
@@ -1,3 +1,5 @@
+$NetBSD: patch-ab,v 1.2 1999/05/09 16:41:15 tron Exp $
+
*** analhead.h.orig Thu Apr 9 14:59:28 1998
--- analhead.h Fri Apr 10 01:34:18 1998
***************
diff --git a/www/analog/patches/patch-ac b/www/analog/patches/patch-ac
index 80f6e25f401..99468f20a99 100644
--- a/www/analog/patches/patch-ac
+++ b/www/analog/patches/patch-ac
@@ -1,3 +1,5 @@
+$NetBSD: patch-ac,v 1.2 1999/05/09 16:41:15 tron Exp $
+
--- analog.cfg.orig Wed Nov 25 22:49:33 1998
+++ analog.cfg Tue Jan 19 21:24:09 1999
@@ -8,7 +8,8 @@