aboutsummaryrefslogtreecommitdiffstats
path: root/lang/mmix
diff options
context:
space:
mode:
authorkeith <keith@FreeBSD.org>2000-11-06 15:43:30 +0800
committerkeith <keith@FreeBSD.org>2000-11-06 15:43:30 +0800
commitde72621bdb9bb4bd023be8db75a9a9b27f3974e2 (patch)
treed13638da63543b9f14b634e3bf05028882ec07f5 /lang/mmix
parent264361e0757715fbf656a15608ae1c3f8f2806aa (diff)
downloadfreebsd-ports-gnome-de72621bdb9bb4bd023be8db75a9a9b27f3974e2.tar.gz
freebsd-ports-gnome-de72621bdb9bb4bd023be8db75a9a9b27f3974e2.tar.zst
freebsd-ports-gnome-de72621bdb9bb4bd023be8db75a9a9b27f3974e2.zip
New port: mmix, a RISC computer designed by Donald E. Knuth
Diffstat (limited to 'lang/mmix')
-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
6 files changed, 137 insertions, 0 deletions
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