source: trunk/dports/audio/faust-devel/Portfile

Last change on this file was 148205, checked in by khindenburg@…, 15 months ago

faust-devel, faust2-devel, faustlive-devel: update to recent git; maintainer #51054

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 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 148205 2016-04-30 03:49:33Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    faust-devel
7conflicts               faust faust2-devel
8version                 0.9.73-20160426
9git.branch              4941ac4e91fac5f65ac663a2cffee1fcda759d85
10categories              audio lang
11platforms               darwin
12maintainers             ryandesign gmail.com:aggraef
13license                 GPL-2
14homepage                http://faust.grame.fr/
15
16description             functional programming language for realtime audio
17
18long_description        Faust is a functional programming language \
19                        specifically designed for realtime audio applications \
20                        and plugins.
21
22fetch.type              git
23git.url                 git://git.code.sf.net/p/faudiostream/code
24
25depends_build           port:pkgconfig
26
27depends_lib             port:libmicrohttpd \
28                        port:libsndfile \
29                        path:lib/libssl.dylib:openssl
30
31post-patch {
32    reinplace "s|/usr/local/|/usr/./local/|g" \
33        ${worksrcpath}/tools/faust2appls/faust2faustvst
34    reinplace "s|/usr/local|${prefix}|g" \
35        ${worksrcpath}/compiler/parser/enrobage.cpp \
36        ${worksrcpath}/compiler/tlib/compatibility.cpp \
37        ${worksrcpath}/tools/scbuilder/scbuilder \
38        {*}[glob ${worksrcpath}/tools/faust2appls/faust2*]
39    fs-traverse f ${worksrcpath} {
40        switch [file rootname [file tail ${f}]] {
41            Makefile {
42                reinplace "s|/usr/local|${prefix}|g" ${f}
43                reinplace "s|/opt/local|${prefix}|g" ${f}
44            }
45        }
46    }
47    reinplace "s|/usr/./local/|/usr/local/|g" \
48        ${worksrcpath}/tools/faust2appls/faust2faustvst
49}
50
51use_configure           no
52
53variant universal {}
54
55build.args-append       ARCHFLAGS="[get_canonical_archflags cxx]" \
56                        CXX="${configure.cxx} [get_canonical_archflags cxx]"
57build.target            world
58
59post-destroot {
60    set docdir ${destroot}${prefix}/share/doc/${subport}
61    xinstall -d ${docdir}
62    xinstall -m 644 -W ${worksrcpath} \
63        COPYING \
64        README \
65        WHATSNEW \
66        ${docdir}
67}
68
69# fixme
70livecheck.type          none
Note: See TracBrowser for help on using the repository browser.