Ignore:
Timestamp:
Jun 1, 2005, 5:32:29 AM (15 years ago)
Author:
toby
Message:

spim 7.1
Bug: 2512

Location:
trunk/dports/emulators/spim
Files:
2 added
2 edited

Legend:

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

    r6783 r12495  
    1 # $Id: Portfile,v 1.5 2004/04/26 22:55:57 mww Exp $
     1# $Id: Portfile,v 1.6 2005/06/01 05:32:29 toby Exp $
    22
    33PortSystem 1.0
    44name            spim
    5 version         6.5
     5version         7.1
    66categories      emulators devel lang x11
    77maintainers     stewartsmith@mac.com
    88description     an assembly language MIPS R2000/R3000 simulator
     9long_description \
     10        SPIM S20 is a software simulator that runs assembly language programs for \
     11        the MIPS R2000/R3000 RISC computers.  SPIM can read and immediately run \
     12        files containing assembly language statements.  SPIM is a self-contained \
     13        system for running these programs and contains a debugger and interface to \
     14        the operating system. \
     15        \
     16        SPIM implements almost the entire MIPS assembler-extended instruction set \
     17        for the R2000/R3000 (I've omitted some the complex floating point comparisons \
     18        and details of the memory system page tables).  The MIPS architecture has \
     19        evolved considerably since then (in particular the 64 bit extensions), which \
     20        means that SPIM will not run programs compiled for recent MIPS or SGI \
     21        processors.
    922homepage        http://www.cs.wisc.edu/~larus/spim.html
     23platforms       darwin
     24
    1025master_sites    http://www.cs.wisc.edu/~larus/SPIM/
    11 distname        spim
    12 checksums       md5 be9cf6ff2798e507736d05eb5c70914f
    13 worksrcdir      spim-6.5
     26distname        ${name}
     27checksums       md5 24546da54bca92d96bf2ea284e81d6eb
     28
    1429depends_lib     lib:libX11.6:XFree86
     30
     31worksrcdir      ${name}-${version}
     32
     33patchfiles      patch-Configure patch-Makefile patch-spim.c
     34post-patch {
     35        reinplace s|__PREFIX__|${prefix}| ${worksrcpath}/Makefile
     36}
     37
    1538configure.cmd   ./Configure
    16 post-configure  { reinplace "s|/usr/unsup|${prefix}|g" ${worksrcpath}/Makefile
    17                   reinplace \
    18                         "s|^TRAP_DIR = \.|TRAP_DIR = ${prefix}/share/spim/|g" \
    19                         ${worksrcpath}/Makefile
    20                   reinplace "s|/var/unsup|${prefix}|g" ${worksrcpath}/Makefile
    21                 }
     39
    2240build.target    spim xspim
    23 build.args      BIN_DIR=${prefix}/bin MAN_DIR=${prefix}/share/man/ TRAP_DIR=${prefix}/share/spim/
    24 pre-destroot     { xinstall -d ${destroot}${prefix}/share/spim }
    25 destroot.target  install install.man
    26 destroot.args   MAN_DIR=${prefix}/share/man
    27 patchfiles      patch-Configure
    2841
    29 long_description   SPIM S20 is a software simulator that runs assembly language programs for\
    30 the MIPS R2000/R3000 RISC computers.  SPIM can read and immediately run\
    31 files containing assembly language statements.  SPIM is a self-contained\
    32 system for running these programs and contains a debugger and interface to\
    33 the operating system.\
    34 \
    35 SPIM implements almost the entire MIPS assembler-extended instruction set\
    36 for the R2000/R3000 (I've omitted some the complex floating point comparisons\
    37 and details of the memory system page tables).  The MIPS architecture has\
    38 evolved considerably since then (in particular the 64 bit extensions), which\
    39 means that SPIM will not run programs compiled for recent MIPS or SGI\
    40 processors.\
    41 
     42pre-destroot {
     43        xinstall -d ${destroot}${prefix}/share/spim
     44}
     45destroot.target install install.man
  • trunk/dports/emulators/spim/files/patch-Configure

    r4936 r12495  
    1 --- Configure.orig      Thu Jan 22 03:26:22 2004
    2 +++ Configure   Thu Jan 22 03:26:54 2004
    3 @@ -168,6 +168,8 @@
    4    echo "Using Darwin -traditional-cpp"
     1--- Configure.orig      2005-06-01 01:09:40.000000000 -0400
     2+++ Configure   2005-06-01 01:09:47.000000000 -0400
     3@@ -149,17 +149,6 @@
     4 fi;
     5 
     6 
     7-echo
     8-echo Checking for /usr/include/termios.h
     9-if [ -f /usr/include/termios.h ]; then
     10-  echo "-DUSE_TERMIOS" >> configuration
     11-  echo "Yes, it is there"
     12-else
     13-  # No termios
     14-  echo "No, it is not there"
     15-fi;
     16-
     17-
     18 if [ -f /usr/lib/libc.dylib ]; then
    519   # Darwin headers restricted if _POSIX_SOURCE
    620   echo "-U_POSIX_SOURCE" >> configuration
    7 +  # If using traditional, must turn this back on
    8 +  echo "-D__STDC__" >> configuration
    9  fi;
    10  
    11  rm -f library_contents
Note: See TracChangeset for help on using the changeset viewer.