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

github.setup        Optiroc BRRTools 3.14 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            1
categories          audio
maintainers         {gmail.com:chrisbodek @cbodek} openmaintainer
license             permissive
description         Tools to convert between .wav and SNES BRR files
long_description    BRRTools are currently the most evolved tools to \
                    convert between standard RIFF .wav format and SNES's \
                    built-in BRR sound format.

checksums           rmd160  149ba55f45b996fb0b3548faeafa4b29ec02471c \
                    sha256  7d09bcfc5b58491ea68700130349cc9583296847325680ece41d295d0860431f \
                    size    14731

patchfiles          patch-BRRTools-makefile.diff

use_configure       no

# no make install in Makefile, so we'll do it here
destroot {
    xinstall -m 755 ${worksrcpath}/bin/brr_decoder ${destroot}${prefix}/bin/
    xinstall -m 755 ${worksrcpath}/bin/brr_encoder ${destroot}${prefix}/bin/
    xinstall -m 755 ${worksrcpath}/bin/spc_decoder ${destroot}${prefix}/bin/
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 ${worksrcpath}/README.md ${destroot}${prefix}/share/doc/${name}
}
