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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name mozjs17 |
---|
7 | version 17.0.0 |
---|
8 | categories lang |
---|
9 | platforms darwin |
---|
10 | license MPL-2.0 |
---|
11 | maintainers gmail.org:juanrgar \ |
---|
12 | openmaintainer |
---|
13 | description JavaScript-C Engine |
---|
14 | long_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 | |
---|
18 | homepage http://www.mozilla.org/js/spidermonkey/ |
---|
19 | master_sites http://ftp.mozilla.org/pub/mozilla.org/js/ \ |
---|
20 | ftp://ftp.mozilla.org/pub/mozilla.org/js/ |
---|
21 | |
---|
22 | checksums rmd160 2fa3a891da2a7a09019f67c1555c03bcdc51e6c5 \ |
---|
23 | sha256 321e964fe9386785d3bf80870640f2fa1c683e32fe988eeb201b04471c172fba |
---|
24 | |
---|
25 | depends_build port:autoconf213 \ |
---|
26 | port:pkgconfig |
---|
27 | |
---|
28 | depends_lib port:nspr \ |
---|
29 | port:libffi |
---|
30 | |
---|
31 | distname mozjs${version} |
---|
32 | worksrcdir ${distname}/js/src |
---|
33 | |
---|
34 | use_autoconf yes |
---|
35 | autoconf.cmd autoconf213 |
---|
36 | configure.cc clang |
---|
37 | configure.cxx clang++ |
---|
38 | configure.args --with-system-nspr \ |
---|
39 | --enable-system-ffi \ |
---|
40 | --disable-readline \ |
---|
41 | --enable-threadsafe |
---|
42 | |
---|
43 | variant 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 | |
---|
49 | variant llvm-hacks description {Enable workarounds required for several LLVM instrumentations} { |
---|
50 | configure.args-append --enable-llvm-hacks |
---|
51 | } |
---|
52 | |
---|
53 | variant 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* |
---|
59 | universal_variant no |
---|
60 | |
---|
61 | # Use absolute path for install_name |
---|
62 | post-extract { |
---|
63 | reinplace "s|@executable_path|${prefix}/lib|g" ${worksrcpath}/config/rules.mk |
---|
64 | } |
---|
65 | |
---|