Changeset 58922


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

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

Location:
trunk/dports/emulators
Files:
2 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.
  • trunk/dports/emulators/minivmac/Portfile

    r58792 r58922  
    9393# and this port is upgraded to version 3.1.x final.
    9494if {0} {
     95# To build the bootstrap, use "sudo port install bootstrap=yes".
     96# The variant is hidden because it is useful only to the port maintainer.
     97if {[tbool bootstrap]} {
     98    variant bootstrap conflicts unsupported requires universal description {Build the bootstrap version of Mini vMac} {
     99        my_variations   {Bootstrap} {-m Plus -sound 0 -bg 1 -speed a}
     100    }
     101    default_variants +bootstrap
     102}
     103
    95104variant universal {
    96105    configure.universal_args
     
    235244
    236245post-build {
    237     # To save space, keep only a single copy of the Resources directory.
    238246    set i 0
    239247    foreach my_arch ${my_archs} {
     
    243251                reinplace "s|${my_target}|umch|" ${build.dir}/${my_arch}/${my_machine}/minivmac.app/Contents/Info.plist
    244252            }
    245             set my_resources_dir ${build.dir}/${my_arch}/${my_machine}/minivmac.app/Contents/Resources
    246             if {0 == ${i}} {
    247                 move ${my_resources_dir} ${build.dir}
    248             } else {
    249                 delete ${my_resources_dir}
     253            if {![variant_isset bootstrap]} {
     254                # To save space, keep only a single copy of the Resources directory.
     255                set my_resources_dir ${build.dir}/${my_arch}/${my_machine}/minivmac.app/Contents/Resources
     256                if {0 == ${i}} {
     257                    move ${my_resources_dir} ${build.dir}
     258                } else {
     259                    delete ${my_resources_dir}
     260                }
     261                ln -s ${my_share_dir}/Resources ${my_resources_dir}
    250262            }
    251             ln -s ${my_share_dir}/Resources ${my_resources_dir}
    252263            incr i
    253264        }
    254265    }
    255266   
    256     # Install the prettier icons.
    257     eval xinstall -m 644 [glob ${worksrcpath}/${my_icons}/icons/*.icns] ${build.dir}/Resources
     267    if {![variant_isset bootstrap]} {
     268        # Install the prettier icons.
     269        eval xinstall -m 644 [glob ${worksrcpath}/${my_icons}/icons/*.icns] ${build.dir}/Resources
     270    }
    258271}
    259272
    260273destroot {
    261     # Install the global Resources directory.
    262     xinstall -d ${destroot}${my_share_dir}
    263     copy ${build.dir}/Resources ${destroot}${my_share_dir}
     274    if {![variant_isset bootstrap]} {
     275        # Install the global Resources directory.
     276        xinstall -d ${destroot}${my_share_dir}
     277        copy ${build.dir}/Resources ${destroot}${my_share_dir}
     278    }
    264279   
    265280    # Install the programs.
Note: See TracChangeset for help on using the changeset viewer.