Changeset 125878


Ignore:
Timestamp:
Sep 29, 2014, 1:00:08 AM (6 years ago)
Author:
jeremyhu@…
Message:

Update spim to latest release and drop xspim

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/emulators/spim/Portfile

    r105512 r125878  
    33PortSystem 1.0
    44name            spim
    5 version         7.4
    6 revision        2
     5version         9.1.13
    76categories      emulators devel lang x11
    87maintainers     nomaintainer
     
    2120        means that SPIM will not run programs compiled for recent MIPS or SGI \
    2221        processors.
    23 homepage        http://pages.cs.wisc.edu/~larus/spim.html
     22homepage        http://spimsimulator.sourceforge.net
    2423platforms       darwin
    2524
    26 master_sites    http://pages.cs.wisc.edu/~larus/SPIM
    27 checksums       md5 4aae83509d47a5a98d37db5b469cbe9e \
    28                 sha1 7c0772389dc7db54854681bceae432ea0e4c1587 \
    29                 rmd160 e134bb9271a65e4324375d4aa5b4f81d4d6b9963
    3025
    31 depends_lib     port:xorg-libXaw port:xorg-libXp
     26fetch.type      svn
     27svn.revision    643
     28svn.url         http://svn.code.sf.net/p/spimsimulator/code
    3229
    33 depends_build   port:rman port:flex port:bison path:bin/xmkmf:imake
     30depends_build   port:rman port:flex port:bison
    3431
    35 worksrcdir      ${name}-${version}
     32worksrcdir      code/spim
    3633
    37 patchfiles      patch-spim_Makefile.diff patch-xspim_Imakefile.diff patch-Lion.diff
     34use_configure   no
    3835
    39 configure {
    40         system "cd ${worksrcpath}/spim && ./Configure"
    41         system "cd ${worksrcpath}/xspim && xmkmf && ./Configure"
     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}
    4243}
    43 post-configure {
    44         reinplace {s|$(DESTDIR)$(MAN_DIR)/$(DOC_DIR)/xspim.$(MANSUFFIX)|$(DESTDIR)$(MAN_DIR)/xspim.$(MANSUFFIX)|} ${worksrcpath}/xspim/Makefile
    45 }
     44build.post_args \
     45    CC="${configure.cxx} ${cxx_stdlibflags}" \
     46    EXCEPTION_DIR=${prefix}/share/spim
    4647
    47 build {
    48         system "cd ${worksrcpath}/spim && make prefix=${prefix} spim"
    49         system "cd ${worksrcpath}/xspim && make prefix=${prefix} xspim"
    50 }
    51 
    52 test {
    53         system "cd ${worksrcpath}/spim && make test"
    54 }
    55 
    56 destroot {
    57         system "cd ${worksrcpath}/spim && make DESTDIR=${destroot} prefix=${prefix} install install-man"
    58         system "cd ${worksrcpath}/xspim && make DESTDIR=${destroot} prefix=${prefix} install install.man"
    59 }
    60 
     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 TracChangeset for help on using the changeset viewer.