Commits

Ryan Schmidt authored 9cdfcf8c4cd
minivmac*: Add color depth variants
No tags

emulators/minivmac/Portfile

Modified
393 393 subport ${my_name}-sefdhd${my_suffix} {
394 394 my_variations {SE FDHD} {-m SEFDHD}
395 395 }
396 396
397 397 subport ${my_name}-classic${my_suffix} {
398 398 my_variations {Classic} {-m Classic}
399 399 }
400 400
401 401 subport ${my_name}-ii${my_suffix} {
402 402 my_variations {II} {-m II}
403 + set default_color_depth 256
403 404 set default_screen_size 640x480
404 405 set default_speed 4x
405 406 }
406 407
407 408 subport ${my_name}-custom${my_suffix} {
408 409 long_description-append This subport allows the user to compile custom \
409 410 variations of Mini vMac.
410 411
411 412 archive_sites
412 413
547 548 variant icon_master description {Take ownership of disk image files and ROM image files; at most one copy of Mini vMac should do this} {
548 549 configure.post_args-append \
549 550 -im 1
550 551 }
551 552
552 553 variant min_extensions description {Disable extensions not needed for most situations, including clipboard import/export and file/disk image creation} {
553 554 configure.post_args-append \
554 555 -min-extn
555 556 }
556 557
558 + if {${my_subport} eq "${my_name}-ii"} {
559 + set color_depths {
560 + 0 bw {Black and white only}
561 + 1 4 {4 colors or black and white}
562 + 2 16 {16 colors or black and white}
563 + 3 256 {256 colors or black and white}
564 + 4 thousands {Thousands of colors or black and white}
565 + 5 millions {Millions of colors or black and white}
566 + }
567 + foreach {color_depth color_depth_name color_depth_description} ${color_depths} {
568 + lappend color_depth_variants colors_${color_depth_name}
569 + }
570 + set set_default_color_depth_variant yes
571 + foreach {color_depth color_depth_name color_depth_description} ${color_depths} {
572 + set color_depth_variant colors_${color_depth_name}
573 + variant ${color_depth_variant} conflicts {*}[lsearch -all -inline -not -exact ${color_depth_variants} ${color_depth_variant}] description ${color_depth_description} "
574 + configure.post_args-append -depth ${color_depth}
575 + "
576 + if [variant_isset ${color_depth_variant}] {
577 + set set_default_color_depth_variant no
578 + }
579 + }
580 + if ${set_default_color_depth_variant} {
581 + default_variants +colors_${default_color_depth}
582 + }
583 + }
584 +
557 585 set screen_sizes {512x342 512x384}
558 586 if {${my_subport} ne "${my_name}-128k"} {
559 587 lappend screen_sizes 640x480 800x600 1024x768
560 588 }
561 589 foreach screen_size ${screen_sizes} {
562 590 lappend screen_size_variants screen_${screen_size}
563 591 }
564 592 set set_default_screen_size_variant yes
565 593 foreach screen_size ${screen_sizes} {
566 594 set screen_hres [lindex [split ${screen_size} {x}] 0]

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut