Ticket #52992: GeneralUser.Portfile

File GeneralUser.Portfile, 2.5 KB (added by RJVB (René Bertin), 8 years ago)

my proposal for a port providing the GeneralUser GS 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                generaluser-soundfont
6version             1.47
7categories          audio
8license             GeneralUser GS License v2.0
9maintainers         gmail.com:rjvbertin mojca openmaintainer
10
11description         SoundFont definitions for FluidSynth and compatible applications.
12long_description    ${description} Provides the GeneralUser SoundFont by S. Christian Collins (GS), \
13                    a GM and GS compatible SoundFont bank for composing, playing MIDI files, and retro gaming. \
14                    It features 259 instrument presets and 11 drum kits, all while possessing a very low memory \
15                    footprint (less than 30 MB of RAM). Due to its clever, detailed sound programming, \
16                    GeneralUser GS can sound as good or better than SoundFonts that are 2-3 times its size.
17homepage            http://www.schristiancollins.com/generaluser.php
18use_zip             yes
19master_sites        https://dl.dropboxusercontent.com/u/8126161/
20
21distname            GeneralUser_GS_${version}
22worksrcdir          "GeneralUser GS ${version}"
23
24checksums           rmd160  d1c2bf2aa5df251a18432cf8ca456e23c31faf5e \
25                    sha256  be4cf246d97f98eb059ede059be2f1bdcd9bbf3245d6c0667edaa11f3091c30d
26
27use_configure       no
28build               {}
29
30destroot {
31    xinstall -m 755 -d ${destroot}${prefix}/share/docs/${name}
32    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
33    xinstall -m 755 -d ${destroot}${prefix}/share/sounds/sf2
34    xinstall -m 644 "${worksrcpath}/GeneralUser GS v${version}.sf2" \
35                ${destroot}${prefix}/share/sounds/sf2/general_user_gs-${version}.sf2
36    foreach d {CHANGELOG.txt LICENSE.txt README.txt "instrument lists/GU1.43 Percussion Map.pdf"} {
37        xinstall -m 644 "${worksrcpath}/${d}" ${destroot}${prefix}/share/docs/${name}
38    }
39    xinstall -m 644 "${worksrcpath}/GUTest.mid" ${destroot}${prefix}/share/examples/${name}
40    foreach e [glob -nocomplain "${worksrcpath}/demo MIDIs/*"] {
41        xinstall -m 644 "${e}" ${destroot}${prefix}/share/examples/${name}
42    }
43}
44
45# the ${homepage} and ${master_sites} pages don't support livecheck, so peek at
46# on Arch Linux's PKGBUILD file to get "timely-enough" update notifications.
47livecheck.url   https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=soundfont-generaluser
48livecheck.type  regex
49livecheck.regex pkgver\=(\\d+(\\.\\d+)+)