source: trunk/dports/emulators/simh/Portfile @ 46829

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

Version bump to 3.8-1.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 46829 2009-02-14 12:55:37Z gwright@macports.org $
2
3PortSystem 1.0
4
5name            simh
6version         v38-1
7categories      emulators
8platforms       darwin
9maintainers     gwright@macports.org
10description     A highly portable, multi-system simulator.
11long_description        \
12                The Computer History Simulation Project is a loose      \
13                Internet-based collective of people interested in       \
14                restoring historically significant computer hardware    \
15                and software systems by simulation. The goal of the     \
16                project is to create highly portable system simulators  \
17                and to publish them as freeware on the Internet,        \
18                with freely available copies of significant or          \
19                representative software.
20
21homepage        http://simh.trailing-edge.com
22master_sites    http://simh.trailing-edge.com/sources/
23
24checksums       md5     e15f65a82e21ea49e14b438326d93d5c                \
25                sha1    5eac2f8e50be11600727983e05072690a7066702        \
26                rmd160  f085c52ec92425f84f65b3f3605cb7aba8be7b32
27
28use_zip         yes
29distname        ${name}${version}
30worksrcdir      .
31configure       {}
32
33pre-build       { file mkdir ${worksrcpath}/BIN }
34
35depends_lib     port:libpcap
36build.target    "USE_NETWORK=1 all"
37
38build           {
39#               system "export OSTYPE"
40                system "cd ${worksrcpath} && OSTYPE=darwin make USE_NETWORK=1 all"
41}
42
43post-extract    {
44                reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/makefile
45}
46
47destroot {
48                set binaries {altair altairz80 eclipse gri h316 hp2100
49                              i1401 i1620 i7094 ibm1130 id16 id32 lgp
50                              nova pdp1 pdp10 pdp11 pdp15 pdp4 pdp7
51                              pdp8 pdp9 s3 sds vax vax780 }
52                foreach binary $binaries {
53                        system "install -c -m 755 ${worksrcpath}/BIN/${binary} ${destroot}${prefix}/bin/simh-${binary}"
54                }
55
56                xinstall -d -m 755 ${destroot}${prefix}/share/simh/VAX
57                xinstall -c -m 644 ${worksrcpath}/VAX/ka655x.bin ${destroot}${prefix}/share/simh/VAX
58}
59
Note: See TracBrowser for help on using the repository browser.