# -*- 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 # $Id: Portfile 148205 2016-04-30 03:49:33Z khindenburg@macports.org $ PortSystem 1.0 name faust2-devel conflicts faust faust-devel # When updating faust2-devel to a new version, please rebuild faustlive-devel # simultaneously by increasing its revision or updating it to a new version. version 2.0-20160426 git.branch b3c42db30145fee76d5eeac98a878e82cf3698e5 categories audio lang platforms darwin maintainers ryandesign gmail.com:aggraef license GPL-2 homepage http://faust.grame.fr/ description functional programming language for realtime audio long_description Faust is a functional programming language \ specifically designed for realtime audio applications \ and plugins. This is the Faust2 branch which offers \ additional backends for C, Java and LLVM bitcode. fetch.type git git.url git://git.code.sf.net/p/faudiostream/code set llvm_version 3.4 set llvm_prefix ${prefix}/libexec/llvm-${llvm_version} build.env PATH=${llvm_prefix}/bin:$env(PATH) depends_build port:pkgconfig depends_lib port:clang-${llvm_version} \ port:libmicrohttpd \ port:libsndfile \ port:llvm-${llvm_version} \ path:lib/libssl.dylib:openssl post-patch { reinplace "s|/usr/local/|/usr/./local/|g" \ ${worksrcpath}/tools/faust2appls/faust2faustvst reinplace "s|/usr/local|${prefix}|g" \ ${worksrcpath}/compiler/parser/enrobage.cpp \ ${worksrcpath}/compiler/tlib/compatibility.cpp \ ${worksrcpath}/tools/scbuilder/scbuilder \ {*}[glob ${worksrcpath}/tools/faust2appls/faust2*] fs-traverse f ${worksrcpath} { switch [file rootname [file tail ${f}]] { Makefile { reinplace "s|/usr/local|${prefix}|g" ${f} reinplace "s|/opt/local|${prefix}|g" ${f} } } } reinplace "s|/usr/./local/|/usr/local/|g" \ ${worksrcpath}/tools/faust2appls/faust2faustvst } use_configure no variant universal {} build.args-append ARCHFLAGS="[get_canonical_archflags cxx]" \ CXX="${configure.cxx} [get_canonical_archflags cxx]" build.target world post-destroot { set docdir ${destroot}${prefix}/share/doc/${subport} xinstall -d ${docdir} xinstall -m 644 -W ${worksrcpath} \ COPYING \ README \ WHATSNEW \ ${docdir} } # fixme livecheck.type none