Ticket #38012: libsdl_image-disable-ImageIO.diff

File libsdl_image-disable-ImageIO.diff, 1.1 KB (added by mklein-de (Michael Klein), 12 years ago)

add disable_imageio variant

  • dports/devel/libsdl_image/Portfile

    commit f2a6189242362c65a45e0beeefa78d9d383065ce
    Author: Michael Klein <michael.klein@puffin.lb.shuttle.de>
    Date:   Sun Feb 10 20:48:17 2013 +0100
    
        libsdl_image: add +disable_imagio variant
    
    diff --git a/dports/devel/libsdl_image/Portfile b/dports/devel/libsdl_image/Portfile
    index eec49aa..1dd62ca 100644
    a b depends_lib path:lib/pkgconfig/sdl.pc:libsdl \ 
    3232                port:zlib
    3333
    3434configure.args  --disable-sdltest \
     35                --enable-imageio \
    3536                --enable-jpg-shared=false \
    3637                --enable-png-shared=false \
    3738                --enable-tif-shared=false
    post-destroot { 
    4344        ${destroot}${docdir}
    4445}
    4546
     47variant disable_imageio description "disable use of ImageIO framework" {
     48    configure.args-delete --enable-imageio
     49    configure.args-append --disable-imageio
     50}
     51
    4652platform darwin 8 {
    4753    # This can probably be made to work if someone cares enough
    4854    # http://trac.macports.org/ticket/33015
    49     configure.args-append --disable-imageio
     55    default_variants +disable_imageio
    5056}
    5157
    5258livecheck.type  regex