Ticket #6260: OptionalPackages.diff

File OptionalPackages.diff, 1022 bytes (added by andreasf, 9 years ago)

propopsed patch

  • build/jam/ImageRules

    # HG changeset patch
    # User Andreas Faerber <andreas.faerber@web.de>
    # Date 1272060264 -7200
    # Node ID 630a8c36178e2ca3bd1b687731281ce5ecd68a8c
    # Parent 67349853aa48eac03479d4a00f9a7d1ebd8f518f
    Disable some Optional Packages
    
    diff -r 67349853aa48 build/jam/ImageRules
    a b  
    785785    }
    786786}
    787787
     788rule SuppressOptionalHaikuImagePackages packages
     789{
     790    local package ;
     791    for package in $(packages) {
     792        if ! [ on $(package) return $(HAIKU_OPTIONAL_PACKAGE_SUPPRESSED) ] {
     793            HAIKU_OPTIONAL_PACKAGE_SUPPRESSED on $(package) = 1 ;
     794        }
     795    }
     796}
     797
    788798rule IsOptionalHaikuImagePackageAdded package
    789799{
    790800    if ! [ on $(package) return $(HAIKU_OPTIONAL_PACKAGE_EXISTS) ] {
     
    792802        HAIKU_EXISTING_OPTIONAL_PACKAGES += $(package) ;
    793803    }
    794804
     805    if [ on $(package) return $(HAIKU_OPTIONAL_PACKAGE_SUPPRESSED) ] {
     806        return ;
     807    }
    795808    if [ on $(package) return $(HAIKU_OPTIONAL_PACKAGE_ADDED) ] {
    796809        return 1 ;
    797810    }