# -*- 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
version ${orig_version}-${debian_version}
maintainers {gmail.com:rjvbertin @RJVB} {mojca @mojca} openmaintainer
description SoundFont definitions for FluidSynth and compatible applications.
long_description ${description} Provides the Fluid (R3) General Midi Level 1 \
SoundFont (GM) as well as older Roland Sound Canvas extensions from the \
GeneralUser (GS) SoundFont. Configuration profiles are also \
homepage https://github.com/FluidSynth/fluidsynth/wiki/SoundFont
master_sites http://http.debian.net/debian/pool/main/f/fluid-soundfont/
distname ${name}_${orig_version}
worksrcdir ${name}-${orig_version}
distfiles ${distname}.orig.tar.gz
set patchfile ${distname}-${debian_version}.diff.gz
checksums ${distname}.orig.tar.gz \
rmd160 edd3d626bd1fe17c18f1ddf0b657f54d02fd8b5a \
sha256 2621acaa1c78e4abdb24bdd163230cc577e61276936d6aa6e3180582142f0343 \
rmd160 81ef44ca89edb7bdfd25143fe110208dd5d32331 \
sha256 307fd3f7f71384c102f4c10e39de4216af59c974308fd153187b253923180cf7
# the Debian patch that creates the soundfont .cfg definition
depends_build port:dos2unix
foreach f {fluidr3_gm.cfg fluidr3_gs.cfg} {
reinplace "s|/usr/share/sounds/sf2|${prefix}/share/sounds/sf2|g" ${worksrcpath}/debian/${f}
system "dos2unix \"${worksrcpath}/debian/${f}\""
set dir ${destroot}${prefix}/share/sounds/sf2
xinstall -m 755 -d ${dir}
foreach f {FluidR3_GM.sf2 FluidR3_GS.sf2} {
xinstall -m 644 ${worksrcpath}/${f} ${dir}
set dir ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 -d ${dir}
foreach f {README COPYING debian/README.Debian debian/changelog debian/copyright} {
xinstall -m 644 ${worksrcpath}/${f} ${dir}