source: trunk/dports/emulators/simh/Portfile

Last change on this file was 123356, checked in by mf2k@…, 3 years ago

acl2 cadabra ccl cln cosmoplayer dillo DoCon emacs-w3m GiNaC gtk2hs gtkwave hs-hashed-storage hs-libcabal hs-typenats LiE modglue nestedsums opendx opendx-java40 opendx-samples pcrexx sbcl simh TeXmacs: Ports abandoned by gwright. (#43784)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 123356 2014-08-08 17:33:44Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            simh
6version         v38-1
7revision        2
8categories      emulators
9platforms       darwin
10maintainers     nomaintainer
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}
31extract.mkdir   yes
32
33platform darwin 10 {
34        # ticket #26181
35        patchfiles-append       sim_ether.c.diff
36}
37
38use_configure   no
39
40pre-build       { file mkdir ${worksrcpath}/BIN }
41
42depends_lib     port:libpcap
43build.target    "USE_NETWORK=1 all"
44
45build           {
46#               system "export OSTYPE"
47                system "cd ${worksrcpath} && OSTYPE=darwin make USE_NETWORK=1 all"
48}
49
50post-extract    {
51                reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/makefile
52}
53
54destroot {
55                set binaries {altair altairz80 eclipse gri h316 hp2100
56                              i1401 i1620 i7094 ibm1130 id16 id32 lgp
57                              nova pdp1 pdp10 pdp11 pdp15 pdp4 pdp7
58                              pdp8 pdp9 s3 sds vax vax780 }
59                foreach binary $binaries {
60                        system "install -c -m 755 ${worksrcpath}/BIN/${binary} ${destroot}${prefix}/bin/simh-${binary}"
61                }
62
63                xinstall -d -m 755 ${destroot}${prefix}/share/simh/VAX
64                xinstall -c -m 644 ${worksrcpath}/VAX/ka655x.bin ${destroot}${prefix}/share/simh/VAX
65}
66
Note: See TracBrowser for help on using the repository browser.