# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup github 1.0 name libsdl2_image github.setup libsdl-org SDL_image 2.8.2 release- categories devel graphics license zlib maintainers {jmr @jmroot} 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. github.tarball_from releases distname SDL2_image-${version} checksums rmd160 c1d7f8aa9d08dacdbc3db2106944bbcd0de0ea1f \ sha256 8f486bbfbcf8464dd58c9e5d93394ab0255ce68b51c5a966a918244820a76ddc depends_build path:bin/pkg-config:pkgconfig depends_lib port:libsdl2 \ port:tiff \ port:webp # https://github.com/libsdl-org/SDL_image/commit/30b30dfa804602423db7450483b973d62d144bb3 patchfiles 30b30dfa804602423db7450483b973d62d144bb3.patch configure.args --disable-avif \ --disable-imageio \ --disable-jxl \ --disable-sdltest \ --disable-tif-shared \ --disable-webp-shared compiler.blacklist *gcc-4.* { clang < 211 } post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} CHANGES.txt LICENSE.txt README.txt \ ${destroot}${docdir} } variant jxl description {Enable JPEG XL support (experimental)} { depends_lib-append port:libjxl configure.args-replace --disable-jxl \ --enable-jxl configure.args-append --disable-jxl-shared }