aboutsummaryrefslogtreecommitdiffstats
path: root/lang/oo2c/files
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-06-30 10:56:21 +0800
committerwill <will@FreeBSD.org>2000-06-30 10:56:21 +0800
commit6d49f05ed508b3e892f02311e1bd89ca79882783 (patch)
tree39f3946e8c1801bc0f75d1818ef23cc8696ab974 /lang/oo2c/files
parent76bc33ce050095945f2e4909bd197ed74075cbbe (diff)
downloadfreebsd-ports-graphics-6d49f05ed508b3e892f02311e1bd89ca79882783.tar.gz
freebsd-ports-graphics-6d49f05ed508b3e892f02311e1bd89ca79882783.tar.zst
freebsd-ports-graphics-6d49f05ed508b3e892f02311e1bd89ca79882783.zip
Add oo2c, an Oberon-2 compiler.
PR: 18215 Submitted by: Oliver Breuninger <ob@seicom.net>
Diffstat (limited to 'lang/oo2c/files')
-rw-r--r--lang/oo2c/files/oo246
-rw-r--r--lang/oo2c/files/patch-aa11
-rw-r--r--lang/oo2c/files/patch-and8
-rw-r--r--lang/oo2c/files/patch-gc31
4 files changed, 96 insertions, 0 deletions
diff --git a/lang/oo2c/files/oo2 b/lang/oo2c/files/oo2
new file mode 100644
index 00000000000..2de84d883c1
--- /dev/null
+++ b/lang/oo2c/files/oo2
@@ -0,0 +1,46 @@
+#! /bin/csh
+
+if ( $#argv == 0 ) goto usage
+if ( $1 == "--make" ) goto make
+if ( $1 == "-m" ) goto make
+
+compile:
+#
+# compile files, check extension
+#
+if ( $1 == "-c" ) then
+ set file = $2
+else
+ set file = $1
+endif
+echo Extension $file:e
+if ( $file:e != "Mod" ) then
+ set file = $file".Mod"
+endif
+echo compiling $file "..."
+oo2c $file | ooef | more
+goto end
+
+make:
+#
+# make Oberon program, remove Extension
+#
+echo making $2:r $3:r $4:r $5:r $6:r "..."
+oo2c --make $2:r $3:r $4:r $5:r $6:r
+goto end
+
+usage:
+#
+# show a litle help
+#
+echo ""
+echo " oo2 [option] File "
+echo ""
+echo " option: "
+echo " --make make Project "
+echo " -m make Project "
+echo " -c (default) compile Module "
+echo ""
+
+end:
+
diff --git a/lang/oo2c/files/patch-aa b/lang/oo2c/files/patch-aa
new file mode 100644
index 00000000000..2e32873cbb5
--- /dev/null
+++ b/lang/oo2c/files/patch-aa
@@ -0,0 +1,11 @@
+--- Makefile.in Wed Mar 1 06:44:52 2000
++++ Makefile.in.new Thu Jun 29 22:35:07 2000
+@@ -96,7 +96,7 @@
+ # Allow the user to specify the install program.
+ INSTALL=@INSTALL@
+ INSTALL_PROGRAM=@INSTALL_PROGRAM@
+-INSTALL_SCRIPT=@INSTALL_PROGRAM@
++INSTALL_SCRIPT=@INSTALL_SCRIPT@
+ INSTALL_DATA=@INSTALL_DATA@
+ INSTALL_CMD=@INSTALL_CMD@ # used by installed oo2c
+
diff --git a/lang/oo2c/files/patch-and b/lang/oo2c/files/patch-and
new file mode 100644
index 00000000000..05700fd2ff9
--- /dev/null
+++ b/lang/oo2c/files/patch-and
@@ -0,0 +1,8 @@
+--- src/frontend/Scanner.Mod.orig Tue Oct 19 20:41:03 1999
++++ src/frontend/Scanner.Mod Wed Oct 27 00:36:47 1999
+@@ -1335,4 +1335,5 @@
+ kwStr[i, 0, 0] := 0X; kwStr[i, 1, 0] := 0X
+ END;
++ KW ("AND", and);
+ KW ("ARRAY", array); KW ("BEGIN", begin); KW ("BY", by); KW ("CASE", case);
+ KW ("CONST", const); KW ("DIV", div); KW ("DO", do); KW ("ELSE", else);
diff --git a/lang/oo2c/files/patch-gc b/lang/oo2c/files/patch-gc
new file mode 100644
index 00000000000..3c89cf09bdc
--- /dev/null
+++ b/lang/oo2c/files/patch-gc
@@ -0,0 +1,31 @@
+--- gc/Makefile.orig Fri Mar 26 00:41:43 1999
++++ gc/Makefile Fri Dec 17 11:49:52 1999
+@@ -255,4 +255,9 @@
+ ln liblinuxgc.so libgc.so
+
++# FreeBSD shared library version of the collector
++libfreebsdgc.so: $(OBJS) dyn_load.o
++ ld -shared $(ABI_FLAG) -o libfreebsdgc.so $(OBJS) dyn_load.o -lc
++ ln libfreebsdgc.so libgc.so
++
+ # Alternative Linux rule. This is preferable, but is likely to break the
+ # Makefile for some non-linux platforms.
+@@ -331,4 +336,12 @@
+ -rm -f *~
+
++copy:
++ cat gc.man | gzip > gc.l.gz
++ cp -p gc.a /usr/local/lib/libgc.a
++ cp -p libgc.so /usr/local/lib/libgc.so.0
++ cp -p gc.h /usr/local/include
++ cp -p gc.l.gz /usr/local/man/manl
++ ln -s libgc.so.0 /usr/local/lib/libgc.so
++
+ gctest: test.o gc.a if_mach if_not_there
+ rm -f gctest
+@@ -417,2 +430,5 @@
+ cp tmp $$file; \
+ done
++
++install: all test libfreebsdgc.so copy
++