<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6410c31b87a9ecb924a4f023065057d88ea03086">https://github.com/macports/macports-ports/commit/6410c31b87a9ecb924a4f023065057d88ea03086</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 6410c31 minivmac-devel: Update to 36.00alpha-20180715
</span>6410c31 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 6410c31b87a9ecb924a4f023065057d88ea03086
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Tue Jul 17 16:51:39 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> minivmac-devel: Update to 36.00alpha-20180715
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The configuration system has changed from a 68K Macintosh application
</span><span style='display:block; white-space:pre;color:#404040;'> that must be run within Mini vMac to a C program that can be compiled
</span><span style='display:block; white-space:pre;color:#404040;'> and run on macOS. This lets us throw out all the code for running a
</span><span style='display:block; white-space:pre;color:#404040;'> bootstrap copy of Mini vMac and shuttling data between the build machine
</span><span style='display:block; white-space:pre;color:#404040;'> and the emulator, which makes the build much faster. It also means the
</span><span style='display:block; white-space:pre;color:#404040;'> port can now be built without needing the Macintosh Plus ROM file.
</span>---
emulators/minivmac-devel/Portfile | 306 ++++-----------------
.../files/README-binary-patchfiles.md | 53 ----
emulators/minivmac-devel/files/configuration.patch | 13 +
emulators/minivmac-devel/files/configure | 5 +
emulators/minivmac-devel/files/echo-n.patch | 30 ++
emulators/minivmac-devel/files/exit.patch | 13 +
emulators/minivmac-devel/files/newline.patch | 13 +
.../files/patch-Disk Tools.image.bsdiff | Bin 1174 -> 0 bytes
.../files/patch-autquit7-1.3.1.dsk.bsdiff | Bin 1546 -> 0 bytes
.../minivmac-devel/files/readalias.applescript | 12 -
10 files changed, 120 insertions(+), 325 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/Portfile b/emulators/minivmac-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 282c6c4..3441d37 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/emulators/minivmac-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/minivmac-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,7 +10,7 @@ name ${my_name}${my_suffix}
</span> set my_subport [regsub -- {-devel$} ${subport} {}]
conflicts [lsearch -all -inline -not -exact [list ${my_subport} ${my_subport}-devel] ${subport}]
epoch 4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 36.00alpha-20180708
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 36.00alpha-20180715
</span> set branch [join [lrange [split ${version} .] 0 1] .]
set my_version [strsed ${version} {g/^.*-20//}]
categories emulators aqua
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -64,249 +64,110 @@ if {${my_subport} eq ${my_name}} {
</span>
revision 0
supported_archs i386 ppc x86_64
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# distname ${my_name}${my_version}-${branch}
</span> distname ${my_name}${my_version}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- use_zip yes
</span>
master_sites http://www.gryphel.org/d/minivmac/c/:minivmacsource \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- sourceforge:project/minivmac/minivmac-extras/extras6:minivmacextras6 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sourceforge:project/minivmac/minivmac-extras/extras11:minivmacextras11 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- http://www.ryandesign.com/macports/distfiles/minivmac:bootstrap \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English-North_American/Macintosh/System/Older_System/System_7.0.x/:apple
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sourceforge:project/minivmac/minivmac-extras/extras6:minivmacextras6
</span>
set my_src ${distname}.src
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_src_distfile ${my_src}.zip
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_bootstrap_distfile ${my_name}-bootstrap-3.5.8_4.zip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set my_src_distfile ${my_src}.tgz
</span> set my_icons icnsosx-1.0.0
set my_icons_distfile ${my_icons}.zip
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_autoquit autquit7-1.3.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_autoquit_distfile ${my_autoquit}.zip
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_system_disk_container System_7.0.1.smi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_system_disk_container_distfile ${my_system_disk_container}.bin
</span>
distfiles ${my_src_distfile}:minivmacsource \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_bootstrap_distfile}:bootstrap \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_icons_distfile}:minivmacextras6 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_autoquit_distfile}:minivmacextras11 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_system_disk_container_distfile}:apple
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${my_icons_distfile}:minivmacextras6
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- extract.only ${my_src_distfile} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_bootstrap_distfile} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_icons_distfile} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_autoquit_distfile}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extract.only ${my_src_distfile}
</span>
checksums ${my_src_distfile} \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 70df891013add55a5cdb53c2d7052433d49f91ac \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 81249e757029e5c12ab4ccadcecea81c23e3279baa5ebf33461a96e48b461aae \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 689035 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_bootstrap_distfile} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 a15361b4b0d765e55ed84525593639b38e4a71fd \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 ad08da6cfdf616d67664520eb2dd787632c502c43ff6355ac6e3a7fc8d53e811 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 148787 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 49933e4a8e9d41525c4be412c02b80acaa8b6d8a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 3a69ca7dde687dec614ecf5fd6a2abb57739f7a5dd7833760ee234d9930d5f32 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 494640 \
</span> ${my_icons_distfile} \
rmd160 cef6d7d7578464538d0042b0d98379ae7f18fab7 \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 968a0bad51903c9cd3b08476ec5a6572856dc44eedf9ff9b174eb9c59b7b7117 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 60373 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_autoquit_distfile} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 949ce06752fbcfa9a92787497dace45e7299eb41 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 a9aad37cfd2d6dbd4db5e307b8598348ba25aa5504aac968b8d570d5927e576a \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 52341 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_system_disk_container_distfile} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 89fc3780c9c5d575a8da4068dc810c1f56c70211 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 d78e1c52a6f16ba14907cbe816a22a43f8aa8e1a9c4f664d3b7d5d982a9baab2 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 5147648
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_extract port:bsdiff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 968a0bad51903c9cd3b08476ec5a6572856dc44eedf9ff9b174eb9c59b7b7117
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build port:timeout
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_extract-append bin:unzip:unzip
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_skip_archcheck bsdiff \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- timeout
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles configuration.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo-n.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exit.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ newline.patch
</span>
set my_app_dir "${applications_dir}/Mini vMac"
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_rom_dir "~/Library/Preferences/Gryphel/mnvm_rom"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_bootstrap_app "Mini vMac Bootstrap.app"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_rom_file vMac.ROM
</span>
set mnvm_target(i386) imch
set mnvm_target(ppc) mach
set mnvm_target(x86_64) mc64
# Options that are the same for every variation.
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.pre_args -ef 1 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -maintainer MacPorts \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -homepage https://www.macports.org \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -cl \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -eol unx \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -api cco \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.pre_args -api cco \
</span> -sony-sum 1 \
-sony-tag 1
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if [info exists xcodeversion] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set xcodeversion_split [concat [split ${xcodeversion} {.}] {0 0 0}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.pre_args-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -e xcd \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -ev [lindex ${xcodeversion_split} 0][string range [join [lrange ${xcodeversion_split} 1 end] {}] 0 2]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> # Options set by variations.
configure.args
# Options set by variants.
configure.post_args
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # The number of seconds to wait before killing the bootstrap process, in
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # case it gets stuck.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_bootstrap_timeout 30
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pre-extract {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[my_real_rom_file] eq ""} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "****************************************************************"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "To build Mini vMac, you will need a ROM file from a Macintosh"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "Plus or 512Ke. And to run it, you need a ROM file from the type"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "of Mac you want to emulate. ROM files are not included with this"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "package because they are copyrighted Apple software."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "To create a ROM file, download the CopyRoms program from"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "http://www.gryphel.org/c/minivmac/extras/copyroms/index.html"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "and transfer it to a real physical early Macintosh that you own."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "Run the CopyRoms program there, then transfer the ROM file back"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "to this Mac and put it in ${my_rom_dir}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "(which can be an alias or symlink if desired) or"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "${my_app_dir}."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "****************************************************************"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "${my_rom_file} not found"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- worksrcdir configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ worksrcdir ${my_name}
</span> build.dir ${workpath}/build
<span style='display:block; white-space:pre;background:#ffe0e0;'>- extract.mkdir yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set mnvm_data_dir ${worksrcpath}/${my_bootstrap_app}/Contents/mnvm_dat
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set mnvm_output_dir ${mnvm_data_dir}/out
</span>
post-extract {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Decompress the system disk container image.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "Decompressing ${my_system_disk_container_distfile}."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_system_disk_container_decompressed "[file rootname ${my_system_disk_container}].dmg"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath} "hdiutil convert '${distpath}/${my_system_disk_container_distfile}' -format UDRO -o '${my_system_disk_container_decompressed}'"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # The images on the container image. Images we don't need are commented out for future reference.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_images {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {Disk Tools.image} 58368 eb1979132c843560ebab490faeb7520d9a94757ecef3121a21abace8d3ae63ff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# {Fonts.image} 427264 8b06f086a96b75bd23b16ae018bd334696239cb56e65bfa20166ea00d14cdef0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# {Install 1.image} 796160 8c3ea898eeb88b795041108cd8a09bf4ebdf920d7d4763e4419df14713dbd952
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# {Install 2.image} 1165056 0fc558475df55f3aed217d2eceebfa29e4a465a795807cd627b258740a9ec55b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# {Printing.image} 1533952 246cbf69ad1c2e588ee482fddec781135a67fbfe02734bb0f732eb055faa15fa
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# {Tidbits.image} 1902848 3e3600bed1b5c7c595bc176b5eaadcc8c1517032489efc548b9b781c0ee1f062
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Extract the disk images from the system disk container image. `hdiutil` on OS X 10.8 Mountain Lion
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # does not mount this disk image correctly, so extract the files manually using `dd`.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach {my_image_filename my_image_offset my_image_sha256} ${my_images} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "Extracting ${my_image_filename} from ${my_system_disk_container_decompressed}."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath} "dd if='${my_system_disk_container_decompressed}' bs=4 count=368661 skip=${my_image_offset} of='${my_image_filename}'"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${my_image_sha256} ne [sha256 file ${worksrcpath}/${my_image_filename}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "extract failed"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Delete temporary files we no longer need.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- delete ${worksrcpath}/${my_system_disk_container_decompressed}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Symlink the ROM file into the data directory.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln -s [my_real_rom_file] ${mnvm_data_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Use the prettier icon on the bootstrap app.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy -force ${worksrcpath}/${my_icons}/icons/AppIcon.icns ${worksrcpath}/${my_bootstrap_app}/Contents/Resources/ICONAPPO.icns
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${workpath} "unzip -q '${distpath}/${my_icons_distfile}'"
</span> }
post-patch {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # See README-binary-patchfiles.md in the files directory for instructions
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # on recreating these binary patchfiles.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Modify the AutQuit7 disk to have an alias "app" pointing to the MnvM_b36
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # application and an 8192-byte TeachText file called "doc" (containing
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # "@START@", 8180 periods and spaces, and "@END@").
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath}/${my_autoquit} "${prefix}/bin/bspatch '${my_autoquit}.dsk' '${my_autoquit}.dsk.tmp' '${filespath}/patch-${my_autoquit}.dsk.bsdiff'"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- move -force "${worksrcpath}/${my_autoquit}/${my_autoquit}.dsk.tmp" "${worksrcpath}/${my_autoquit}/${my_autoquit}.dsk"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Modify the Disk Tools disk to have an alias of AutQuit7 in the Startup
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Items folder.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath} "${prefix}/bin/bspatch 'Disk Tools.image' 'Disk Tools.image.tmp' '${filespath}/patch-Disk Tools.image.bsdiff'"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- move -force "${worksrcpath}/Disk Tools.image.tmp" "${worksrcpath}/Disk Tools.image"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Tell the build system what the Xcode version is; theoretically
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # this lets it use flags better suited to that Xcode version.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [info exists xcodeversion] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set xcodeversion_split [concat [split ${xcodeversion} {.}] {0 0 0}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set ide_vers [lindex ${xcodeversion_split} 0][string range [join [lrange ${xcodeversion_split} 1 end] {}] 0 2]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set ide_vers 2410
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@IDE_VERS@|${ide_vers}|g" ${worksrcpath}/setup/CONFIGUR.i
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Use prettier icons.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach icon {App Dsk Rom} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move -force ${workpath}/${my_icons}/icons/${icon}Icon.icns \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/src/ICON[string toupper ${icon}]O.icns
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${workpath}/${my_icons}
</span> }
configure {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Build the setup tool.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath}/setup "${configure.cc} ${configure.optflags} tool.c -o ../setup_t"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -W ${filespath} configure ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set my_variation_dirs {}
# Delete remnants from possible previous run.
<span style='display:block; white-space:pre;background:#ffe0e0;'>- delete ${build.dir} ${mnvm_output_dir}/minivmac.err.txt
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Copy the disk images into the data directory with sequentially-numbered
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # names so Mini vMac will find them and automatically mount them.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy -force "${worksrcpath}/Disk Tools.image" ${mnvm_data_dir}/disk1.dsk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy -force ${worksrcpath}/${my_src}/${my_src}.dsk ${mnvm_data_dir}/disk3.dsk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${build.dir}
</span>
# Configure all variations.
foreach my_arch [get_canonical_archs] {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file mkdir ${build.dir}/${my_arch}
</span> foreach {my_machine my_variation_options} ${my_variations} {
set my_variation ${my_version}_${revision}-[strsed [string tolower ${my_machine}] {g/[^a-z0-9_-]//}]-$mnvm_target(${my_arch})
ui_debug "Configuring ${my_variation}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set my_variation_dir ${my_arch}/${my_machine}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mkdir ${build.dir}/${my_variation_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args -t $mnvm_target(${my_arch}) \
-n ${my_variation} \
@ \
{*}${my_variation_options}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set max_configure_args_length 8192
</span> set all_configure_args [concat ${configure.pre_args} ${configure.args} ${configure.post_args}]
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set padded_configure_args [format "%-${max_configure_args_length}s" ${all_configure_args}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[string length ${padded_configure_args}] > ${max_configure_args_length}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "configure args too long"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Write the configure args into the "doc" file on the AutQuit7 disk image.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy -force ${worksrcpath}/${my_autoquit}/${my_autoquit}.dsk ${mnvm_data_dir}/disk2.dsk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -locale C "s|@START@\[ .\]*@END@|${padded_configure_args}|" ${mnvm_data_dir}/disk2.dsk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Launch the bootstrap Mini vMac to run the configuration. When it's done
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # it should automatically quit, but if not, we time out after awhile.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- exec -ignorestderr ${prefix}/bin/timeout ${my_bootstrap_timeout} "${worksrcpath}/${my_bootstrap_app}/Contents/MacOS/minivmac" 2>/dev/null
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Check if a configuration error occurred. This can happen if
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # invalid configuration options were specified.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file exists ${mnvm_output_dir}/minivmac.err.txt]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set fp [open ${mnvm_output_dir}/minivmac.err.txt r]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set error_text [read ${fp}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- close ${fp}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "configure args: ${all_configure_args}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error ${error_text}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_src_tarball ${mnvm_output_dir}/${my_variation}.tar
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file isfile ${my_src_tarball}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_variation_dir ${my_arch}/${my_machine}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend my_variation_dirs [strsed ${my_variation_dir} {g/ /\\\\ /}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Untar the configured source code.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${build.dir} "tar xf '${my_src_tarball}'"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- move ${build.dir}/${my_variation} ${build.dir}/${my_variation_dir}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${my_subport} eq "${my_name}-bootstrap"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Don't require the discrete GPU.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${build.dir}/${my_variation_dir} "patch -p0 < ${filespath}/AutomaticGraphicsSwitching.patch"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Run the configuration program.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${build.dir}/${my_variation_dir} "${worksrcpath}/configure ${all_configure_args}"
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Truncate icon to save space.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- close [open ${build.dir}/${my_variation_dir}/src/ICONAPPO.icns w]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Use prettier icons.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach icon {App Dsk Rom} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy -force ${worksrcpath}/${my_icons}/icons/${icon}Icon.icns \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${build.dir}/${my_variation_dir}/src/ICON[string toupper ${icon}]O.icns
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend my_variation_dirs [strsed ${my_variation_dir} {g/ /\\\\ /}]
</span>
# Use the right compiler.
reinplace "s|gcc|${configure.cc}|g" ${build.dir}/${my_variation_dir}/Makefile
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -324,18 +185,11 @@ if {${my_subport} eq ${my_name}} {
</span>
# Prevent merge error.
if {[variant_exists universal] && [variant_isset universal]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|$mnvm_target(${my_arch})|umch|" ${build.dir}/${my_variation_dir}/src/Info.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|$mnvm_target(${my_arch})|umch|" ${build.dir}/${my_variation_dir}/cfg/Info.plist
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # If no variation directories were produced by configuration, something went
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # horribly wrong.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${my_variation_dirs} eq ""} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "configuration failed!"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> # Set up the global Makefile.
xinstall ${filespath}/Makefile.in ${build.dir}/Makefile
reinplace "s|@SUBDIRS@|[join ${my_variation_dirs}]|" ${build.dir}/Makefile
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -359,7 +213,6 @@ if {${my_subport} eq ${my_name}} {
</span> }
foreach {my_machine unused} ${my_variations} {
set my_dest_mnvm_dat "${destroot}${my_app_dir}/Mini vMac ${my_machine}.app/Contents/mnvm_dat"
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file mkdir ${my_dest_mnvm_dat}
</span> destroot.keepdirs-append ${my_dest_mnvm_dat}
}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -504,54 +357,7 @@ subport ${my_name}-custom${my_suffix} {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# To build the bootstrap application, use:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# sudo port destroot minivmac-devel bootstrap=yes subport=minivmac-bootstrap-devel
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# The subport is hidden because it is useful only to the port maintainer.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if {[tbool bootstrap]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- subport ${my_name}-bootstrap${my_suffix} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- my_variations {Bootstrap} {-m Plus -as 0 -bg 1 -eci 0 -eck 0 -ecr 0 -gse 1 -mf 1 -sound 0 -speed a -svd 0 -var-fullscreen 0}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- description Mini vMac Bootstrap
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- long_description A copy of Mini vMac specially configured to be \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- used to build other copies of Mini vMac.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:p7zip
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_skip_archcheck-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- p7zip
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants +universal
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.universal_archs \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {*}${supported_archs}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- macosx_deployment_target 10.4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set output_archive ${workpath}/${my_name}-bootstrap-${version}_${revision}.zip
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- exec 7za a ${output_archive} ${destroot}${my_app_dir}/${my_bootstrap_app}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "The distribution zip file has been created:"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "${output_archive}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_exists universal] && [variant_isset universal] && [lsort ${configure.universal_archs}] eq [lsort ${supported_archs}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "This file contains all the necessary architectures and"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "can be distributed."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_warn "DON'T DISTRIBUTE THIS FILE! It doesn't contain all the"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_warn "necessary architectures. To build a distributable"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_warn "bootstrap app, use the universal variant and build on"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_warn "Mac OS X Leopard or Snow Leopard."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${my_subport} ni [list "${my_name}" "${my_name}-bootstrap" "${my_name}-custom"]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${my_subport} ni [list "${my_name}" "${my_name}-custom"]} {
</span> description a Macintosh [lindex ${my_variations} 0] emulator
long_description-append This subport emulates a Macintosh \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -642,23 +448,3 @@ if {${my_subport} ni [list "${my_name}" "${my_name}-bootstrap" "${my_name}-custo
</span> default_variants +speed_${default_speed}
}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Returns the full path to the ROM file, wherever the user has it,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# or the empty string if the user doesn't have it.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-proc my_real_rom_file {} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- global my_app_dir my_rom_dir my_rom_file
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file exists ${my_app_dir}/${my_rom_file}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return ${my_app_dir}/${my_rom_file}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_real_rom_dir [my_read_alias ${my_rom_dir}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file exists ${my_real_rom_dir}/${my_rom_file}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return ${my_real_rom_dir}/${my_rom_file}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return ""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Resolves a Mac OS X alias.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-proc my_read_alias {file} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- global filespath
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return [exec osascript ${filespath}/readalias.applescript [file normalize ${file}]]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/files/README-binary-patchfiles.md b/emulators/minivmac-devel/files/README-binary-patchfiles.md
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 5e98d6a..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/emulators/minivmac-devel/files/README-binary-patchfiles.md
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,53 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Creating binary patches
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-## Prerequisites
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* A copy of Mini vMac with support for writing to Disk Copy 4.2 images: either a version earlier than 3.2.2, or version 3.2.2 or later compiled with the build options `-sony-sum 1 -sony-tag 1`. The default Gryphel builds do not use these options but the default MacPorts builds do.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Disk Tools.image and Tidbits.image disk images from the System 7.0.1.smi disk image from Apple's legacy download area.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* autquit7-1.3.1.dsk (or other version) and the latest minivmac*.src.dsk disk images from the Mini vMac web site.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* A disk image with a copy of ResEdit 2.1.3 (optional).
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-## Create patch-autquit7-1.3.1.dsk.bsdiff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Boot Mini vMac with Disk Tools.image
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Get a fresh copy of autquit7-1.3.1.dsk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Make a copy called autquit7-1.3.1.dsk.orig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Mount autquit7-1.3.1.dsk in Mini vMac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Make the "app" alias:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Get the latest minivmac*.src.dsk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Mount minivmac*.src.dsk in Mini vMac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Select the MnvM_b36 application on the MnvM_b36 volume
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Choose Make Alias from the File menu
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Rename the alias to "app"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Copy the alias to the AutQuit7 volume
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Make the "doc" file:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Mount Tidbits.image in Mini vMac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Open TeachText on the Tidbits volume
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Type "@START@", 8180 spaces and/or periods, "@END@"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Save as "doc" on the AutQuit7 volume
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Use "Get Info" in the Finder to verify the file is exactly 8192 bytes long
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Close all windows
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Choose Shut Down from the Special menu
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Run `bsdiff autquit7-1.3.1.dsk.orig autquit7-1.3.1.dsk patch-autquit7-1.3.1.dsk.bsdiff`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-## Create patch-Disk Tools.image.bsdiff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Get a fresh copy of Disk Tools.image
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Make a copy called Disk Tools.image.orig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Boot Mini vMac with Disk Tools.image
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Make the AutQuit7 alias:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Mount autquit7-1.3.1.dsk in Mini vMac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Select the AutQuit7 application on the AutQuit7 volume
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Choose Make Alias from the File menu
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Open the System Folder on the Disk Tools volume
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Copy the alias into the Startup Items folder
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* [Disable Finder zoom rects](http://tidbits.com/static/html/TidBITS-099.html#lnk5) (optional, now that the build script no longer depends on precise timing):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Mount an image containing ResEdit
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Open the Finder in ResEdit
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Open CODE resource 4, decompressing it when prompted
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Find hex 4E56 FFE0 48E7 1F38
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Change to 205F 700A DEC0 4ED0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Save and quit
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Close all windows
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Choose Shut Down from the Special menu
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-* Run `bsdiff 'Disk Tools.image.orig' 'Disk Tools.image' 'patch-Disk Tools.image.bsdiff'`
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/files/configuration.patch b/emulators/minivmac-devel/files/configuration.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..01fac9e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/minivmac-devel/files/configuration.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Some configuration options have (temporarily?) disappeared, so patch in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+the right values manually.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- setup/CONFIGUR.i.orig 2018-07-14 10:42:18.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup/CONFIGUR.i 2018-07-17 15:47:21.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -8,3 +8,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ see CNFGDLFT.i and CNFGOPTS.i for things
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ that can go here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define kMaintainerName "MacPorts"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define kStrHomePage "https://www.macports.org"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define cur_ide gbk_ide_xcd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define ide_vers @IDE_VERS@
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/files/configure b/emulators/minivmac-devel/files/configure
</span>new file mode 100755
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..80e8139
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/minivmac-devel/files/configure
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#!/bin/sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set -eu
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+SCRIPT_DIR="$(dirname "$0")"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+("$SCRIPT_DIR"/setup_t "$@" || true; echo "exit 1") | sh -e
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+[ -e src ] || ln -s "$SCRIPT_DIR"/src .
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/files/echo-n.patch b/emulators/minivmac-devel/files/echo-n.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..cf766a8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/minivmac-devel/files/echo-n.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,30 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Avoid literal "-n" appearing in files by using printf instead of echo -n.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- setup/BLDUTIL3.i.orig 2018-07-14 10:20:25.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup/BLDUTIL3.i 2018-07-17 12:25:37.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1025,15 +1025,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case gbk_ide_snc:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case gbk_ide_dkp:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case gbk_ide_ccc:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WriteCStrToDestFile("echo");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (! newline) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WriteCStrToDestFile(" -n");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WriteCStrToDestFile(" \"");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ptext();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WriteCStrToDestFile("\" >");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WritePathArgInMakeCmnd(pto);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- break;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case gbk_ide_mvc:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case gbk_ide_xcd:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WriteCStrToDestFile("printf \"");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- setup/WRTEXTFL.i.orig 2018-07-14 10:46:30.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup/WRTEXTFL.i 2018-07-17 12:16:05.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -192,7 +192,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WriteCStrToOutput(FileExt);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WriteCStrToOutput("\"");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WriteEolToOutput();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WriteLnCStrToOutput("echo -n > \"${DestFile}\"");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ WriteLnCStrToOutput("printf \"\" > \"${DestFile}\"");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WriteEolToOutput();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/files/exit.patch b/emulators/minivmac-devel/files/exit.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..fb6e581
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/minivmac-devel/files/exit.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Make the generated script end with "exit 0" so that the "exit 1" that
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+our configure wrapper puts afterward gets ignored.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- setup/WRBGCFLS.i.orig 2018-07-14 09:19:58.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup/WRBGCFLS.i 2018-07-17 14:30:13.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -485,4 +485,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WriteADstFile1("my_project_d",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "Makefile", "", "Make file",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WriteBashGccMakeFile);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ WriteEolToOutput();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ WriteCStrToOutput("exit 0");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ WriteEolToOutput();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/files/newline.patch b/emulators/minivmac-devel/files/newline.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..6309bb8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/minivmac-devel/files/newline.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+We want the generated Makefile to contain "\n", not an actual newline,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+so an extra level of escaping is needed.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- setup/BLDUTIL3.i.orig 2018-07-17 14:06:32.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup/BLDUTIL3.i 2018-07-17 14:24:43.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1030,7 +1030,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WriteCStrToDestFile("printf \"");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ptext();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (newline) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WriteCStrToDestFile("\\n");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ WriteCStrToDestFile("\\\\n");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WriteCStrToDestFile("\" >");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WritePathArgInMakeCmnd(pto);
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/files/patch-Disk Tools.image.bsdiff b/emulators/minivmac-devel/files/patch-Disk Tools.image.bsdiff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index f9ac35f..0000000
</span>Binary files a/emulators/minivmac-devel/files/patch-Disk Tools.image.bsdiff and /dev/null differ
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/files/patch-autquit7-1.3.1.dsk.bsdiff b/emulators/minivmac-devel/files/patch-autquit7-1.3.1.dsk.bsdiff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index f684bfd..0000000
</span>Binary files a/emulators/minivmac-devel/files/patch-autquit7-1.3.1.dsk.bsdiff and /dev/null differ
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/files/readalias.applescript b/emulators/minivmac-devel/files/readalias.applescript
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 6c77a2d..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/emulators/minivmac-devel/files/readalias.applescript
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,12 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-on run argv
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- tell application "Finder"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set the_path to item 1 of argv
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- try
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -- Will throw an error if the_path does not exist.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set the_item to POSIX file the_path as alias
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -- Will throw an error if the_item is not an alias.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return POSIX path of (original item of the_item as text)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- end try
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return the_path
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- end tell
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-end run
</span></pre><pre style='margin:0'>
</pre>