Ignore:
Timestamp:
Aug 22, 2007, 10:03:58 AM (13 years ago)
Author:
ryandesign@…
Message:

minivmac: now print instructions for getting and installing the ROM file if the user doesn't have one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/emulators/minivmac/Portfile

    r27317 r28141  
    2323        from the original Mac 128K (built 1984-85) to the Mac SE (1987-1990). \
    2424        The default is to emulate a Mac Plus (1986-1990)\; this is also \
    25         the best-tested and therefore recommended emulation. \
    26         To use Mini vMac, you need a ROM file from the type of machine you're \
    27         emulating. Mac ROMs are copyrighted by Apple, so you must extract the \
    28         ROM from a real physical Mac that you own. Use the CopyROM program for \
    29         this, which you can download from the Mini vMac web site (More > Extras).
     25        the best-tested and therefore recommended emulation.
    3026
    3127distfiles \
     
    4339                rmd160 dc7a827fc1821014b2ac0f9b5cd025e1133d83ef
    4440
     41set appdir /Applications/MacPorts
     42set romfile vMac.ROM
     43set romfile_model "Macintosh Plus or 512KE"
     44
    4545post-extract {
    4646        reinplace "s|maintained by unknown|maintained by MacPorts|" \
     
    5151
    5252destroot {
    53         xinstall -m 755 -d ${destroot}/Applications/MacPorts
     53        xinstall -m 755 -d ${destroot}${appdir}
    5454        file copy ${worksrcpath}/minivmac.app \
    55                 ${destroot}/Applications/MacPorts/Mini\ vMac.app
     55                ${destroot}${appdir}/Mini\ vMac.app
     56}
     57
     58post-install {
     59        if { ! [file exists ${appdir}/${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 ${appdir}."
     70                ui_msg "**************************************************************"
     71        }
    5672}
    5773
     
    6278variant mac128k conflicts mac512k mac512ke macplus macse description {Emulate a Macintosh with 128K RAM and 2 drives} {
    6379        patchfiles-append patch-CNFGGLOB.h-mac128k.diff
     80        set romfile Mac128K.ROM
     81        set romfile_model "Macintosh 128K or 512K"
    6482}
    6583
    6684variant mac512k conflicts mac128k mac512ke macplus macse description {Emulate a Macintosh 512K with 512K RAM and 2 drives} {
    6785        patchfiles-append patch-CNFGGLOB.h-mac512k.diff
     86        set romfile Mac128K.ROM
     87        set romfile_model "Macintosh 128K or 512K"
    6888}
    6989
     
    7898variant macse conflicts mac128k mac512k mac512ke macplus description {Emulate a Macintosh SE with 4 MB RAM and 6 drives} {
    7999        patchfiles-append patch-CNFGGLOB.h-macse.diff
     100        set romfile MacSE.ROM
     101        set romfile_model "Macintosh SE"
    80102}
    81103
Note: See TracChangeset for help on using the changeset viewer.