Ticket #40614: Portfile

File Portfile, 2.2 KB (added by juanrgar (Juan R. García Blanco), 11 years ago)

mozjs17@17.0.0 Portfile

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$
3
4PortSystem 1.0
5
6name                mozjs17
7version             17.0.0
8categories          lang
9platforms           darwin
10license             MPL-2.0
11maintainers         gmail.org:juanrgar \
12                    openmaintainer
13description         JavaScript-C Engine
14long_description    SpiderMonkey is Mozilla's JavaScript engine written in C/C++. \
15                    It is used in various Mozilla products, including Firefox, \
16                    and is available under the MPL2.
17
18homepage            http://www.mozilla.org/js/spidermonkey/
19master_sites        http://ftp.mozilla.org/pub/mozilla.org/js/ \
20                    ftp://ftp.mozilla.org/pub/mozilla.org/js/
21
22checksums           rmd160  2fa3a891da2a7a09019f67c1555c03bcdc51e6c5 \
23                    sha256  321e964fe9386785d3bf80870640f2fa1c683e32fe988eeb201b04471c172fba
24
25depends_build       port:autoconf213 \
26                    port:pkgconfig
27
28depends_lib         port:nspr \
29                    port:libffi
30
31distname            mozjs${version}
32worksrcdir          ${distname}/js/src
33
34use_autoconf        yes
35autoconf.cmd        autoconf213
36configure.cc        clang
37configure.cxx       clang++
38configure.args      --with-system-nspr \
39                    --enable-system-ffi \
40                    --disable-readline \
41                    --enable-threadsafe
42
43variant readline description {Link js shell to system readline library} {
44  depends_lib-append port:readline
45  configure.args-delete --disable-readline
46  configure.args-append --enable-readline
47}
48
49variant llvm-hacks description {Enable workarounds required for several LLVM instrumentations} {
50  configure.args-append --enable-llvm-hacks
51}
52
53variant profiling description {Set compile flags necessary for using sampling profilers (e.g. shark, perf)} {
54  configure.args-append --enable-profiling
55}
56
57# universal build not available due to the following error:
58# checking for the size of void*... configure: error: No size found for void*
59universal_variant   no
60
61# Use absolute path for install_name
62post-extract {
63  reinplace "s|@executable_path|${prefix}/lib|g" ${worksrcpath}/config/rules.mk
64}
65