Ticket #29428: Portfile

File Portfile, 2.0 KB (added by humem (humem), 14 years ago)
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# $Id$
3
4PortSystem          1.0
5
6name                ssrc
7version             1.30
8categories          audio
9platforms           darwin
10maintainers         nomaintainer
11license             LGPL-2.1
12
13description         A fast and high quality sampling rate converter SSRC
14
15long_description    SSRC converts sampling rate of PCM wav file. Also, this program has \
16                    a function to apply dither to its output and extend perceived dynamic range. \
17                    Sampling rates of 44.1kHz and 48kHz are populary used, but ratio of these \
18                    two frequency is 147:160, and it's not a small numbers. Therefore, sampling \
19                    rate conversion without degradation of sound quality requires filter with very \
20                    large order, and it's difficult to achive both quality and speed. This program \
21                    achived relatively fast and high quality with two different kinds of filters \
22                    combined skillfully.
23
24homepage            http://shibatch.sourceforge.net/
25master_sites        ${homepage}download
26
27extract.suffix      .tgz
28
29checksums           sha1    0bd83caf06b34a9aae6c0e576aadcb20e62e82e0 \
30                    rmd160  ffc0e0e8d7edfd8e3761e8a7523ede9bb496b3ca
31
32use_configure       no
33
34variant universal {}
35if {[variant_isset universal]} {
36    set archflags ${configure.universal_cflags}
37} else {
38    set archflags ${configure.cc_archflags}
39}
40
41build.args          CC=${configure.cc} CFLAGS="${configure.cflags} ${archflags}"
42
43destroot {
44    xinstall -m 755 -W ${worksrcpath} \
45        ssrc \
46        ssrc_hp \
47        ${destroot}${prefix}/bin
48    xinstall -d ${destroot}${prefix}/share/doc/${name}
49    xinstall -m 644 -W ${worksrcpath} \
50        LGPL.txt \
51        history.txt \
52        ssrc.txt \
53        ${destroot}${prefix}/share/doc/${name}
54}
55
56livecheck.type      regex
57livecheck.regex     ${name}-(\[0-9.\]+)\\.