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

name                freepats
version             20060219
revision            1
categories          audio multimedia
platforms           any
supported_archs     noarch
license             GPL-2+
maintainers         nomaintainer

description         Instrument patches for sound synthesis (like TiMidity++)
long_description    Freepats is a project to create a free and open set of instrument patches, \
                    in any format, that can be used with softsynths.

homepage            http://freepats.zenvoid.org/
master_sites        ${homepage}

use_bzip2           yes

checksums           rmd160  276fcf5ee008decb3640f22fe753639de072bbf9 \
                    sha256  0261ea1057b232183fa472432d5cedb0dca33698a5319328cdf193d4b2193c8a

worksrcdir          ${name}
patchfiles          patch-add-dir.diff

post-patch {
    reinplace "s|@PREFIX@|${prefix}|g" \
         ${worksrcpath}/crude.cfg \
         ${worksrcpath}/freepats.cfg
}

use_configure       no
build               {}
destroot {
    copy ${workpath}/freepats ${destroot}${prefix}/share
    ## theoretically perhaps copy or move the files to doc
    # set destdocdir ${destroot}${prefix}/share/doc/${name}
    # xinstall -d -m 0755 ${destdocdir}
    # move ${destroot}${prefix}/share/${name}/README  ${destdocdir}
    # move ${destroot}${prefix}/share/${name}/COPYING ${destdocdir}
}

livecheck.url       http://freepats.zenvoid.org/SoundSets/general-midi.html
