# -*- 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
github.setup grame-cncm faust 2.5.21
github.tarball_from releases
maintainers {ryandesign @ryandesign} {gmail.com:aggraef @agraef}
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 \
checksums rmd160 6a356de1a359fdc93f5d93405606a69bd3d83ccb \
sha256 6de2214316f9137cabf95bf075a599963cfe5305ab83d944e869bec417956f2f \
if {${os.platform} eq "darwin" && ${os.major} > 14} {
# clang 3.4 isn't supported in the latest macOS versions any more, go with LLVM 3.9 instead.
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:llvm-${llvm_version} \
path:lib/libssl.dylib:openssl
patchfiles patch-compiler-Makefile.unix.diff
reinplace "s|/usr/local/|/usr/./local/|g" \
${worksrcpath}/tools/faust2appls/faust2faustvst
reinplace -q "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}]] {
reinplace -q "s|/usr/local|${prefix}|g" ${f}
reinplace -q "s|/opt/local|${prefix}|g" ${f}
reinplace "s|/usr/\./local/|/usr/local/|g" \
${worksrcpath}/tools/faust2appls/faust2faustvst