summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorJing-Tang Keith Jang <keith@FreeBSD.org>2000-11-06 07:43:30 +0000
committerJing-Tang Keith Jang <keith@FreeBSD.org>2000-11-06 07:43:30 +0000
commit784b7d8ad21d26e8f2ec2433d91745d6909e5777 (patch)
treed64d0bc1fc7a6aefb874f1526f5c0561b805cf64 /lang
parentFix the port. (diff)
New port: mmix, a RISC computer designed by Donald E. Knuth
Notes
Notes: svn path=/head/; revision=34829
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile1
-rw-r--r--lang/mmix/Makefile36
-rw-r--r--lang/mmix/distinfo1
-rw-r--r--lang/mmix/files/patch-aa11
-rw-r--r--lang/mmix/pkg-comment1
-rw-r--r--lang/mmix/pkg-descr15
-rw-r--r--lang/mmix/pkg-plist73
7 files changed, 138 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 44de58bf7313..0a204a7f888f 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -57,6 +57,7 @@
SUBDIR += mawk
SUBDIR += mit-scheme
SUBDIR += mixal
+ SUBDIR += mmix
SUBDIR += modula-3
SUBDIR += modula-3-lib
SUBDIR += modula-3-socks
diff --git a/lang/mmix/Makefile b/lang/mmix/Makefile
new file mode 100644
index 000000000000..9e0b9272b8f9
--- /dev/null
+++ b/lang/mmix/Makefile
@@ -0,0 +1,36 @@
+# Ports collection makefile for: mmix
+# Date created: 25 Oct 2000
+# Whom: Jing-Tang Keith Jang <keith@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mmix
+PORTVERSION= 1.0
+CATEGORIES= lang
+MASTER_SITES= http://www-cs-faculty.stanford.edu/~knuth/programs/
+DISTNAME= mmix
+
+MAINTAINER= keith@FreeBSD.org
+
+BUILD_DEPENDS= ctangle:${PORTSDIR}/devel/cweb
+
+MMIXDIR= ${PREFIX}/share/mmix
+NO_WRKSUBDIR= yes
+FILES= mmix.1 mmix.mp silly.out silly.run
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/mmix ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mmixal ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mmotype ${PREFIX}/bin
+ @${MKDIR} ${MMIXDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${MMIXDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.mmconfig ${MMIXDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.mmix ${MMIXDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.mms ${MMIXDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.w ${MMIXDIR}
+.for f in ${FILES}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${MMIXDIR}
+.endfor
+
+.include <bsd.port.mk>
diff --git a/lang/mmix/distinfo b/lang/mmix/distinfo
new file mode 100644
index 000000000000..a4f107519069
--- /dev/null
+++ b/lang/mmix/distinfo
@@ -0,0 +1 @@
+MD5 (mmix.tar.gz) = 1a2f92fd3527219d16ffb971c6c0dc0b
diff --git a/lang/mmix/files/patch-aa b/lang/mmix/files/patch-aa
new file mode 100644
index 000000000000..281e63985139
--- /dev/null
+++ b/lang/mmix/files/patch-aa
@@ -0,0 +1,11 @@
+--- Makefile.orig Fri Oct 27 05:23:57 2000
++++ Makefile Fri Oct 27 05:24:40 2000
+@@ -6,7 +6,7 @@
+ # In fact, CWEB 3.61 is recommended for making hardcopy or PDF documentation.
+
+ # If you prefer optimization to debugging, change -g to something like -O:
+-CFLAGS = -g
++CFLAGS = -O -pipe
+
+ # Uncomment the second line if you use pdftex to bypass .dvi files:
+ PDFTEX = dvipdfm
diff --git a/lang/mmix/pkg-comment b/lang/mmix/pkg-comment
new file mode 100644
index 000000000000..fcfaeb448be1
--- /dev/null
+++ b/lang/mmix/pkg-comment
@@ -0,0 +1 @@
+MMIX is a RISC computer designed by Donald E. Knuth
diff --git a/lang/mmix/pkg-descr b/lang/mmix/pkg-descr
new file mode 100644
index 000000000000..e194d59a7db8
--- /dev/null
+++ b/lang/mmix/pkg-descr
@@ -0,0 +1,15 @@
+From Donald E. Knuth's MMIX page:
+
+MMIX is a RISC computer designed by the author to illustrate
+machine-level aspects of programming. In the next editions of his
+books The Art of Computer Programming, MMIX will replace the
+1960s-style machine MIX.
+
+More details can be found in his book:
+
+ MMIXware: A RISC Computer for the Third Millennium, by Donald E. Knuth
+ (Heidelberg: Springer-Verlag, 1999), viii+550pp. ISBN 3-540-66938-8.
+ (Lecture Notes in Computer Science, no. 1750.)
+
+Some MIX programs have been converted to MMIX, and can be found at
+http://www.mmixmasters.org/~mmixmasters/
diff --git a/lang/mmix/pkg-plist b/lang/mmix/pkg-plist
new file mode 100644
index 000000000000..5d4de6f2c22f
--- /dev/null
+++ b/lang/mmix/pkg-plist
@@ -0,0 +1,73 @@
+bin/mmix
+bin/mmixal
+bin/mmotype
+share/mmix/README
+share/mmix/abstime.w
+share/mmix/boilerplate.w
+share/mmix/copy.mms
+share/mmix/cp.mms
+share/mmix/crypto.mms
+share/mmix/crypto1.mms
+share/mmix/crypto2.mms
+share/mmix/deluxe.mmconfig
+share/mmix/echo.mms
+share/mmix/fftswap.mms
+share/mmix/fib.mms
+share/mmix/fibgo.mms
+share/mmix/fibsub.mms
+share/mmix/halves.mmix
+share/mmix/halves.mms
+share/mmix/harm.mms
+share/mmix/hello.mms
+share/mmix/inout.mms
+share/mmix/iotest.mms
+share/mmix/iotest1.mms
+share/mmix/iotest2.mms
+share/mmix/mmix-arith.w
+share/mmix/mmix-config.w
+share/mmix/mmix-doc.w
+share/mmix/mmix-io.w
+share/mmix/mmix-mem.w
+share/mmix/mmix-pipe.w
+share/mmix/mmix-sim.w
+share/mmix/mmix.1
+share/mmix/mmix.mp
+share/mmix/mmixal.w
+share/mmix/mmmix.w
+share/mmix/mmotype.w
+share/mmix/number1.mms
+share/mmix/phi.mms
+share/mmix/plain.mmconfig
+share/mmix/popup.mms
+share/mmix/primes.mmconfig
+share/mmix/primes.mmix
+share/mmix/primes.mms
+share/mmix/primes6.mms
+share/mmix/primesf.mms
+share/mmix/primesfx.mms
+share/mmix/primessf.mms
+share/mmix/primesx.mmconfig
+share/mmix/primesx.mmix
+share/mmix/primesx.mms
+share/mmix/saddle1.mms
+share/mmix/saddle2.mms
+share/mmix/silly.mms
+share/mmix/silly.out
+share/mmix/silly.run
+share/mmix/sim.mms
+share/mmix/sort.mms
+share/mmix/sortx.mms
+share/mmix/strcpy.mms
+share/mmix/sub1.mms
+share/mmix/sub2.mms
+share/mmix/test.mmconfig
+share/mmix/test.mmix
+share/mmix/test.mms
+share/mmix/test1.mmconfig
+share/mmix/test1.mmix
+share/mmix/test2.mmconfig
+share/mmix/test2.mmix
+share/mmix/traffic.mms
+share/mmix/valid.mms
+share/mmix/zero.mms
+@dirrm share/mmix