# -*- 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 faust-devel conflicts faust faust2-devel version 0.9.73-20160426 git.branch 4941ac4e91fac5f65ac663a2cffee1fcda759d85 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. fetch.type git git.url git://git.code.sf.net/p/faudiostream/code depends_build port:pkgconfig depends_lib port:libmicrohttpd \ port:libsndfile \ 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