# $Id: Portfile 125878 2014-09-29 01:00:08Z jeremyhu@macports.org $ PortSystem 1.0 name spim version 9.1.13 categories emulators devel lang x11 maintainers nomaintainer description an assembly language MIPS R2000/R3000 simulator long_description \ SPIM S20 is a software simulator that runs assembly language programs for \ the MIPS R2000/R3000 RISC computers. SPIM can read and immediately run \ files containing assembly language statements. SPIM is a self-contained \ system for running these programs and contains a debugger and interface to \ the operating system. \ \ SPIM implements almost the entire MIPS assembler-extended instruction set \ for the R2000/R3000 (I've omitted some the complex floating point comparisons \ and details of the memory system page tables). The MIPS architecture has \ evolved considerably since then (in particular the 64 bit extensions), which \ means that SPIM will not run programs compiled for recent MIPS or SGI \ processors. homepage http://spimsimulator.sourceforge.net platforms darwin fetch.type svn svn.revision 643 svn.url http://svn.code.sf.net/p/spimsimulator/code depends_build port:rman port:flex port:bison worksrcdir code/spim use_configure no build.target spim destroot.target install install-man # Yeah... fail build system set cxx_stdlibflags {} if {[string match *clang* ${configure.cxx}]} { set cxx_stdlibflags -stdlib=${configure.cxx_stdlib} } build.post_args \ CC="${configure.cxx} ${cxx_stdlibflags}" \ EXCEPTION_DIR=${prefix}/share/spim destroot.post_args \ BIN_DIR=${destroot}${prefix}/bin \ EXCEPTION_DIR=${destroot}${prefix}/share/spim \ MAN_DIR=${destroot}${prefix}/share/man/man1