[28141] trunk/dports/emulators/minivmac/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Wed Aug 22 03:03:59 PDT 2007
Revision: 28141
http://trac.macosforge.org/projects/macports/changeset/28141
Author: ryandesign at macports.org
Date: 2007-08-22 03:03:58 -0700 (Wed, 22 Aug 2007)
Log Message:
-----------
minivmac: now print instructions for getting and installing the ROM file if the user doesn't have one
Modified Paths:
--------------
trunk/dports/emulators/minivmac/Portfile
Modified: trunk/dports/emulators/minivmac/Portfile
===================================================================
--- trunk/dports/emulators/minivmac/Portfile 2007-08-22 08:49:45 UTC (rev 28140)
+++ trunk/dports/emulators/minivmac/Portfile 2007-08-22 10:03:58 UTC (rev 28141)
@@ -22,11 +22,7 @@
Mini vMac is a Macintosh emulator. It emulates the earliest Macs, \
from the original Mac 128K (built 1984-85) to the Mac SE (1987-1990). \
The default is to emulate a Mac Plus (1986-1990)\; this is also \
- the best-tested and therefore recommended emulation. \
- To use Mini vMac, you need a ROM file from the type of machine you're \
- emulating. Mac ROMs are copyrighted by Apple, so you must extract the \
- ROM from a real physical Mac that you own. Use the CopyROM program for \
- this, which you can download from the Mini vMac web site (More > Extras).
+ the best-tested and therefore recommended emulation.
distfiles \
${distname}.prj.tgz \
@@ -42,6 +38,10 @@
sha1 6cdc4b514f3b45869a9fd2c5ee528499e772ad5e \
rmd160 dc7a827fc1821014b2ac0f9b5cd025e1133d83ef
+set appdir /Applications/MacPorts
+set romfile vMac.ROM
+set romfile_model "Macintosh Plus or 512KE"
+
post-extract {
reinplace "s|maintained by unknown|maintained by MacPorts|" \
${worksrcpath}/config/Info.plist
@@ -50,21 +50,41 @@
}
destroot {
- xinstall -m 755 -d ${destroot}/Applications/MacPorts
+ xinstall -m 755 -d ${destroot}${appdir}
file copy ${worksrcpath}/minivmac.app \
- ${destroot}/Applications/MacPorts/Mini\ vMac.app
+ ${destroot}${appdir}/Mini\ vMac.app
}
+post-install {
+ if { ! [file exists ${appdir}/${romfile}] } {
+ ui_msg "**************************************************************"
+ ui_msg "Mini vMac requires a ROM file from the type of machine you're"
+ ui_msg "emulating in order to work. The ROM file is not included with"
+ ui_msg "this package because it is copyrighted Apple software."
+ ui_msg "Download the CopyRoms program from the Mini vMac web site"
+ ui_msg "(${homepage} > More > Extras)"
+ ui_msg "and transfer it to a real physical ${romfile_model}"
+ ui_msg "that you own. Run the CopyRoms program there, then transfer"
+ ui_msg "the ROM file back to this Mac, name it ${romfile},"
+ ui_msg "and put it in ${appdir}."
+ ui_msg "**************************************************************"
+ }
+}
+
if { ![variant_isset mac128k] && ![variant_isset mac512k] && ![variant_isset mac512ke] && ![variant_isset macse] } {
default_variants +macplus
}
variant mac128k conflicts mac512k mac512ke macplus macse description {Emulate a Macintosh with 128K RAM and 2 drives} {
patchfiles-append patch-CNFGGLOB.h-mac128k.diff
+ set romfile Mac128K.ROM
+ set romfile_model "Macintosh 128K or 512K"
}
variant mac512k conflicts mac128k mac512ke macplus macse description {Emulate a Macintosh 512K with 512K RAM and 2 drives} {
patchfiles-append patch-CNFGGLOB.h-mac512k.diff
+ set romfile Mac128K.ROM
+ set romfile_model "Macintosh 128K or 512K"
}
variant mac512ke conflicts mac128k mac512k macplus macse description {Emulate a Macintosh 512Ke with 512K RAM and 6 drives} {
@@ -77,6 +97,8 @@
variant macse conflicts mac128k mac512k mac512ke macplus description {Emulate a Macintosh SE with 4 MB RAM and 6 drives} {
patchfiles-append patch-CNFGGLOB.h-macse.diff
+ set romfile MacSE.ROM
+ set romfile_model "Macintosh SE"
}
livecheck.check regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070822/693d5222/attachment.html
More information about the macports-changes
mailing list