source: trunk/dports/audio/faust2-devel/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
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 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
3
4PortSystem              1.0
5
6name                    faust2-devel
7conflicts               faust faust-devel
8# When updating faust2-devel to a new version, please rebuild faustlive-devel
9# simultaneously by increasing its revision or updating it to a new version.
10version                 2.0-20150520
11git.branch              3b6e4e3ee652f5bbf63618b0527d2f091b78c3af
12categories              audio lang
13platforms               darwin
14maintainers             ryandesign gmail.com:aggraef
15license                 GPL-2
16homepage                http://faust.grame.fr/
17
18description             functional programming language for realtime audio
19
20long_description        Faust is a functional programming language \
21                        specifically designed for realtime audio applications \
22                        and plugins. This is the Faust2 branch which offers \
23                        additional backends for C, Java and LLVM bitcode.
24
25fetch.type              git
26git.url                 git://git.code.sf.net/p/faudiostream/code
27
28set llvm_version        3.4
29set llvm_prefix         ${prefix}/libexec/llvm-${llvm_version}
30build.env               PATH=${llvm_prefix}/bin:$env(PATH)
31
32depends_build           port:pkgconfig
33
34depends_lib             port:clang-${llvm_version} \
35                        port:libmicrohttpd \
36                        port:libsndfile \
37                        port:llvm-${llvm_version} \
38                        path:lib/libssl.dylib:openssl
39
40post-patch {
41    eval reinplace "s|/usr/local|${prefix}|g" \
42        ${worksrcpath}/compiler/parser/enrobage.cpp \
43        ${worksrcpath}/compiler/tlib/compatibility.cpp \
44        ${worksrcpath}/tools/scbuilder/scbuilder \
45        [glob ${worksrcpath}/tools/faust2appls/faust2*]
46    fs-traverse f ${worksrcpath} {
47        switch [file rootname [file tail ${f}]] {
48            Makefile {
49                reinplace "s|/usr/local|${prefix}|g" ${f}
50                reinplace "s|/opt/local|${prefix}|g" ${f}
51            }
52        }
53    }
54}
55
56use_configure           no
57
58variant universal {}
59
60build.args-append       ARCHFLAGS="[get_canonical_archflags cxx]" \
61                        CXX="${configure.cxx} [get_canonical_archflags cxx]"
62build.target            world
63
64post-destroot {
65    set docdir ${destroot}${prefix}/share/doc/${subport}
66    xinstall -d ${docdir}
67    xinstall -m 644 -W ${worksrcpath} \
68        COPYING \
69        README \
70        WHATSNEW \
71        ${docdir}
72}
73
74# fixme
75livecheck.type          none
Note: See TracBrowser for help on using the repository browser.