Ignore:
Timestamp:
Sep 18, 2009, 4:39:56 PM (11 years ago)
Author:
ryandesign@…
Message:

minivmac-devel: write the configured source code to a big blank disk image instead of to the source disk image which has limited space. This became possible in version 3.1.1.

Location:
users/ryandesign/minivmac-devel
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • users/ryandesign/minivmac-devel/Portfile

    r57902 r57904  
    3434set my_src_distfile                         ${my_src}.zip
    3535set my_bootstrap_distfile                   ${my_name}-3.1.2-umch.bin.tgz
     36set my_blanks                               blanks
     37set my_blanks_distfile                      ${my_blanks}-0.2.0.zip
    3638set my_clipin                               clipin-1.1.0
    3739set my_clipin_distfile                      ${my_clipin}.zip
     
    4648    ${my_icons_distfile}:minivmac \
    4749    ${my_clipin_distfile}:minivmac \
     50    ${my_blanks_distfile}:minivmac \
    4851    ${my_system_disk_container_distfile}:apple
    4952
     
    5154    ${my_src_distfile} \
    5255    ${my_icons_distfile} \
     56    ${my_blanks_distfile} \
    5357    ${my_clipin_distfile}
    5458
     
    7074        sha1    725f622ad6681c77e7f9f4a64d05ac1d6a103beb \
    7175        rmd160  5699b56c8db62b2568c8de88b6d419180b1fb73d \
     76    ${my_blanks_distfile} \
     77        md5     b16321d0d78048d5ec9b635f4f86b19c \
     78        sha1    9b8d7e77bd05633709907f8806d976279d7a20b7 \
     79        rmd160  a0784c17c5a5ca2e159762fb836c1c800762b213 \
    7280    ${my_system_disk_container_distfile} \
    7381        md5     8a4776350b15b5a516cdf7dd18e27290 \
     
    7785depends_extract \
    7886    port:macutil \
     87    port:bsdiff \
    7988    bin:expect:expect
    8089
     
    129138    my_system "${worksrcpath}/demacbinary.sh ${distpath}/${my_system_disk_container_distfile} ${worksrcpath}"
    130139   
    131     # Copy the Disk Tools image from the container image.
     140    # Copy the Disk Tools image from the container image. The binary patchfile applied with bspatch
     141    # places an alias of the output disk at System Folder:Preferences:Gryphel:Build:output.
    132142    set my_system_disk_container_mount [my_attach_disk_image ${worksrcpath}/${my_system_disk_container}]
    133     file copy "${my_system_disk_container_mount}/Disk Tools.image" "${worksrcpath}/Disk Tools.dsk"
     143    my_system "bspatch '${my_system_disk_container_mount}/Disk Tools.image' '${worksrcpath}/Disk Tools.dsk' '${filespath}/Disk Tools.dsk.bsdiff'"
    134144    my_detach_disk_image ${my_system_disk_container_mount}
    135145   
    136     # Use the .img extension for the source disk image so that we can mount it on Mac OS X later.
    137     file rename ${worksrcpath}/${my_src}/${my_src}.dsk ${worksrcpath}/${my_src}/${my_src}.img
    138    
    139     # Unrestrict the permissions on the source disk image so the Build program
     146    # Get a large empty disk image to store the output.
     147    my_system "unzip -q ${worksrcpath}/${my_blanks}/hfs24M.zip -d ${worksrcpath}"
     148   
     149    # Use the .img extension for the output disk image so that we can mount it on Mac OS X later.
     150    file rename ${worksrcpath}/hfs24M.DSK ${worksrcpath}/output.img
     151   
     152    # Unrestrict the permissions on the output disk image so the Build program
    140153    # can write its output to it.
    141     file attributes ${worksrcpath}/${my_src}/${my_src}.img -permissions 0777
     154    file attributes ${worksrcpath}/output.img -permissions 0777
    142155   
    143156    # Extract the bootstrap version of Mini vMac.
     
    154167    # names so Mini vMac will find them and automatically mount them.
    155168    ln -s "${worksrcpath}/Disk Tools.dsk" "${my_mnvm_dat}/disk1.dsk"
    156     ln -s ${worksrcpath}/${my_src}/${my_src}.img "${my_mnvm_dat}/disk2.dsk"
     169    ln -s ${worksrcpath}/${my_src}/${my_src}.dsk "${my_mnvm_dat}/disk2.dsk"
    157170    ln -s ${worksrcpath}/${my_clipin}/${my_clipin}.dsk "${my_mnvm_dat}/disk3.dsk"
     171    ln -s ${worksrcpath}/output.img "${my_mnvm_dat}/disk4.dsk"
    158172}
    159173
     
    181195post-configure {
    182196    set my_variation_dirs ""
    183     set my_src_disk_mount [my_attach_disk_image ${worksrcpath}/${my_src}/${my_src}.img]
    184     foreach my_variation_dir [glob -nocomplain -type d -tails -directory ${my_src_disk_mount}/output *] {
     197    set my_output_disk_mount [my_attach_disk_image ${worksrcpath}/output.img]
     198    foreach my_variation_dir [glob -nocomplain -type d -tails -directory ${my_output_disk_mount} *] {
    185199        set my_variation_dirs "${my_variation_dirs} ${my_variation_dir}"
    186200       
    187201        # Get the configured source code.
    188         file copy ${my_src_disk_mount}/output/${my_variation_dir} ${build.dir}
     202        file copy ${my_output_disk_mount}/${my_variation_dir} ${build.dir}
    189203       
    190204        # Use the right compiler.
     
    195209        reinplace -E {s|-isysroot /Developer/SDKs/[^ ]+||g} ${build.dir}/${my_variation_dir}/Makefile
    196210    }
    197     my_detach_disk_image ${my_src_disk_mount}
     211    my_detach_disk_image ${my_output_disk_mount}
    198212    reinplace "s|@SUBDIRS@|${my_variation_dirs}|" ${build.dir}/Makefile
    199213}
  • users/ryandesign/minivmac-devel/files/configure.applescript

    r57861 r57904  
    4444        my menu_file_quit() -- quit
    4545        my menu_file_close() -- close Finder window
    46         my menu_file_put_away() -- eject the minivmac disk
     46       
     47        my key_code(32) -- "U" -- select the untitled output disk
     48        my menu_file_put_away() -- eject the output disk
    4749       
    4850        activate application "Mini vMac"
Note: See TracChangeset for help on using the changeset viewer.