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