From 6931ff0eab1523eb6235200b94c9be10c5490d2c Mon Sep 17 00:00:00 2001 From: kevlo Date: Mon, 23 Jul 2001 14:54:28 +0000 Subject: [PATCH] Initial import of spim-6.3 Spim/xspim is a software simulator that runs assembly language programs for the MIPS R2000/R3000 RISC computers. It can read and immediately run files containing assembly language statements. It is a self-contained system for running these programs and contains a debugger and interface to the operating system. --- emulators/spim/Makefile | 40 ++++++++++++++++++++++++++ emulators/spim/files/md5 | 3 ++ emulators/spim/patches/patch-Imakefile | 31 ++++++++++++++++++++ emulators/spim/patches/patch-spim.man | 8 ++++++ emulators/spim/pkg/DESCR | 7 +++++ emulators/spim/pkg/PLIST | 10 +++++++ 6 files changed, 99 insertions(+) create mode 100644 emulators/spim/Makefile create mode 100644 emulators/spim/files/md5 create mode 100644 emulators/spim/patches/patch-Imakefile create mode 100644 emulators/spim/patches/patch-spim.man create mode 100644 emulators/spim/pkg/DESCR create mode 100644 emulators/spim/pkg/PLIST diff --git a/emulators/spim/Makefile b/emulators/spim/Makefile new file mode 100644 index 00000000000..03f744266a8 --- /dev/null +++ b/emulators/spim/Makefile @@ -0,0 +1,40 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2001/07/23 14:54:28 kevlo Exp $ + +COMMENT= "MIPS R2000 simulator" + +DISTNAME= spim6.3 +PKGNAME= spim-6.3 +CATEGORIES= emulators +NEED_VERSION= 1.427 + +HOMEPAGE= http://www.cs.wisc.edu/~larus/spim.html + +MAINTAINER= Kevin Lo + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ftp://ftp.cs.wisc.edu/pub/spim/ + +CONFIGURE_STYLE= gnu imake +CONFIGURE_SCRIPT= Configure + +WRKDIST= ${WRKDIR}/${PKGNAME} + +ALL_TARGET= spim xspim + +DOCS= spim.ps cycle.ps + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/spim + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/spim + ${INSTALL_DATA} ${WRKSRC}/trap.handler ${PREFIX}/share/spim + ${INSTALL_PROGRAM} ${WRKSRC}/spim ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/xspim ${PREFIX}/bin + cd ${WRKSRC}/Documentation; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/spim + ${INSTALL_MAN} ${WRKSRC}/spim.man ${PREFIX}/man/man1/spim.1 + ${INSTALL_MAN} ${WRKSRC}/xspim.man ${PREFIX}/man/man1/xspim.1 + +.include diff --git a/emulators/spim/files/md5 b/emulators/spim/files/md5 new file mode 100644 index 00000000000..9f6c01df645 --- /dev/null +++ b/emulators/spim/files/md5 @@ -0,0 +1,3 @@ +MD5 (spim6.3.tar.gz) = 04b1909f3ff647f1f04437f297c9ad84 +RMD160 (spim6.3.tar.gz) = 96544bcf02f7539d09421fa94b5d83876e9fb9a8 +SHA1 (spim6.3.tar.gz) = 972802a1dcd8b0c9c3c7d82767c005b8033f40d0 diff --git a/emulators/spim/patches/patch-Imakefile b/emulators/spim/patches/patch-Imakefile new file mode 100644 index 00000000000..ca517581c93 --- /dev/null +++ b/emulators/spim/patches/patch-Imakefile @@ -0,0 +1,31 @@ +--- Imakefile.orig Mon Jul 23 10:38:05 2001 ++++ Imakefile Mon Jul 23 10:40:11 2001 +@@ -44,13 +44,13 @@ + # + + # Full path for directory that will hold the trap handler file: +-TRAP_DIR = . ++TRAP_DIR = $(PREFIX)/share/spim + + # Full path for the directory that will hold the executable files: +-BIN_DIR = /usr/unsup/bin ++BIN_DIR = $(PREFIX)/bin + + # Full path for the directory that will hold the man files: +-MAN_DIR = /var/unsup/man ++MAN_DIR = $(PREFIX)/man/man1 + + + # If you have flex, use it instead of lex. If you use flex, define this +@@ -255,9 +255,9 @@ + mv -f lex.yy.c.xx lex.yy.c + + depend:: +- makedepend -w10 *.c ++ makedepend -w10 -I$(X11BASE)/include *.c + +-# ++# + # DO NOT DELETE THIS LINE -- make depend depends on it. + + buttons.o: spim.h diff --git a/emulators/spim/patches/patch-spim.man b/emulators/spim/patches/patch-spim.man new file mode 100644 index 00000000000..195ba7175b3 --- /dev/null +++ b/emulators/spim/patches/patch-spim.man @@ -0,0 +1,8 @@ +--- spim.man.orig Mon Jul 23 12:03:34 2001 ++++ spim.man Mon Jul 23 12:03:38 2001 +@@ -1,5 +1,4 @@ + .\" $Header: /home/cvs/ports/emulators/spim/patches/Attic/patch-spim.man,v 1.1.1.1 2001/07/23 14:54:28 kevlo Exp $ +- + .TH spim 1 + .SH NAME + spim \- A MIPS R2000/R3000 Simulator diff --git a/emulators/spim/pkg/DESCR b/emulators/spim/pkg/DESCR new file mode 100644 index 00000000000..772ab037a68 --- /dev/null +++ b/emulators/spim/pkg/DESCR @@ -0,0 +1,7 @@ +Spim/xspim is a software simulator that runs assembly language programs +for the MIPS R2000/R3000 RISC computers. It can read and immediately +run files containing assembly language statements. It is a self-contained +system for running these programs and contains a debugger and interface to +the operating system. + +WWW: ${HOMEPAGE} diff --git a/emulators/spim/pkg/PLIST b/emulators/spim/pkg/PLIST new file mode 100644 index 00000000000..157b463317a --- /dev/null +++ b/emulators/spim/pkg/PLIST @@ -0,0 +1,10 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2001/07/23 14:54:28 kevlo Exp $ +bin/spim +bin/xspim +man/man1/spim.1 +man/man1/xspim.1 +share/doc/spim/cycle.ps +share/doc/spim/spim.ps +share/spim/trap.handler +@dirrm share/spim +@dirrm share/doc/spim