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 122506 2014-07-23 12:15:30Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name faust2-devel |
---|
7 | conflicts faust faust-devel |
---|
8 | version 2.0-20141002 |
---|
9 | git.branch 57c17a039422c652f7302541918a07ca955288e0 |
---|
10 | categories audio lang |
---|
11 | platforms darwin |
---|
12 | maintainers ryandesign |
---|
13 | license GPL-2 |
---|
14 | homepage http://faust.grame.fr/ |
---|
15 | |
---|
16 | description functional programming language for realtime audio |
---|
17 | |
---|
18 | long_description Faust is a functional programming language \ |
---|
19 | specifically designed for realtime audio applications \ |
---|
20 | and plugins. This is the Faust2 branch which offers \ |
---|
21 | additional backends for C, Java and LLVM bitcode. |
---|
22 | |
---|
23 | fetch.type git |
---|
24 | git.url git://git.code.sf.net/p/faudiostream/code |
---|
25 | |
---|
26 | set llvm_version 3.4 |
---|
27 | set llvm_prefix ${prefix}/libexec/llvm-${llvm_version} |
---|
28 | build.env PATH=${llvm_prefix}/bin:$env(PATH) |
---|
29 | |
---|
30 | depends_build port:pkgconfig |
---|
31 | |
---|
32 | depends_lib port:clang-${llvm_version} \ |
---|
33 | port:llvm-${llvm_version} \ |
---|
34 | port:libmicrohttpd \ |
---|
35 | port:openssl \ |
---|
36 | port:libsndfile |
---|
37 | |
---|
38 | post-patch { |
---|
39 | eval reinplace "s|/usr/local|${prefix}|g" \ |
---|
40 | ${worksrcpath}/compiler/parser/enrobage.cpp \ |
---|
41 | ${worksrcpath}/compiler/tlib/compatibility.cpp \ |
---|
42 | ${worksrcpath}/tools/scbuilder/scbuilder \ |
---|
43 | [glob ${worksrcpath}/tools/faust2appls/faust2*] |
---|
44 | fs-traverse f ${worksrcpath} { |
---|
45 | switch [file rootname [file tail ${f}]] { |
---|
46 | Makefile { |
---|
47 | reinplace "s|/usr/local|${prefix}|g" ${f} |
---|
48 | reinplace "s|/opt/local|${prefix}|g" ${f} |
---|
49 | } |
---|
50 | } |
---|
51 | } |
---|
52 | } |
---|
53 | |
---|
54 | use_configure no |
---|
55 | |
---|
56 | variant universal {} |
---|
57 | |
---|
58 | build.args-append CXX="${configure.cxx} [get_canonical_archflags cxx]" |
---|
59 | build.target-append sound2faust httpd dynamic |
---|
60 | |
---|
61 | post-destroot { |
---|
62 | set docdir ${destroot}${prefix}/share/doc/${subport} |
---|
63 | xinstall -d ${docdir} |
---|
64 | xinstall -m 644 -W ${worksrcpath} \ |
---|
65 | COPYING \ |
---|
66 | README \ |
---|
67 | WHATSNEW \ |
---|
68 | ${docdir} |
---|
69 | } |
---|
70 | |
---|
71 | # fixme |
---|
72 | livecheck.type none |
---|
73 | |
---|
74 | use_parallel_build no |
---|