Ticket #52992: fluid-soundfont.Portfile

File fluid-soundfont.Portfile, 2.5 KB (added by mojca (Mojca Miklavec), 7 years ago)

My proposal for fluid-soundfont

Line 
1# -*- 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
2
3PortSystem          1.0
4
5name                fluid-soundfont
6set orig_version    3.1
7set debian_version  5.1
8version             ${orig_version}-${debian_version}
9categories          audio
10license             MIT
11maintainers         gmail.com:rjvbertin mojca openmaintainer
12
13description         SoundFont definitions for FluidSynth and compatible applications.
14long_description    ${description} Provides the Fluid (R3) General Midi Level 1 \
15                    SoundFont (GM) as well as older Roland Sound Canvas extensions from the \
16                    GeneralUser (GS) SoundFont. Configuration profiles are also \
17                    provided for TiMidity++.
18
19homepage            https://sourceforge.net/p/fluidsynth/wiki/SoundFont/
20master_sites        http://http.debian.net/debian/pool/main/f/fluid-soundfont/
21
22distname            ${name}_${orig_version}
23worksrcdir          ${name}-${orig_version}
24
25distfiles           ${distname}.orig.tar.gz
26set patchfile       ${distname}-${debian_version}.diff.gz
27
28checksums           ${distname}.orig.tar.gz \
29                    rmd160  edd3d626bd1fe17c18f1ddf0b657f54d02fd8b5a \
30                    sha256  2621acaa1c78e4abdb24bdd163230cc577e61276936d6aa6e3180582142f0343 \
31                    ${patchfile} \
32                    rmd160  81ef44ca89edb7bdfd25143fe110208dd5d32331 \
33                    sha256  307fd3f7f71384c102f4c10e39de4216af59c974308fd153187b253923180cf7
34
35# the Debian patch that creates the soundfont .cfg definition
36patchfiles          ${patchfile}
37patch.pre_args      -Np1
38
39post-patch {
40    foreach f {fluidr3_gm.cfg fluidr3_gs.cfg} {
41        reinplace "s|/usr/share/sounds/sf2|${prefix}/share/sounds/sf2|g" ${worksrcpath}/debian/${f}
42    }
43}
44
45use_configure       no
46build               {}
47
48destroot {
49    xinstall -m 755 -d ${destroot}${prefix}/share/sounds/sf2
50    foreach f {FluidR3_GM.sf2 FluidR3_GS.sf2} {
51        xinstall -m 644 ${worksrcpath}/${f} ${destroot}${prefix}/share/sounds/sf2
52    }
53
54    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
55    foreach f {README COPYING debian/README.Debian debian/changelog debian/copyright} {
56        xinstall -m 644 ${worksrcpath}/${f} ${destroot}${prefix}/share/doc/${name}
57    }
58
59    xinstall -m 755 -d ${destroot}${prefix}/etc/timidity
60    foreach f {fluidr3_gm.cfg fluidr3_gs.cfg} {
61        xinstall -m 644 ${worksrcpath}/debian/${f} ${destroot}${prefix}/etc/timidity
62    }
63}
64
65livecheck.regex {fluid\-soundfont_(\d+(?:[.-]\d+)*)}