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

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

Version bump to v38-0.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 37841 2008-06-25 18:35:41Z gwright@macports.org $
2
3PortSystem 1.0
4
5name            simh
6version         v38-0
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     d4bf6b7708e1f429e1e9b3c9e3e93b24                \
25                sha1    e1afbebede7dc4b2e0f7b13fca3ee6aa8d34f9c1        \
26                rmd160  f1986d45f9b17a905957d1dca4eaa70098a7cae6
27
28patchfiles      patch-vax780_defs.h.diff        \
29                patch-vaxmod_defs.h.diff        \
30                patch-vax_cpu.c.diff            \
31                patch-sim_defs.h.diff
32
33use_zip         yes
34distname        ${name}${version}
35worksrcdir      .
36configure       {}
37
38pre-build       { file mkdir ${worksrcpath}/BIN }
39
40depends_lib     port:libpcap
41build.target    "USE_NETWORK=1 all"
42
43build           {
44#               system "export OSTYPE"
45                system "cd ${worksrcpath} && OSTYPE=darwin make USE_NETWORK=1 all"
46}
47
48post-extract    {
49                reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/makefile
50}
51
52destroot {
53                set binaries {altair altairz80 eclipse gri h316 hp2100
54                              i1401 i1620 i7094 ibm1130 id16 id32 lgp
55                              nova pdp1 pdp10 pdp11 pdp15 pdp4 pdp7
56                              pdp8 pdp9 s3 sds vax vax780 }
57                foreach binary $binaries {
58                        system "install -c -m 755 ${worksrcpath}/BIN/${binary} ${destroot}${prefix}/bin/simh-${binary}"
59                }
60
61                xinstall -d -m 755 ${destroot}${prefix}/share/simh/VAX
62                xinstall -c -m 644 ${worksrcpath}/VAX/ka655x.bin ${destroot}${prefix}/share/simh/VAX
63}
64
Note: See TracBrowser for help on using the repository browser.