Ignore:
Timestamp:
Oct 8, 2009, 12:28:43 AM (11 years ago)
Author:
ryandesign@…
Message:

minivmac, minivmac-devel: Bootstrap using a Mini vMac built with the +bootstrap variant instead of the official universal binary. Ours is built with sound turned off, which is less annoying, and fixes some timing issues, because on laptops the sound hardware turns itself off when inactive, and turning it back on takes time. Ours is also built to run at full speed and in the background, fixing more timing issues and letting us remove the configure script bits which handled setting the speed. And since it's packaged as a zip, it can now be automatically extracted along with the other zip files.

File:
1 edited

Legend:

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

    r58969 r58974  
    2929master_sites \
    3030    sourceforge:${my_name}:minivmac \
     31    macports:${my_name}:macports \
    3132    http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English-North_American/Macintosh/System/Older_System/System_7.0.x/:apple
    3233
     
    3435set my_src                                  ${distname}.src
    3536set my_src_distfile                         ${my_src}.zip
    36 set my_bootstrap_distfile                   ${my_name}-3.1.2-umch.bin.tgz
     37set my_bootstrap_distfile                   ${my_name}-bootstrap-3.1.2_1.zip
    3738set my_blanks                               blanks
    3839set my_blanks_distfile                      ${my_blanks}-0.2.0.zip
     
    4647distfiles \
    4748    ${my_src_distfile}:minivmac \
    48     ${my_bootstrap_distfile}:minivmac \
     49    ${my_bootstrap_distfile}:macports \
    4950    ${my_icons_distfile}:minivmac \
    5051    ${my_clipin_distfile}:minivmac \
     
    5455extract.only \
    5556    ${my_src_distfile} \
     57    ${my_bootstrap_distfile} \
    5658    ${my_icons_distfile} \
    5759    ${my_blanks_distfile} \
     
    6466        rmd160  186d2672bf3d67f9bf61b0960a157fa36a616f4c \
    6567    ${my_bootstrap_distfile} \
    66         md5     53239cda5f1827fcc00d9254ee1ee9e0 \
    67         sha1    d6c16c541d72241cabafcbb94eec7c198e8b1670 \
    68         rmd160  f3925e194c59f704f6fac391609ccc72dd12c718 \
     68        md5     65fa9b7fb19a24dc6c9e711387c1bc30 \
     69        sha1    4ad44559e75894d45e91ae62cc7ddb420062f968 \
     70        rmd160  58884cac487a537b5d00fc6093fdfecb6ccc5a2f \
    6971    ${my_icons_distfile} \
    7072        md5     2af006506de7549be14f94317918d59a \
     
    9193set my_app_dir          "${applications_dir}/Mini vMac"
    9294set my_rom_dir          "~/Library/Preferences/Gryphel/mnvm_rom"
    93 set my_bootstrap_app    "Mini vMac.app"
     95set my_bootstrap_app    "Mini vMac Bootstrap.app"
    9496set my_rom_file         vMac.ROM
    9597set my_base_options     "-maintainer MacPorts -homepage http://www.macports.org/ -cl -eol unx -nex"
     
    176178    my_system "unzip -q ${worksrcpath}/${my_blanks}/hfs24M.zip -d ${worksrcpath}"
    177179   
    178     # Extract the bootstrap version of Mini vMac.
    179     my_system "tar -x -z -C ${worksrcpath} -f ${distpath}/${my_bootstrap_distfile}"
    180    
    181180    # Make the data directory, where Mini vMac looks for the files it needs.
    182181    set my_mnvm_dat "${worksrcpath}/${my_bootstrap_app}/Contents/mnvm_dat"
     
    195194
    196195pre-configure {
     196    # Set the name of the bootstrap app in the configure script.
     197    xinstall -m 755 ${filespath}/configure.applescript.in ${worksrcpath}/configure.applescript
     198    reinplace "s|@BOOTSTRAP_APP@|${my_bootstrap_app}|g" ${worksrcpath}/configure.applescript
     199   
    197200    # Copy the large blank disk image to store the output.
    198201    # Use the .img extension so that we can mount it on Mac OS X later.
     
    220223    }
    221224   
    222     # Launch Mini vMac so the configure script can talk to it.
     225    # Launch the bootstrap Mini vMac so the configure script can talk to it.
    223226    my_system "open '${worksrcpath}/${my_bootstrap_app}'"
    224227}
    225228
    226229configure.cmd           osascript
    227 configure.pre_args      ${filespath}/configure.applescript
     230configure.pre_args      ./configure.applescript
    228231
    229232build.dir               ${workpath}/variations
Note: See TracChangeset for help on using the changeset viewer.