[125878] trunk/dports/emulators/spim/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Sun Sep 28 18:00:08 PDT 2014
Revision: 125878
https://trac.macports.org/changeset/125878
Author: jeremyhu at macports.org
Date: 2014-09-28 18:00:08 -0700 (Sun, 28 Sep 2014)
Log Message:
-----------
Update spim to latest release and drop xspim
Modified Paths:
--------------
trunk/dports/emulators/spim/Portfile
Modified: trunk/dports/emulators/spim/Portfile
===================================================================
--- trunk/dports/emulators/spim/Portfile 2014-09-29 00:34:43 UTC (rev 125877)
+++ trunk/dports/emulators/spim/Portfile 2014-09-29 01:00:08 UTC (rev 125878)
@@ -2,8 +2,7 @@
PortSystem 1.0
name spim
-version 7.4
-revision 2
+version 9.1.13
categories emulators devel lang x11
maintainers nomaintainer
description an assembly language MIPS R2000/R3000 simulator
@@ -20,41 +19,33 @@
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://pages.cs.wisc.edu/~larus/spim.html
+homepage http://spimsimulator.sourceforge.net
platforms darwin
-master_sites http://pages.cs.wisc.edu/~larus/SPIM
-checksums md5 4aae83509d47a5a98d37db5b469cbe9e \
- sha1 7c0772389dc7db54854681bceae432ea0e4c1587 \
- rmd160 e134bb9271a65e4324375d4aa5b4f81d4d6b9963
-depends_lib port:xorg-libXaw port:xorg-libXp
+fetch.type svn
+svn.revision 643
+svn.url http://svn.code.sf.net/p/spimsimulator/code
-depends_build port:rman port:flex port:bison path:bin/xmkmf:imake
+depends_build port:rman port:flex port:bison
-worksrcdir ${name}-${version}
+worksrcdir code/spim
-patchfiles patch-spim_Makefile.diff patch-xspim_Imakefile.diff patch-Lion.diff
+use_configure no
-configure {
- system "cd ${worksrcpath}/spim && ./Configure"
- system "cd ${worksrcpath}/xspim && xmkmf && ./Configure"
-}
-post-configure {
- reinplace {s|$(DESTDIR)$(MAN_DIR)/$(DOC_DIR)/xspim.$(MANSUFFIX)|$(DESTDIR)$(MAN_DIR)/xspim.$(MANSUFFIX)|} ${worksrcpath}/xspim/Makefile
-}
+build.target spim
+destroot.target install install-man
-build {
- system "cd ${worksrcpath}/spim && make prefix=${prefix} spim"
- system "cd ${worksrcpath}/xspim && make prefix=${prefix} xspim"
+# 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
-test {
- system "cd ${worksrcpath}/spim && make test"
-}
-
-destroot {
- system "cd ${worksrcpath}/spim && make DESTDIR=${destroot} prefix=${prefix} install install-man"
- system "cd ${worksrcpath}/xspim && make DESTDIR=${destroot} prefix=${prefix} install install.man"
-}
-
+destroot.post_args \
+ BIN_DIR=${destroot}${prefix}/bin \
+ EXCEPTION_DIR=${destroot}${prefix}/share/spim \
+ MAN_DIR=${destroot}${prefix}/share/man/man1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140928/be183cf8/attachment.html>
More information about the macports-changes
mailing list