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 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name fluid-soundfont |
---|
6 | set orig_version 3.1 |
---|
7 | set debian_version 5.1 |
---|
8 | version ${orig_version}-${debian_version} |
---|
9 | categories audio |
---|
10 | license MIT |
---|
11 | maintainers gmail.com:rjvbertin mojca openmaintainer |
---|
12 | |
---|
13 | description SoundFont definitions for FluidSynth and compatible applications. |
---|
14 | long_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 | |
---|
19 | homepage https://sourceforge.net/p/fluidsynth/wiki/SoundFont/ |
---|
20 | master_sites http://http.debian.net/debian/pool/main/f/fluid-soundfont/ |
---|
21 | |
---|
22 | distname ${name}_${orig_version} |
---|
23 | worksrcdir ${name}-${orig_version} |
---|
24 | |
---|
25 | distfiles ${distname}.orig.tar.gz |
---|
26 | set patchfile ${distname}-${debian_version}.diff.gz |
---|
27 | |
---|
28 | checksums ${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 |
---|
36 | patchfiles ${patchfile} |
---|
37 | patch.pre_args -Np1 |
---|
38 | |
---|
39 | post-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 | |
---|
45 | use_configure no |
---|
46 | build {} |
---|
47 | |
---|
48 | destroot { |
---|
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 | |
---|
65 | livecheck.regex {fluid\-soundfont_(\d+(?:[.-]\d+)*)} |
---|