Ignore:
Timestamp:
Oct 7, 2009, 12:04:47 PM (11 years ago)
Author:
ryandesign@…
Message:

minivmac, minivmac-devel: add +bootstrap variant (disabled for now)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/emulators/minivmac-devel/Portfile

    r58792 r58922  
    113113# The universal variant is disabled until MacPorts 1.8.2 is released.
    114114if {0} {
     115# To build the bootstrap, use "sudo port install bootstrap=yes".
     116# The variant is hidden because it is useful only to the port maintainer.
     117if {[tbool bootstrap]} {
     118    variant bootstrap conflicts unsupported requires universal description {Build the bootstrap version of Mini vMac} {
     119        my_variations   {Bootstrap} {-m Plus -sound 0 -bg 1 -speed a}
     120    }
     121    default_variants +bootstrap
     122}
     123
    115124variant universal {
    116125    configure.universal_args
     
    260269
    261270post-build {
    262     # To save space, keep only a single copy of the Resources directory.
    263271    set i 0
    264272    foreach my_arch ${my_archs} {
     
    268276                reinplace "s|${my_target}|umch|" ${build.dir}/${my_arch}/${my_machine}/minivmac.app/Contents/Info.plist
    269277            }
    270             set my_resources_dir ${build.dir}/${my_arch}/${my_machine}/minivmac.app/Contents/Resources
    271             if {0 == ${i}} {
    272                 move ${my_resources_dir} ${build.dir}
    273             } else {
    274                 delete ${my_resources_dir}
     278            if {![variant_isset bootstrap]} {
     279                # To save space, keep only a single copy of the Resources directory.
     280                set my_resources_dir ${build.dir}/${my_arch}/${my_machine}/minivmac.app/Contents/Resources
     281                if {0 == ${i}} {
     282                    move ${my_resources_dir} ${build.dir}
     283                } else {
     284                    delete ${my_resources_dir}
     285                }
     286                ln -s ${my_share_dir}/Resources ${my_resources_dir}
    275287            }
    276             ln -s ${my_share_dir}/Resources ${my_resources_dir}
    277288            incr i
    278289        }
    279290    }
    280291   
    281     # Install the prettier icons.
    282     eval xinstall -m 644 [glob ${worksrcpath}/${my_icons}/icons/*.icns] ${build.dir}/Resources
     292    if {![variant_isset bootstrap]} {
     293        # Install the prettier icons.
     294        eval xinstall -m 644 [glob ${worksrcpath}/${my_icons}/icons/*.icns] ${build.dir}/Resources
     295    }
    283296}
    284297
    285298destroot {
    286     # Install the global Resources directory.
    287     xinstall -d ${destroot}${my_share_dir}
    288     copy ${build.dir}/Resources ${destroot}${my_share_dir}
     299    if {![variant_isset bootstrap]} {
     300        # Install the global Resources directory.
     301        xinstall -d ${destroot}${my_share_dir}
     302        copy ${build.dir}/Resources ${destroot}${my_share_dir}
     303    }
    289304   
    290305    # Install the programs.
Note: See TracChangeset for help on using the changeset viewer.