<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/055dab1b41a89d33fb67d2ba98f7aaf7a278a798">https://github.com/macports/macports-ports/commit/055dab1b41a89d33fb67d2ba98f7aaf7a278a798</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 055dab1b41a89d33fb67d2ba98f7aaf7a278a798
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Mon Jun 11 21:58:08 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> minivmac*: Add screen size variants
</span>---
emulators/minivmac-devel/Portfile | 28 +++++++++++++++++++++++++++-
emulators/minivmac/Portfile | 28 +++++++++++++++++++++++++++-
2 files changed, 54 insertions(+), 2 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 c2a95c5..7605027 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;'>@@ -378,6 +378,8 @@ if {${subport} eq ${name}} {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set default_screen_size 512x342
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> subport ${my_name}-128k${my_suffix} {
my_variations {128K} {-m 128K}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -408,7 +410,8 @@ subport ${my_name}-classic${my_suffix} {
</span> }
subport ${my_name}-ii${my_suffix} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- my_variations {II} {-m II -mem 8M -hres 800 -vres 600 -depth 3}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ my_variations {II} {-m II}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set default_screen_size 640x480
</span> }
# To build the bootstrap application, use:
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -468,6 +471,29 @@ if {${subport} ni [list "${my_name}${my_suffix}" "${my_name}-bootstrap${my_suffi
</span> configure.post_args-append \
-im 1
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set screen_sizes {512x342 512x384}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${subport} ne "${my_name}-128k${my_suffix}"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend screen_sizes 640x480 800x600 1024x768
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach screen_size ${screen_sizes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend screen_size_variants screen_${screen_size}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set set_default_screen_size_variant yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach screen_size ${screen_sizes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set screen_hres [lindex [split ${screen_size} {x}] 0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set screen_vres [lindex [split ${screen_size} {x}] 1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set screen_size_variant screen_${screen_size}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant ${screen_size_variant} conflicts {*}[lsearch -all -inline -not -exact ${screen_size_variants} ${screen_size_variant}] description "Screen size ${screen_size}" "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.post_args-append -hres ${screen_hres} -vres ${screen_vres}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [variant_isset ${screen_size_variant}] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set set_default_screen_size_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_screen_size_variant} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +screen_${default_screen_size}
</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 968a4e4..43c7bd8 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;'>@@ -347,6 +347,8 @@ if {${subport} eq ${name}} {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set default_screen_size 512x342
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> subport ${my_name}-128k${my_suffix} {
my_variations {128K} {-m 128K}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -377,7 +379,8 @@ subport ${my_name}-classic${my_suffix} {
</span> }
subport ${my_name}-ii${my_suffix} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- my_variations {II} {-m II -mem 8M -hres 800 -vres 600 -depth 3}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ my_variations {II} {-m II}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set default_screen_size 640x480
</span> }
# To build the bootstrap application, use:
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -437,6 +440,29 @@ if {${subport} ni [list "${my_name}${my_suffix}" "${my_name}-bootstrap${my_suffi
</span> configure.post_args-append \
-im 1
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set screen_sizes {512x342 512x384}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${subport} ne "${my_name}-128k${my_suffix}"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend screen_sizes 640x480 800x600 1024x768
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach screen_size ${screen_sizes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend screen_size_variants screen_${screen_size}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set set_default_screen_size_variant yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach screen_size ${screen_sizes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set screen_hres [lindex [split ${screen_size} {x}] 0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set screen_vres [lindex [split ${screen_size} {x}] 1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set screen_size_variant screen_${screen_size}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant ${screen_size_variant} conflicts {*}[lsearch -all -inline -not -exact ${screen_size_variants} ${screen_size_variant}] description "Screen size ${screen_size}" "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.post_args-append -hres ${screen_hres} -vres ${screen_vres}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [variant_isset ${screen_size_variant}] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set set_default_screen_size_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_screen_size_variant} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +screen_${default_screen_size}
</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>