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

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

minivmac: use ${applications_dir}; don't hardcode /Applications/MacPorts

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# $Id: Portfile 38772 2008-07-31 04:32:07Z 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
42# Can be removed once MacPorts 1.7.0 is released
43if {![info exists applications_dir]} {
44    set applications_dir /Applications/MacPorts
45}
46
47set romfile vMac.ROM
48set romfile_model "Macintosh Plus or 512Ke"
49
50post-extract {
51        reinplace "s|maintained by unknown|maintained by MacPorts|" \
52                ${worksrcpath}/config/Info.plist
53        reinplace "s|#define kMaintainerName \"unknown\"|#define kMaintainerName \"MacPorts\"|" \
54                ${worksrcpath}/config/CNFGGLOB.h
55}
56
57destroot {
58        xinstall -m 755 -d ${destroot}${applications_dir}
59        file copy ${worksrcpath}/minivmac.app \
60                ${destroot}${applications_dir}/Mini\ vMac.app
61}
62
63post-install {
64        if { ! [file exists ${applications_dir}/${romfile}] } {
65                ui_msg "**************************************************************"
66                ui_msg "Mini vMac requires a ROM file from the type of machine you're"
67                ui_msg "emulating in order to work. The ROM file is not included with"
68                ui_msg "this package because it is copyrighted Apple software."
69                ui_msg "Download the CopyRoms program from the Mini vMac web site"
70                ui_msg "(${homepage} > More > Extras)"
71                ui_msg "and transfer it to a real physical ${romfile_model}"
72                ui_msg "that you own. Run the CopyRoms program there, then transfer"
73                ui_msg "the ROM file back to this Mac, name it ${romfile},"
74                ui_msg "and put it in ${applications_dir}."
75                ui_msg "**************************************************************"
76        }
77}
78
79if { ![variant_isset mac128k] && ![variant_isset mac512k] && ![variant_isset mac512ke] && ![variant_isset macse] } {
80        default_variants +macplus
81}
82
83variant mac128k conflicts mac512k mac512ke macplus macse description {Emulate a Macintosh with 128K RAM and 2 drives} {
84        patchfiles-append patch-CNFGGLOB.h-mac128k.diff
85        set romfile Mac128K.ROM
86        set romfile_model "Macintosh 128K or 512K"
87}
88
89variant mac512k conflicts mac128k mac512ke macplus macse description {Emulate a Macintosh 512K with 512K RAM and 2 drives} {
90        patchfiles-append patch-CNFGGLOB.h-mac512k.diff
91        set romfile Mac128K.ROM
92        set romfile_model "Macintosh 128K or 512K"
93}
94
95variant mac512ke conflicts mac128k mac512k macplus macse description {Emulate a Macintosh 512Ke with 512K RAM and 6 drives} {
96        patchfiles-append patch-CNFGGLOB.h-mac512ke.diff
97}
98
99variant macplus conflicts mac128k mac512k mac512ke macse description {Emulate a Macintosh Plus with 4 MB RAM and 6 drives (default)} {
100        # Mac Plus emulation is the default so we don't need to do anything here
101}
102
103variant macse conflicts mac128k mac512k mac512ke macplus description {Emulate a Macintosh SE with 4 MB RAM and 6 drives} {
104        patchfiles-append patch-CNFGGLOB.h-macse.diff
105        set romfile MacSE.ROM
106        set romfile_model "Macintosh SE"
107}
108
109livecheck.check     regex
110livecheck.url       ${homepage}download.html
111livecheck.regex     ${name}-(\[0-9.\]+)\\.src
Note: See TracBrowser for help on using the repository browser.