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.

Location:
trunk/dports/emulators
Files:
2 edited
2 moved

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
  • trunk/dports/emulators/minivmac-devel/files/configure.applescript.in

    r58957 r58974  
    1717        set configuration_delay to 1400 * number_of_variations / cpu_mhz
    1818       
    19         delay 2 -- wait for Mini vMac to start launching
    20        
    21         activate application "Mini vMac"
    22         tell application "System Events"
    23                 tell process "Mini vMac"
    24                         key down control -- open Mini vMac control menu
    25                         my key_code(1) -- "S" -- speed submenu
    26                         my key_code(0) -- "A" -- as fast as possible
    27                         my key_code(1) -- "S" -- speed submenu
    28                         my key_code(11) -- "B" -- run in background too
    29                         key up control -- close Mini vMac control menu
    30                 end tell
    31         end tell
    32        
    33         delay 2 -- wait for system software to finish starting up
     19        delay 4 -- wait 1 second for each disk image Mini vMac needs to mount
    3420       
    3521        my key_code(22) -- "6" -- select the 6-ClipIn program
     
    4834        my menu_file_put_away() -- eject the output disk
    4935       
    50         activate application "Mini vMac"
     36        activate application "@BOOTSTRAP_APP@"
    5137        tell application "System Events"
    5238                tell process "Mini vMac"
     
    7056-- the US English keyboard layout.
    7157on key_code_with_modifiers(key_code, key_modifiers)
    72         activate application "Mini vMac"
     58        activate application "@BOOTSTRAP_APP@"
    7359        tell application "System Events"
    7460                tell process "Mini vMac"
  • trunk/dports/emulators/minivmac/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_clipin                               clipin-1.1.0
    3839set my_clipin_distfile                      ${my_clipin}.zip
     
    4445distfiles \
    4546    ${my_src_distfile}:minivmac \
    46     ${my_bootstrap_distfile}:minivmac \
     47    ${my_bootstrap_distfile}:macports \
    4748    ${my_icons_distfile}:minivmac \
    4849    ${my_clipin_distfile}:minivmac \
     
    5152extract.only \
    5253    ${my_src_distfile} \
     54    ${my_bootstrap_distfile} \
    5355    ${my_icons_distfile} \
    5456    ${my_clipin_distfile}
     
    6062        rmd160  b8f1f5269d21835ff3e9e428da12a7b6c224e60e \
    6163    ${my_bootstrap_distfile} \
    62         md5     53239cda5f1827fcc00d9254ee1ee9e0 \
    63         sha1    d6c16c541d72241cabafcbb94eec7c198e8b1670 \
    64         rmd160  f3925e194c59f704f6fac391609ccc72dd12c718 \
     64        md5     65fa9b7fb19a24dc6c9e711387c1bc30 \
     65        sha1    4ad44559e75894d45e91ae62cc7ddb420062f968 \
     66        rmd160  58884cac487a537b5d00fc6093fdfecb6ccc5a2f \
    6567    ${my_icons_distfile} \
    6668        md5     2af006506de7549be14f94317918d59a \
     
    8284set my_app_dir          "${applications_dir}/Mini vMac"
    8385set my_rom_dir          "~/Library/Preferences/Gryphel/mnvm_rom"
    84 set my_bootstrap_app    "Mini vMac.app"
     86set my_bootstrap_app    "Mini vMac Bootstrap.app"
    8587set my_rom_file         vMac.ROM
    8688set my_base_options     "-maintainer MacPorts -homepage http://www.macports.org/ -cl -eol unx -nex -im 1"
     
    152154    my_detach_disk_image ${my_system_disk_container_mount}
    153155   
    154     # Extract the bootstrap version of Mini vMac.
    155     my_system "tar -x -z -C ${worksrcpath} -f ${distpath}/${my_bootstrap_distfile}"
    156    
    157156    # Make the data directory, where Mini vMac looks for the files it needs.
    158157    set my_mnvm_dat "${worksrcpath}/${my_bootstrap_app}/Contents/mnvm_dat"
     
    170169
    171170pre-configure {
     171    # Set the name of the bootstrap app in the configure script.
     172    xinstall -m 755 ${filespath}/configure.applescript.in ${worksrcpath}/configure.applescript
     173    reinplace "s|@BOOTSTRAP_APP@|${my_bootstrap_app}|g" ${worksrcpath}/configure.applescript
     174   
    172175    # Copy the source disk image to store the output.
    173176    # Use the .img extension so that we can mount it on Mac OS X later.
     
    195198    }
    196199   
    197     # Launch Mini vMac so the configure script can talk to it.
     200    # Launch the bootstrap Mini vMac so the configure script can talk to it.
    198201    my_system "open '${worksrcpath}/${my_bootstrap_app}'"
    199202}
    200203
    201204configure.cmd           osascript
    202 configure.pre_args      ${filespath}/configure.applescript
     205configure.pre_args      ./configure.applescript
    203206
    204207build.dir               ${workpath}/variations
  • trunk/dports/emulators/minivmac/files/configure.applescript.in

    r58957 r58974  
    1717        set configuration_delay to 1400 * number_of_variations / cpu_mhz
    1818       
    19         delay 2 -- wait for Mini vMac to start launching
    20        
    21         activate application "Mini vMac"
    22         tell application "System Events"
    23                 tell process "Mini vMac"
    24                         key down control -- open Mini vMac control menu
    25                         my key_code(1) -- "S" -- speed submenu
    26                         my key_code(0) -- "A" -- as fast as possible
    27                         my key_code(1) -- "S" -- speed submenu
    28                         my key_code(11) -- "B" -- run in background too
    29                         key up control -- close Mini vMac control menu
    30                 end tell
    31         end tell
    32        
    33         delay 2 -- wait for system software to finish starting up
     19        delay 3 -- wait 1 second for each disk image Mini vMac needs to mount
    3420       
    3521        my key_code(22) -- "6" -- select the 6-ClipIn program
     
    4632        my menu_file_put_away() -- eject the minivmac disk
    4733       
    48         activate application "Mini vMac"
     34        activate application "@BOOTSTRAP_APP@"
    4935        tell application "System Events"
    5036                tell process "Mini vMac"
     
    6854-- the US English keyboard layout.
    6955on key_code_with_modifiers(key_code, key_modifiers)
    70         activate application "Mini vMac"
     56        activate application "@BOOTSTRAP_APP@"
    7157        tell application "System Events"
    7258                tell process "Mini vMac"
Note: See TracChangeset for help on using the changeset viewer.