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

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

x11 dependent ports: Force port: based X11 dependencies

As mentioned over the past month and a half on macports-dev:

This should address the underlying problem in tickets:

This commit updates all ports explicitly depending on X11. These ports now
explicitly rely on X11 libraries in MacPorts rather than using lib: based
dependencies satisfied by X11 libraries in $x11prefix. The former policy was
devised due to the difficulty of providing such libs easily to the MacPorts
community under the old monolythic X distribution. Due to the project's
transition to the autoconf build system and modularization of the project as
well as the XQuartz projects efforts to make these new releases work on OSX,
MacPorts can now have more control over its offerings and provide users with
better consistency and stability.

Other ports that "inherited" the X11 dependency may still require a revision
bump to link against the new libs. If you find a binary or library linking
against $x11prefix/lib/lib*.dylib after 'sudo port upgrade outdated' (and
you're not using the +system_x11 variant), please report that, so we can get
it fixed.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
1# $Id: Portfile 45603 2009-01-18 20:52:41Z $
3PortSystem 1.0
4name            spim
5version         7.4
6revision        1
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.
24platforms       darwin
27distname        ${name}
28dist_subdir     ${name}/${version}
29checksums       md5 5251ec442ef364ed8dede5dbda86fb47 \
30                sha1 e929fc5c2e258818a2325b1378740b3dd68dd5b6 \
31                rmd160 6fbce1b50fb669ec068ac7000b88a899d447dec0
33depends_lib     port:xorg-libXaw port:xorg-libXp
35depends_build   port:rman port:flex port:bison bin:xmkmf:imake
37worksrcdir      ${name}-${version}
39patchfiles      patch-spim_Makefile.diff patch-xspim_Imakefile.diff
41configure {
42        system "cd ${worksrcpath}/spim && ./Configure"
43        system "cd ${worksrcpath}/xspim && xmkmf && ./Configure"
45post-configure {
46        reinplace {s|$(DESTDIR)$(MAN_DIR)/$(DOC_DIR)/xspim.$(MANSUFFIX)|$(DESTDIR)$(MAN_DIR)/xspim.$(MANSUFFIX)|} ${worksrcpath}/xspim/Makefile
49build {
50        system "cd ${worksrcpath}/spim && make prefix=${prefix} spim"
51        system "cd ${worksrcpath}/xspim && make prefix=${prefix} xspim"
54test {
55        system "cd ${worksrcpath}/spim && make test"
58destroot {
59        system "cd ${worksrcpath}/spim && make DESTDIR=${destroot} prefix=${prefix} install install-man"
60        system "cd ${worksrcpath}/xspim && make DESTDIR=${destroot} prefix=${prefix} install"
Note: See TracBrowser for help on using the repository browser.