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

set modname         soundmon
name                lib${modname}
github.setup        TTK-qmmp qmmp-${modname} 76e02de8923f889abfab3e2aa9dc726c1eeaf9a9
version             20260506
revision            0
categories          audio
license             GPL-3
maintainers         nomaintainer
description         Input plugin for qmmp to play bp ${modname} modules
long_description    {*}${description}
checksums           rmd160  612e79a30eb7366c1cf0bc6a80eb11e5c582c3de \
                    sha256  0500f84af826b37a2c926645aa135b4536569f1fcc4f8ec4aa3115a09c92d19c \
                    size    25349
github.tarball_from archive

post-extract {
    copy ${filespath}/Makefile ${worksrcpath}/
}

compiler.cxx_standard   2011

destroot {
    xinstall -m 0644 ${worksrcpath}/${name}.dylib ${destroot}${prefix}/lib/
    set incdir ${destroot}${prefix}/include/${name}
    xinstall -d ${incdir}
    xinstall -m 0644 ${worksrcpath}/${name}/bstypes.h ${incdir}/
    xinstall -m 0644 ${worksrcpath}/${name}/player.h ${incdir}/
}
