source: trunk/dports/emulators/minivmac/Portfile @ 51530

Last change on this file since 51530 was 51530, checked in by ryandesign@…, 11 years ago

minivmac portfiles: whitespace changes only (tabs to spaces)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# $Id: Portfile 51530 2009-05-27 15:48:31Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    minivmac
6version                 2.8.2
7revision                2
8categories              emulators aqua
9maintainers             ryandesign
10homepage                http://minivmac.sourceforge.net/
11master_sites            sourceforge
12use_configure           no
13worksrcdir              projects/bgcmachs
14build.target
15platforms               darwin
16universal_variant       no
17use_parallel_build      yes
18
19description \
20    a Mac 128K, Mac 512K, Mac 512KE, Mac Plus and Mac SE emulator
21
22long_description \
23    Mini vMac is a Macintosh emulator. It emulates the earliest Macs, \
24    from the original Mac 128K (built 1984-85) to the Mac SE (1987-1990). \
25    The default is to emulate a Mac Plus (1986-1990)\; this is also \
26    the best-tested and therefore recommended emulation.
27
28distfiles \
29    ${distname}.prj.tgz \
30    ${distname}.src.tgz
31
32checksums \
33    ${distname}.prj.tgz \
34        md5     cfd3c6b60080d2184d6895b84c616fbf \
35        sha1    8aa54b5708e280d1ed0c1f68aca8a38965cad4e2 \
36        rmd160  d0e8d7734109b12caaf909efea231fe2a3a55979 \
37    ${distname}.src.tgz \
38        md5     ff6e67f654f09098ffbb8f26a5a7ae20 \
39        sha1    6cdc4b514f3b45869a9fd2c5ee528499e772ad5e \
40        rmd160  dc7a827fc1821014b2ac0f9b5cd025e1133d83ef
41
42set romfile             vMac.ROM
43set romfile_model       "Macintosh Plus or 512Ke"
44
45post-extract {
46    reinplace "s|maintained by unknown|maintained by MacPorts|" \
47        ${worksrcpath}/config/Info.plist
48    reinplace "s|#define kMaintainerName \"unknown\"|#define kMaintainerName \"MacPorts\"|" \
49        ${worksrcpath}/config/CNFGGLOB.h
50}
51
52destroot {
53    xinstall -m 755 -d ${destroot}${applications_dir}
54    file copy ${worksrcpath}/minivmac.app \
55        ${destroot}${applications_dir}/Mini\ vMac.app
56}
57
58post-install {
59    if { ! [file exists ${applications_dir}/${romfile}] } {
60        ui_msg "**************************************************************"
61        ui_msg "Mini vMac requires a ROM file from the type of machine you're"
62        ui_msg "emulating in order to work. The ROM file is not included with"
63        ui_msg "this package because it is copyrighted Apple software."
64        ui_msg "Download the CopyRoms program from the Mini vMac web site"
65        ui_msg "(${homepage} > More > Extras)"
66        ui_msg "and transfer it to a real physical ${romfile_model}"
67        ui_msg "that you own. Run the CopyRoms program there, then transfer"
68        ui_msg "the ROM file back to this Mac, name it ${romfile},"
69        ui_msg "and put it in ${applications_dir}."
70        ui_msg "**************************************************************"
71    }
72}
73
74if { ![variant_isset mac128k] && ![variant_isset mac512k] && ![variant_isset mac512ke] && ![variant_isset macse] } {
75    default_variants +macplus
76}
77
78variant mac128k conflicts mac512k mac512ke macplus macse description {Emulate a Macintosh with 128K RAM and 2 drives} {
79    patchfiles-append patch-CNFGGLOB.h-mac128k.diff
80    set romfile Mac128K.ROM
81    set romfile_model "Macintosh 128K or 512K"
82}
83
84variant mac512k conflicts mac128k mac512ke macplus macse description {Emulate a Macintosh 512K with 512K RAM and 2 drives} {
85    patchfiles-append patch-CNFGGLOB.h-mac512k.diff
86    set romfile Mac128K.ROM
87    set romfile_model "Macintosh 128K or 512K"
88}
89
90variant mac512ke conflicts mac128k mac512k macplus macse description {Emulate a Macintosh 512Ke with 512K RAM and 6 drives} {
91    patchfiles-append patch-CNFGGLOB.h-mac512ke.diff
92}
93
94variant macplus conflicts mac128k mac512k mac512ke macse description {Emulate a Macintosh Plus with 4 MB RAM and 6 drives (default)} {
95    # Mac Plus emulation is the default so we don't need to do anything here
96}
97
98variant macse conflicts mac128k mac512k mac512ke macplus description {Emulate a Macintosh SE with 4 MB RAM and 6 drives} {
99    patchfiles-append patch-CNFGGLOB.h-macse.diff
100    set romfile MacSE.ROM
101    set romfile_model "Macintosh SE"
102}
103
104livecheck.check         regex
105livecheck.url           ${homepage}download.html
106livecheck.regex         ${name}-(\[0-9.\]+)\\.src
Note: See TracBrowser for help on using the repository browser.