# -*- 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

PortSystem      1.0
PortGroup       github 1.0

github.setup    libsdl-org SDL_image 633dc522f5114f6d473c910dace62e8ca27a1f7d
name            libsdl_image
version         1.2.12-20220527
revision        1
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.

homepage        https://web.archive.org/web/20211017021914/http://www.libsdl.org/projects/SDL_image/release-1.2.html

github.tarball_from archive
checksums       rmd160 5f863f96a99c3bfd4f65d7c62cefea4f90de9a7e \
                sha256 1ec2e84a42c04ad9b4374091ef4ef1f5325fecc004925b1b296af04c55bea6da

depends_build   path:bin/pkg-config:pkgconfig
depends_lib     port:libsdl \
                port:libpng \
                path:include/turbojpeg.h:libjpeg-turbo \
                port:tiff

configure.args  --disable-sdltest \
                --enable-jpg-shared=false \
                --enable-png-shared=false \
                --enable-tif-shared=false \
                --disable-imageio \
                --disable-webp

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \
        ${destroot}${docdir}
}

livecheck.type  none
