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

# Not using upstream due to:
# https://github.com/TTK-qmmp/qmmp-sc68/issues/1
set modname         sc68
name                lib${modname}
github.setup        TTK-qmmp qmmp-${modname} 1.0.1 v
revision            0
epoch               1
categories          audio
license             GPL-3
maintainers         nomaintainer
description         Input plugin for qmmp to play ${modname} modules
long_description    {*}${description}
checksums           rmd160  16792c31c2d9ce91a8774967c0d5d1b9a26bb52c \
                    sha256  0983daa72af4a01c7c3fa6572e5abcecf92fdfb078dee5b036efffc3bf41e7f2 \
                    size    759082
github.tarball_from archive

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

build.target

destroot {
    copy ${worksrcpath}/${name}.dylib ${destroot}${prefix}/lib/
    copy ${worksrcpath}/${name}/${name}/${modname}/${modname}.h ${destroot}${prefix}/include/
}
