Skip to content

Commit

Permalink
Initial import of spim-6.3
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kevin Lo committed Jul 23, 2001
1 parent c6fe357 commit 0d57d23
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 0 deletions.
40 changes: 40 additions & 0 deletions emulators/spim/Makefile
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>

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 changes: 3 additions & 0 deletions emulators/spim/files/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MD5 (spim6.3.tar.gz) = 04b1909f3ff647f1f04437f297c9ad84
RMD160 (spim6.3.tar.gz) = 96544bcf02f7539d09421fa94b5d83876e9fb9a8
SHA1 (spim6.3.tar.gz) = 972802a1dcd8b0c9c3c7d82767c005b8033f40d0
31 changes: 31 additions & 0 deletions emulators/spim/patches/patch-Imakefile
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions emulators/spim/patches/patch-spim.man
Original file line number Diff line number Diff line change
@@ -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: /Software/SPIM/src/spim.man 4 12/24/00 1:37p Larus $
-
.TH spim 1
.SH NAME
spim \- A MIPS R2000/R3000 Simulator
7 changes: 7 additions & 0 deletions emulators/spim/pkg/DESCR
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions emulators/spim/pkg/PLIST
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0d57d23

Please sign in to comment.