source: trunk/dports/audio/faust2-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.8 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                    faust2-devel
7conflicts               faust faust-devel
8# When updating faust2-devel to a new version, please rebuild faustlive-devel
9# simultaneously by increasing its revision or updating it to a new version.
10version                 2.0-20160426
11git.branch              b3c42db30145fee76d5eeac98a878e82cf3698e5
12categories              audio lang
13platforms               darwin
14maintainers             ryandesign gmail.com:aggraef
15license                 GPL-2
16homepage                http://faust.grame.fr/
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. This is the Faust2 branch which offers \
23                        additional backends for C, Java and LLVM bitcode.
24
25fetch.type              git
26git.url                 git://git.code.sf.net/p/faudiostream/code
27
28set llvm_version        3.4
29set llvm_prefix         ${prefix}/libexec/llvm-${llvm_version}
30build.env               PATH=${llvm_prefix}/bin:$env(PATH)
31
32depends_build           port:pkgconfig
33
34depends_lib             port:clang-${llvm_version} \
35                        port:libmicrohttpd \
36                        port:libsndfile \
37                        port:llvm-${llvm_version} \
38                        path:lib/libssl.dylib:openssl
39
40post-patch {
41    reinplace "s|/usr/local/|/usr/./local/|g" \
42        ${worksrcpath}/tools/faust2appls/faust2faustvst
43    reinplace "s|/usr/local|${prefix}|g" \
44        ${worksrcpath}/compiler/parser/enrobage.cpp \
45        ${worksrcpath}/compiler/tlib/compatibility.cpp \
46        ${worksrcpath}/tools/scbuilder/scbuilder \
47        {*}[glob ${worksrcpath}/tools/faust2appls/faust2*]
48    fs-traverse f ${worksrcpath} {
49        switch [file rootname [file tail ${f}]] {
50            Makefile {
51                reinplace "s|/usr/local|${prefix}|g" ${f}
52                reinplace "s|/opt/local|${prefix}|g" ${f}
53            }
54        }
55    }
56    reinplace "s|/usr/./local/|/usr/local/|g" \
57        ${worksrcpath}/tools/faust2appls/faust2faustvst
58}
59
60use_configure           no
61
62variant universal {}
63
64build.args-append       ARCHFLAGS="[get_canonical_archflags cxx]" \
65                        CXX="${configure.cxx} [get_canonical_archflags cxx]"
66build.target            world
67
68post-destroot {
69    set docdir ${destroot}${prefix}/share/doc/${subport}
70    xinstall -d ${docdir}
71    xinstall -m 644 -W ${worksrcpath} \
72        COPYING \
73        README \
74        WHATSNEW \
75        ${docdir}
76}
77
78# fixme
79livecheck.type          none
Note: See TracBrowser for help on using the repository browser.