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

Last change on this file since 14303 was 14303, checked in by gwright, 15 years ago

Put the vax microcode files in ${prefix}/share/simh/VAX.
Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1# $Id: Portfile,v 1.6 2005/09/28 17:09:40 gwright Exp $
2
3PortSystem 1.0
4
5name            simh
6version         v35-0
7revision        1
8categories      emulators
9platforms       darwin
10maintainers     darwinports@opendarwin.org
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/
24checksums       md5 2778b3ecbde57edd85e23bed723b58ff
25use_zip         yes
26distname        ${name}${version}
27worksrcdir      .
28configure       {}
29
30pre-build {
31                file mkdir ${worksrcpath}/BIN
32}
33
34variant network {
35                depends_lib     port:libpcap
36                build.target    "USE_NETWORK=1 all"
37
38                post-extract    {
39                                reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/makefile
40                }
41}
42
43destroot {
44                set binaries [ exec ls ${worksrcpath}/BIN ]
45                foreach binary $binaries {
46                        system "install -c -m 755 ${worksrcpath}/BIN/${binary} ${destroot}${prefix}/bin/simh-${binary}"
47
48                xinstall -d -m 755 ${destroot}${prefix}/share/simh/VAX
49                xinstall -c -m 644 ${worksrcpath}/VAX/ka655.bin  ${destroot}${prefix}/share/simh/VAX
50                xinstall -c -m 644 ${worksrcpath}/VAX/ka655x.bin ${destroot}${prefix}/share/simh/VAX
51                }
52}
53
Note: See TracBrowser for help on using the repository browser.