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

Last change on this file since 125878 was 125878, checked in by jeremyhu@…, 6 years ago

Update spim to latest release and drop xspim

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 125878 2014-09-29 01:00:08Z jeremyhu@macports.org $
2
3PortSystem 1.0
4name            spim
5version         9.1.13
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://spimsimulator.sourceforge.net
23platforms       darwin
24
25
26fetch.type      svn
27svn.revision    643
28svn.url         http://svn.code.sf.net/p/spimsimulator/code
29
30depends_build   port:rman port:flex port:bison
31
32worksrcdir      code/spim
33
34use_configure   no
35
36build.target spim
37destroot.target install install-man
38
39# Yeah... fail build system
40set cxx_stdlibflags {}
41if {[string match *clang* ${configure.cxx}]} {
42    set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
43}
44build.post_args \
45    CC="${configure.cxx} ${cxx_stdlibflags}" \
46    EXCEPTION_DIR=${prefix}/share/spim
47
48destroot.post_args \
49    BIN_DIR=${destroot}${prefix}/bin \
50    EXCEPTION_DIR=${destroot}${prefix}/share/spim \
51    MAN_DIR=${destroot}${prefix}/share/man/man1
Note: See TracBrowser for help on using the repository browser.