# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 148198 2016-04-29 14:18:37Z jmr@macports.org $ PortSystem 1.0 name libsdl_image set my_name SDL_image version 1.2.12 revision 5 categories devel graphics platforms darwin license zlib maintainers jmr openmaintainer description Add on library for libSDL handling several image formats long_description \ This is a simple library to load images of various formats as SDL surfaces. \ This library supports BMP, PPM, PCX, GIF, JPEG, PNG, TGA, and TIFF formats. homepage http://www.libsdl.org/projects/SDL_image/release-1.2.html master_sites http://www.libsdl.org/projects/SDL_image/release/ distname ${my_name}-${version} checksums rmd160 206990959c6b225286c0a19bc05b991c6bc2c3e8 \ sha256 0b90722984561004de84847744d566809dbb9daf732a9e503b91a1b5a84e5699 depends_build port:pkgconfig depends_lib port:libsdl \ port:libpng \ port:jpeg \ port:tiff \ port:zlib # https://trac.macports.org/ticket/37453 patchfiles IMG_ImageIO.m.patch configure.args --disable-sdltest \ --enable-jpg-shared=false \ --enable-png-shared=false \ --enable-tif-shared=false post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \ ${destroot}${docdir} } if {${os.platform} eq "darwin" && ${os.major} <= 9} { # https://trac.macports.org/ticket/33015 # https://trac.macports.org/ticket/38012 configure.args-append --disable-imageio } livecheck.type regex livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)