Ticket #26466: patch-boost-Portfile-finer-control.diff

File patch-boost-Portfile-finer-control.diff, 988 bytes (added by manphiz@…, 14 years ago)

Patch to add variants to build multi-thread / shared flavor(s) only

  • Portfile

    old new  
    5454                -sZLIB_INCLUDE=${prefix}/include \
    5555                -sZLIB_LIBPATH=${prefix}/lib \
    5656                threading=single,multi \
     57                link=shared,static \
     58                runtime-link=shared,static \
    5759                variant=release
    5860
    5961use_parallel_build  no
     
    182184    }
    183185}
    184186
     187variant multithread_only description "only build multithread variant" {
     188    build.args-delete   threading=single,multi
     189    build.args-append   threading=multi
     190}
     191
     192variant shared_only description "only build shared libraries" {
     193    build.args-delete   link=shared,static \
     194                        runtime-link=shared,static
     195    build.args-append   link=shared \
     196                        runtime-link=shared
     197}
     198
    185199variant universal {
    186200    build.args-append   pch=off
    187201