Ignore:
Timestamp:
Dec 13, 2009, 1:03:51 PM (10 years ago)
Author:
ryandesign@…
Message:

minivmac: update to 3.1.3, making this port the same as minivmac-devel was at r59049

Location:
trunk/dports/emulators/minivmac
Files:
2 edited
1 copied

Legend:

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

    r60316 r61503  
    66conflicts               minivmac-devel
    77set my_name             minivmac
    8 version                 3.0.4
    9 revision                3
     8version                 3.1.3
    109categories              emulators aqua
    1110maintainers             ryandesign
     
    3635set my_src_distfile                         ${my_src}.zip
    3736set my_bootstrap_distfile                   ${my_name}-bootstrap-3.1.2_1.zip
     37set my_blanks                               blanks
     38set my_blanks_distfile                      ${my_blanks}-0.2.0.zip
    3839set my_clipin                               clipin-1.1.0
    3940set my_clipin_distfile                      ${my_clipin}.zip
     
    4849    ${my_icons_distfile}:minivmac \
    4950    ${my_clipin_distfile}:minivmac \
     51    ${my_blanks_distfile}:minivmac \
    5052    ${my_system_disk_container_distfile}:apple
    5153
     
    5456    ${my_bootstrap_distfile} \
    5557    ${my_icons_distfile} \
     58    ${my_blanks_distfile} \
    5659    ${my_clipin_distfile}
    5760
    5861checksums \
    5962    ${my_src_distfile} \
    60         md5     ab308459e98bd5103ad8bbb7dd158eb6 \
    61         sha1    ff99aa72da0868a5306631f0d06ae190cbd2a03a \
    62         rmd160  b8f1f5269d21835ff3e9e428da12a7b6c224e60e \
     63        md5     5243ae167cc00920e03b4abca2b40af5 \
     64        sha1    b9967ac258baf1a15785e884c306bf0d42097d45 \
     65        rmd160  2af69ebf5420f8f8d0baece03664dc7326e13e38 \
    6366    ${my_bootstrap_distfile} \
    6467        md5     65fa9b7fb19a24dc6c9e711387c1bc30 \
     
    7376        sha1    725f622ad6681c77e7f9f4a64d05ac1d6a103beb \
    7477        rmd160  5699b56c8db62b2568c8de88b6d419180b1fb73d \
     78    ${my_blanks_distfile} \
     79        md5     b16321d0d78048d5ec9b635f4f86b19c \
     80        sha1    9b8d7e77bd05633709907f8806d976279d7a20b7 \
     81        rmd160  a0784c17c5a5ca2e159762fb836c1c800762b213 \
    7582    ${my_system_disk_container_distfile} \
    7683        md5     8a4776350b15b5a516cdf7dd18e27290 \
     
    8087depends_extract \
    8188    port:macutil \
     89    port:bsdiff \
    8290    bin:expect:expect
    8391
     
    8694set my_bootstrap_app    "Mini vMac Bootstrap.app"
    8795set my_rom_file         vMac.ROM
    88 set my_base_options     "-maintainer MacPorts -homepage http://www.macports.org/ -cl -eol unx -nex -im 1"
     96set my_base_options     "-maintainer MacPorts -homepage http://www.macports.org/ -cl -eol unx -nex"
    8997set my_archs            {}
    9098
    9199options my_variations
    92 default my_variations   {}
    93 
    94 # The universal variant is disabled until MacPorts 1.8.2 is released
    95 # and this port is upgraded to version 3.1.x final.
     100my_variations           {128K}      {-m 128K} \
     101                        {512K}      {-m 128K -mem 512K} \
     102                        {512Ke}     {-m 512Ke} \
     103                        {Plus}      {-m Plus -im 1} \
     104                        {SE}        {-m SE} \
     105                        {SE FDHD}   {-m SEFDHD} \
     106                        {Classic}   {-m Classic}
     107
     108variant unsupported description {Also build unfinished Macintosh II and IIx emulators} {
     109    my_variations-append \
     110                        {II}        {-m II -mem 8M -hres 800 -vres 600 -depth 3} \
     111                        {IIx}       {-m IIx -mem 8M -hres 800 -vres 600 -depth 3}
     112}
     113
     114# The universal variant is disabled until MacPorts 1.8.2 is released.
    96115if {0} {
    97116# To build the bootstrap, use "sudo port install bootstrap=yes".
     
    153172    my_system "sh ${filespath}/demacbinary.sh ${distpath}/${my_system_disk_container_distfile} ${worksrcpath}"
    154173   
    155     # Copy the Disk Tools image from the container image.
     174    # Copy the Disk Tools image from the container image. The binary patchfile applied with bspatch
     175    # places an alias of the output disk at System Folder:Preferences:Gryphel:Build:output.
    156176    set my_system_disk_container_mount [my_attach_disk_image ${worksrcpath}/${my_system_disk_container}]
    157     file copy "${my_system_disk_container_mount}/Disk Tools.image" "${worksrcpath}/Disk Tools.dsk"
     177    my_system "bspatch '${my_system_disk_container_mount}/Disk Tools.image' '${worksrcpath}/Disk Tools.dsk' '${filespath}/Disk Tools.dsk.bsdiff'"
    158178    my_detach_disk_image ${my_system_disk_container_mount}
     179   
     180    # Get a large empty disk image to store the output.
     181    my_system "unzip -q ${worksrcpath}/${my_blanks}/hfs24M.zip -d ${worksrcpath}"
    159182   
    160183    # Make the data directory, where Mini vMac looks for the files it needs.
     
    168191    # names so Mini vMac will find them and automatically mount them.
    169192    ln -s "${worksrcpath}/Disk Tools.dsk" "${my_mnvm_dat}/disk1.dsk"
    170     ln -s ${worksrcpath}/${my_src}/${my_src}.img "${my_mnvm_dat}/disk2.dsk"
    171     ln -s ${worksrcpath}/${my_clipin}/${my_clipin}.dsk "${my_mnvm_dat}/disk3.dsk"
     193    ln -s ${worksrcpath}/output.img "${my_mnvm_dat}/disk2.dsk"
     194    ln -s ${worksrcpath}/${my_src}/${my_src}.dsk "${my_mnvm_dat}/disk3.dsk"
     195    ln -s ${worksrcpath}/${my_clipin}/${my_clipin}.dsk "${my_mnvm_dat}/disk4.dsk"
    172196}
    173197
     
    177201    reinplace "s|@BOOTSTRAP_APP@|${my_bootstrap_app}|g" ${worksrcpath}/configure.applescript
    178202   
    179     # Copy the source disk image to store the output.
     203    # Copy the large blank disk image to store the output.
    180204    # Use the .img extension so that we can mount it on Mac OS X later.
    181     copy -force ${worksrcpath}/${my_src}/${my_src}.dsk ${worksrcpath}/${my_src}/${my_src}.img
    182    
    183     # Unrestrict the permissions on the source disk image so the Build program
     205    copy -force ${worksrcpath}/hfs24M.DSK ${worksrcpath}/output.img
     206   
     207    # Unrestrict the permissions on the output disk image so the Build program
    184208    # can write its output to it.
    185     file attributes ${worksrcpath}/${my_src}/${my_src}.img -permissions 0777
     209    file attributes ${worksrcpath}/output.img -permissions 0777
    186210   
    187211    # Build up the combined configure args for all variations.
     
    214238    file mkdir ${build.dir}
    215239    set my_variation_dirs {}
    216     set my_src_disk_mount [my_attach_disk_image ${worksrcpath}/${my_src}/${my_src}.img]
     240    set my_output_disk_mount [my_attach_disk_image ${worksrcpath}/output.img]
    217241    foreach my_arch ${my_archs} {
    218242        file mkdir ${build.dir}/${my_arch}
    219243        set my_target [my_arch_to_target ${my_arch}]
    220244        foreach {my_machine unused} ${my_variations} {
    221             set my_src_dir ${my_src_disk_mount}/output/${version}_${revision}-[strsed [string tolower ${my_machine}] {g/[^a-z0-9_-]//}]-${my_target}
     245            set my_src_dir ${my_output_disk_mount}/${version}_${revision}-[strsed [string tolower ${my_machine}] {g/[^a-z0-9_-]//}]-${my_target}
    222246            if {[file isdirectory ${my_src_dir}]} {
    223247                set my_variation_dir ${my_arch}/${my_machine}
     
    236260        }
    237261    }
    238     my_detach_disk_image ${my_src_disk_mount}
     262    my_detach_disk_image ${my_output_disk_mount}
    239263   
    240264    # Set up the global Makefile.
     
    305329}
    306330
    307 if { ![variant_isset mac128k] && ![variant_isset mac512k] && ![variant_isset mac512ke] && ![variant_isset macse] } {
    308     default_variants +macplus
    309 }
    310 
    311 variant mac128k conflicts mac512k mac512ke macplus macse description {Emulate a Macintosh with 128K RAM and 2 drives} {
    312     my_variations-append {128K} {-m 128K}
    313 }
    314 
    315 variant mac512k conflicts mac128k mac512ke macplus macse description {Emulate a Macintosh 512K with 512K RAM and 2 drives} {
    316     my_variations-append {512K} {-m 512K}
    317 }
    318 
    319 variant mac512ke conflicts mac128k mac512k macplus macse description {Emulate a Macintosh 512Ke with 512K RAM and 6 drives} {
    320     my_variations-append {512Ke} {-m 512Ke}
    321 }
    322 
    323 variant macplus conflicts mac128k mac512k mac512ke macse description {Emulate a Macintosh Plus with 4 MB RAM and 6 drives} {
    324     my_variations-append {Plus} {-m Plus}
    325 }
    326 
    327 variant macse conflicts mac128k mac512k mac512ke macplus description {Emulate a Macintosh SE with 4 MB RAM and 6 drives} {
    328     my_variations-append {SE} {-m SE}
    329 }
    330 
    331331# Converts normal arch names into Mini vMac target names.
    332332proc my_arch_to_target {arch} {
  • trunk/dports/emulators/minivmac/files/configure.applescript.in

    r58974 r61503  
    1717        set configuration_delay to 1400 * number_of_variations / cpu_mhz
    1818       
    19         delay 3 -- wait 1 second for each disk image Mini vMac needs to mount
     19        delay 4 -- wait 1 second for each disk image Mini vMac needs to mount
    2020       
    2121        my key_code(22) -- "6" -- select the 6-ClipIn program
     
    3030        my menu_file_quit() -- quit
    3131        my menu_file_close() -- close Finder window
    32         my menu_file_put_away() -- eject the minivmac disk
     32       
     33        my key_code(32) -- "U" -- select the untitled output disk
     34        my menu_file_put_away() -- eject the output disk
    3335       
    3436        activate application "@BOOTSTRAP_APP@"
Note: See TracChangeset for help on using the changeset viewer.