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

name                stsound
github.setup        arnaud-carre StSound d1876bc137ab4a3852fc72076a0cdbff704a43be
version             20240921
revision            0
categories          audio
license             MIT
maintainers         nomaintainer
description         Library to replay YM files (Atari ST music file format)
long_description    {*}${description}
checksums           rmd160  f8b2967b1680cdb609f58bb413e104645725fc0a \
                    sha256  0cdc2de3046f34aff9a6cec1ffec0dff68ed8cbb30be8c4898284de5dc9c607a \
                    size    184139
github.tarball_from archive

destroot {
    move ${cmake.build_dir}/StSoundLibrary/libStSoundLibrary.a ${destroot}${prefix}/lib/libStSound.a
    copy ${cmake.build_dir}/Ym2Wav/Ym2Wav ${destroot}${prefix}/bin/
    set incdir ${prefix}/include/lib${name}
    xinstall -d ${destroot}${incdir}
    fs-traverse h ${worksrcpath}/StSoundLibrary {
        if {[file isfile ${h}] && [file extension ${h}] == ".h"} {
            copy ${h} ${destroot}${incdir}/
        }
    }
}
