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.
This commit is contained in:
kevlo 2001-07-23 14:54:28 +00:00
parent dcd804e414
commit 6931ff0eab
6 changed files with 99 additions and 0 deletions

40
emulators/spim/Makefile Normal file
View File

@ -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 <kevlo@openbsd.org>
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 <bsd.port.mk>

3
emulators/spim/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (spim6.3.tar.gz) = 04b1909f3ff647f1f04437f297c9ad84
RMD160 (spim6.3.tar.gz) = 96544bcf02f7539d09421fa94b5d83876e9fb9a8
SHA1 (spim6.3.tar.gz) = 972802a1dcd8b0c9c3c7d82767c005b8033f40d0

View File

@ -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

View File

@ -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

7
emulators/spim/pkg/DESCR Normal file
View File

@ -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}

10
emulators/spim/pkg/PLIST Normal file
View File

@ -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