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

Last change on this file since 47624 was 47624, checked in by ryandesign@…, 11 years ago

spim: always use imake from MacPorts; using Apple's imake causes problems; see:
http://lists.macosforge.org/pipermail/macports-users/2009-March/014115.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 47624 2009-03-02 09:18:32Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            spim
5version         7.4
6revision        1
7categories      emulators devel lang x11
8maintainers     nomaintainer
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
27distname        ${name}
28dist_subdir     ${name}/${version}
29checksums       md5 5251ec442ef364ed8dede5dbda86fb47 \
30                sha1 e929fc5c2e258818a2325b1378740b3dd68dd5b6 \
31                rmd160 6fbce1b50fb669ec068ac7000b88a899d447dec0
32
33depends_lib     port:xorg-libXaw port:xorg-libXp
34
35depends_build   port:rman port:flex port:bison path:bin/xmkmf:imake
36
37worksrcdir      ${name}-${version}
38
39patchfiles      patch-spim_Makefile.diff patch-xspim_Imakefile.diff
40
41configure {
42        system "cd ${worksrcpath}/spim && ./Configure"
43        system "cd ${worksrcpath}/xspim && xmkmf && ./Configure"
44}
45post-configure {
46        reinplace {s|$(DESTDIR)$(MAN_DIR)/$(DOC_DIR)/xspim.$(MANSUFFIX)|$(DESTDIR)$(MAN_DIR)/xspim.$(MANSUFFIX)|} ${worksrcpath}/xspim/Makefile
47}
48
49build {
50        system "cd ${worksrcpath}/spim && make prefix=${prefix} spim"
51        system "cd ${worksrcpath}/xspim && make prefix=${prefix} xspim"
52}
53
54test {
55        system "cd ${worksrcpath}/spim && make test"
56}
57
58destroot {
59        system "cd ${worksrcpath}/spim && make DESTDIR=${destroot} prefix=${prefix} install install-man"
60        system "cd ${worksrcpath}/xspim && make DESTDIR=${destroot} prefix=${prefix} install install.man"
61}
62
Note: See TracBrowser for help on using the repository browser.