summaryrefslogtreecommitdiff
path: root/lang/pforth/patches
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2001-01-19 22:26:59 +0000
committerjtb <jtb@pkgsrc.org>2001-01-19 22:26:59 +0000
commit700155153db9e7e31b0e2a02cfe67e1d1b4c08ca (patch)
treeda604e1284a9971980a0e8e9ac8acee79bd5796a /lang/pforth/patches
parent66c752478a2425fa44361bbc63f162a27b8b18b8 (diff)
downloadpkgsrc-700155153db9e7e31b0e2a02cfe67e1d1b4c08ca.tar.gz
Initial import of new "pforth" package:
Portable ANS-like Forth written in ANSI C
Diffstat (limited to 'lang/pforth/patches')
-rw-r--r--lang/pforth/patches/patch-aa58
-rw-r--r--lang/pforth/patches/patch-ab13
2 files changed, 71 insertions, 0 deletions
diff --git a/lang/pforth/patches/patch-aa b/lang/pforth/patches/patch-aa
new file mode 100644
index 00000000000..10bcda41781
--- /dev/null
+++ b/lang/pforth/patches/patch-aa
@@ -0,0 +1,58 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/01/19 22:27:00 jtb Exp $
+
+--- makefile.orig Tue Apr 7 00:43:01 1998
++++ makefile
+@@ -27,7 +27,7 @@
+ -Wmissing-declarations
+
+ CCOPTS = -DPF_SUPPORT_FP $(FULL_WARNINGS)
+-COMPILER = gcc
++COMPILER = $(CC)
+
+ EMBCCOPTS = -DPF_NO_INIT -DPF_NO_MALLOC -DPF_NO_FILEIO \
+ -DPF_NO_CLIB -DPF_STATIC_DIC
+@@ -44,10 +44,10 @@
+ COMPILE = $(COMPILER) $(CCOPTS) $(CDEFS)
+
+ ${OBJECTDIR}/%.o: $(PFINCLUDES) ${SOURCEDIR}/%.c
+- $(COMPILE) -O -o ${OBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c
+-
++ $(COMPILE) $(CFLAGS) -o ${OBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c
++
+ ${EMBOBJECTDIR}/%.o: $(PFINCLUDES) ${SOURCEDIR}/%.c ${SOURCEDIR}/pfdicdat.h
+- $(COMPILE) -O -o ${EMBOBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c $(EMBCCOPTS)
++ $(COMPILE) $(CFLAGS) -o ${EMBOBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c $(EMBCCOPTS)
+
+ all: pforth pforth.dic
+
+@@ -62,26 +62,26 @@
+ echo ${PFOBJS}
+ echo "EMBEDDED OBJECT FILES ------------------"
+ echo ${PFEMBOBJS}
+-
++
+ # build pforth by compiling 'C' source
+ pforth: $(PFINCLUDES) $(PFOBJS)
+ $(COMPILER) $(PFOBJS) -lm -o pforth
+
+ # build basic dictionary by running newly built pforth and including system.fth
+ pforth.dic: pforth
+- pforth -i system.fth
++ ./pforth -i system.fth
+
+ ${SOURCEDIR}/pfdicdat.h: pforth pforth.dic
+ @(echo 'INCLUDE utils/savedicd.fth'; \
+ echo 'SDAD'; \
+ echo 'bye') | \
+- pforth -dpforth.dic
++ ./pforth -dpforth.dic
+ cp pfdicdat.h ${SOURCEDIR}
+
+
+ pfemb: $(PFINCLUDES) $(PFEMBOBJS)
+ $(COMPILER) $(PFEMBOBJS) -lm -o pfemb
+-
++
+ clean:
+ rm -f $(PFOBJS) $(PFEMBOBJS) pforth *.dic core ${SOURCEDIR}/pfdicdat.h pfemb
+
diff --git a/lang/pforth/patches/patch-ab b/lang/pforth/patches/patch-ab
new file mode 100644
index 00000000000..91f7cc61ef6
--- /dev/null
+++ b/lang/pforth/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/01/19 22:27:00 jtb Exp $
+
+--- csrc/pf_main.c.orig Fri Jan 19 21:03:56 2001
++++ csrc/pf_main.c
+@@ -42,7 +42,7 @@
+
+ int main( int argc, char **argv )
+ {
+- const char *DicName = "pforth.dic";
++ const char *DicName = "@PREFIX@/lib/pforth/pforth.dic";
+ const char *SourceName = NULL;
+ char IfInit = FALSE;
+ char *s;