source: trunk/dports/emulators/spim/Portfile

Last change on this file was 125879, checked in by jeremyhu@…, 3 years ago

spim: BSD License

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