# -*- 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         psf
name                lib${modname}
github.setup        TTK-qmmp qmmp-${modname} 805d663db6bf0ff54748fdb8f23a1eb67922f340
version             20251217
revision            0
categories          audio
license             GPL-3
maintainers         nomaintainer
description         Input plugin for qmmp to play ${modname} modules
long_description    {*}${description}
checksums           rmd160  572c729c1848d8f51c5914089013a4cae2610da2 \
                    sha256  5f5f6019f265bd42752b9e88afb1fe67498999316c5c784eddf944d40dd5a8fe \
                    size    490224
github.tarball_from archive

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

depends_lib-append  port:zlib

destroot {
    copy ${worksrcpath}/${name}.dylib ${destroot}${prefix}/lib/
    xinstall -d ${destroot}${prefix}/include/${name}
    copy ${worksrcpath}/${name}/ao.h ${destroot}${prefix}/include/${name}/
}
