<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/0989c95c410f922de1204218a7b990da35386bf1">https://github.com/macports/macports-ports/commit/0989c95c410f922de1204218a7b990da35386bf1</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 0989c95c410f922de1204218a7b990da35386bf1
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Mon Jun 11 22:41:19 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> minivmac*: Add CPU speed variants
</span>---
emulators/minivmac-devel/Portfile | 20 ++++++++++++++++++++
emulators/minivmac/Portfile | 20 ++++++++++++++++++++
2 files changed, 40 insertions(+)
<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 7605027..ecb2de6 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;'>@@ -379,6 +379,7 @@ if {${subport} eq ${name}} {
</span> }
set default_screen_size 512x342
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set default_speed 8x
</span>
subport ${my_name}-128k${my_suffix} {
my_variations {128K} {-m 128K}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -412,6 +413,7 @@ subport ${my_name}-classic${my_suffix} {
</span> subport ${my_name}-ii${my_suffix} {
my_variations {II} {-m II}
set default_screen_size 640x480
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set default_speed 4x
</span> }
# To build the bootstrap application, use:
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -494,6 +496,24 @@ if {${subport} ni [list "${my_name}${my_suffix}" "${my_name}-bootstrap${my_suffi
</span> if ${set_default_screen_size_variant} {
default_variants +screen_${default_screen_size}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set speeds {z 1x 1 2x 2 4x 3 8x 4 16x 5 32x a unlimited}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach {speed speed_name} ${speeds} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend speed_variants speed_${speed_name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set set_default_speed_variant yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach {speed speed_name} ${speeds} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set speed_variant speed_${speed_name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant ${speed_variant} conflicts {*}[lsearch -all -inline -not -exact ${speed_variants} ${speed_variant}] description "Default CPU speed ${speed_name}" "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.post_args-append -speed ${speed}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [variant_isset ${speed_variant}] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set set_default_speed_variant no
</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;'>+ if ${set_default_speed_variant} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +speed_${default_speed}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
# Returns the full path to the ROM file, wherever the user has it,
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac/Portfile b/emulators/minivmac/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 43c7bd8..5f9d66b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/emulators/minivmac/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/minivmac/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -348,6 +348,7 @@ if {${subport} eq ${name}} {
</span> }
set default_screen_size 512x342
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set default_speed 8x
</span>
subport ${my_name}-128k${my_suffix} {
my_variations {128K} {-m 128K}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -381,6 +382,7 @@ subport ${my_name}-classic${my_suffix} {
</span> subport ${my_name}-ii${my_suffix} {
my_variations {II} {-m II}
set default_screen_size 640x480
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set default_speed 4x
</span> }
# To build the bootstrap application, use:
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -463,6 +465,24 @@ if {${subport} ni [list "${my_name}${my_suffix}" "${my_name}-bootstrap${my_suffi
</span> if ${set_default_screen_size_variant} {
default_variants +screen_${default_screen_size}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set speeds {z 1x 1 2x 2 4x 3 8x 4 16x 5 32x a unlimited}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach {speed speed_name} ${speeds} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend speed_variants speed_${speed_name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set set_default_speed_variant yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach {speed speed_name} ${speeds} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set speed_variant speed_${speed_name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant ${speed_variant} conflicts {*}[lsearch -all -inline -not -exact ${speed_variants} ${speed_variant}] description "Default CPU speed ${speed_name}" "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.post_args-append -speed ${speed}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [variant_isset ${speed_variant}] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set set_default_speed_variant no
</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;'>+ if ${set_default_speed_variant} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +speed_${default_speed}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
# Returns the full path to the ROM file, wherever the user has it,
</pre><pre style='margin:0'>
</pre>