# -*- 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       cmake 1.0
PortGroup       github 1.0

name            SDL3-devel
github.setup    libsdl-org SDL 3.1.8 preview-
categories      devel multimedia
platforms       {darwin >= 11}
license         zlib
maintainers     {jmr @jmroot}
description     Cross-platform multi-media development API (prerelease)
long_description \
    Simple DirectMedia Layer is a cross-platform development library \
    designed to provide low level access to audio, keyboard, mouse, \
    joystick, and graphics hardware. This is a preview of the new \
    version 3.0 API.

homepage        https://www.libsdl.org/

github.tarball_from releases
distname        SDL3-${version}
checksums       rmd160 cfb29ac77f97d47527f811358ab376055135a6e8 \
                sha256 e4c3da19a2629f34a768c5d5de40703ab69fea448bc2a621e7c59223c0e98d68

cmake.out_of_source yes

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} BUGS.txt CREDITS.md \
        README-SDL.txt WhatsNew.txt \
        {*}[glob ${worksrcpath}/docs/*.md] ${destroot}${docdir}
}
