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

github.setup        nothings stb f1c79c02822848a9bed4315b12c8c8f3761e1296
version             20251026
revision            0
categories          devel
platforms           any
supported_archs     noarch
license             {public-domain MIT}
maintainers         {judaew @judaew} openmaintainer

description         Single-file public domain (or MIT licensed) libraries for C/C++
long_description    {*}${description}

checksums           rmd160  55228c93c7784a1db59d8bba9fb182cbe5f5a821 \
                    sha256  a39b0f2d96d9b64171ac1fd73295b7c5866f904e653b379da886d050a6900db9 \
                    size    1514727
github.tarball_from archive

use_configure       no
build               {}

destroot {
    xinstall -d ${destroot}${prefix}/include/${name}
    xinstall -m 0644 {*}[glob ${worksrcpath}/*.h] \
        ${destroot}${prefix}/include/${name}
    xinstall -m 0644 {*}[glob ${worksrcpath}/*.c] \
        ${destroot}${prefix}/include/${name}

    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 {*}[glob ${worksrcpath}/docs/*] \
        ${destroot}${prefix}/share/doc/${name}
}
