source: trunk/dports/emulators/spim/Portfile @ 57246

Last change on this file since 57246 was 54529, checked in by toby@…, 11 years ago

#20467 (spim 7.4 - Fix verify/patch issues)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 54529 2009-07-29 08:08:43Z toby@macports.org $
2
3PortSystem 1.0
4name            spim
5version         7.4
6revision        2
7categories      emulators devel lang x11
8maintainers     gmail.com:mdippery
9description     an assembly language MIPS R2000/R3000 simulator
10long_description \
11        SPIM S20 is a software simulator that runs assembly language programs for \
12        the MIPS R2000/R3000 RISC computers.  SPIM can read and immediately run \
13        files containing assembly language statements.  SPIM is a self-contained \
14        system for running these programs and contains a debugger and interface to \
15        the operating system. \
16        \
17        SPIM implements almost the entire MIPS assembler-extended instruction set \
18        for the R2000/R3000 (I've omitted some the complex floating point comparisons \
19        and details of the memory system page tables).  The MIPS architecture has \
20        evolved considerably since then (in particular the 64 bit extensions), which \
21        means that SPIM will not run programs compiled for recent MIPS or SGI \
22        processors.
23homepage        http://pages.cs.wisc.edu/~larus/spim.html
24platforms       darwin
25
26master_sites    http://pages.cs.wisc.edu/~larus/SPIM
27checksums       md5 4aae83509d47a5a98d37db5b469cbe9e \
28                sha1 7c0772389dc7db54854681bceae432ea0e4c1587 \
29                rmd160 e134bb9271a65e4324375d4aa5b4f81d4d6b9963
30
31depends_lib     port:xorg-libXaw port:xorg-libXp
32
33depends_build   port:rman port:flex port:bison path:bin/xmkmf:imake
34
35worksrcdir      ${name}-${version}
36
37patchfiles      patch-spim_Makefile.diff patch-xspim_Imakefile.diff
38
39configure {
40        system "cd ${worksrcpath}/spim && ./Configure"
41        system "cd ${worksrcpath}/xspim && xmkmf && ./Configure"
42}
43post-configure {
44        reinplace {s|$(DESTDIR)$(MAN_DIR)/$(DOC_DIR)/xspim.$(MANSUFFIX)|$(DESTDIR)$(MAN_DIR)/xspim.$(MANSUFFIX)|} ${worksrcpath}/xspim/Makefile
45}
46
47build {
48        system "cd ${worksrcpath}/spim && make prefix=${prefix} spim"
49        system "cd ${worksrcpath}/xspim && make prefix=${prefix} xspim"
50}
51
52test {
53        system "cd ${worksrcpath}/spim && make test"
54}
55
56destroot {
57        system "cd ${worksrcpath}/spim && make DESTDIR=${destroot} prefix=${prefix} install install-man"
58        system "cd ${worksrcpath}/xspim && make DESTDIR=${destroot} prefix=${prefix} install install.man"
59}
60
Note: See TracBrowser for help on using the repository browser.