# -*- 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        mackron dr_libs dfe8377631000664666519fdb83da193fd8037f4
github.tarball_from archive
version             20260831
revision            0

categories          audio devel
platforms           any
supported_archs     noarch
# Upstream offers a choice of public domain or MIT No Attribution.
license             public-domain
maintainers         {@herbygillot gmail.com:herby.gillot} openmaintainer

description         Single-header audio decoding libraries for C and C++
long_description    dr_libs provides self-contained FLAC and MP3 decoders and a WAV reader \
                    and writer, each distributed as a single C/C++ header.

checksums           rmd160  18ed86696c45b86bb83a110c525cce87ac0b84b1 \
                    sha256  4654acb029f4f2a43ac2edb60c4cb09f40615b4b5bee9709954f910cb979e5fd \
                    size    224037

use_configure       no
build {}

destroot {
    xinstall -d ${destroot}${prefix}/include
    xinstall -m 0644 -W ${worksrcpath} dr_flac.h dr_mp3.h dr_wav.h \
        ${destroot}${prefix}/include

    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} README.md LICENSE \
        ${destroot}${prefix}/share/doc/${name}
}
