source: trunk/dports/audio/faust/Portfile

Last change on this file was 143934, checked in by ryandesign@…, 2 years ago

faust, faust-devel, faust2-devel: use expansion operator instead of eval

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
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: Portfile 143934 2015-12-28 04:44:34Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    faust
7conflicts               faust-devel faust2-devel
8version                 0.9.67
9revision                1
10categories              audio lang
11platforms               darwin
12maintainers             ryandesign
13license                 GPL-2
14master_sites            sourceforge:project/faudiostream
15homepage                http://faust.grame.fr/
16use_zip                 yes
17
18description             functional programming language for realtime audio
19
20long_description        Faust is a functional programming language \
21                        specifically designed for realtime audio applications \
22                        and plugins.
23
24checksums               rmd160  faba6c82eb8c1a21e8f58cdd85de4cbabd8c88d3 \
25                        sha256  a176d435035c8c7f4c5b6c7162e62d3d83143f64cc713b2f91c07e334aa21b19
26
27post-patch {
28    reinplace "s|/usr/local|${prefix}|g" \
29        ${worksrcpath}/compiler/parser/enrobage.cpp \
30        ${worksrcpath}/compiler/tlib/compatibility.cpp \
31        ${worksrcpath}/tools/scbuilder/scbuilder \
32        {*}[glob ${worksrcpath}/tools/faust2appls/faust2*]
33    fs-traverse f ${worksrcpath} {
34        switch [file rootname [file tail ${f}]] {
35            Makefile {
36                reinplace "s|/usr/local|${prefix}|g" ${f}
37                reinplace "s|/opt/local|${prefix}|g" ${f}
38            }
39        }
40    }
41}
42
43use_configure           no
44
45variant universal {}
46
47build.args-append       ARCHFLAGS="[get_canonical_archflags cxx]" \
48                        CXX="${configure.cxx} [get_canonical_archflags cxx]"
49
50post-destroot {
51    set docdir ${destroot}${prefix}/share/doc/${subport}
52    xinstall -d ${docdir}
53    xinstall -m 644 -W ${worksrcpath} \
54        COPYING \
55        README \
56        WHATSNEW \
57        ${docdir}
58}
59
60livecheck.regex         ${name}-(\[0-9a-z.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.