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

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

Miscellaneous cleanups, including fixing a lint warning.

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