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

Last change on this file since 45397 was 45397, checked in by blb@…, 12 years ago

emulators/spim - version update to 7.4, fixes tickets #15441 and #15454;
thanks to Steve Checkoway for the majority of work

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