source: trunk/dports/lang/spidermonkey/Portfile

Last change on this file was 121661, checked in by mf2k@…, 3 years ago

gauche log4erl p5-innotop proctools py-beaker py-cherrypy py-cherrypy3 py-clientform py-configobj py-cython py-daemon py-decoratortools py-elixir py-eventlet py-feedparser py-httplib2 py-ipython py-kqueue py-libmemcached py-lxml py-mako py-mechanize py-memcached py-nose py-paste py-pastescript py-py py-pyprotocols py-routes py-ruledispatch py-simplejson py-sqlalchemy py-sqlalchemy-migrate py-sqlobject py-turbocheetah py-turbogears py-turbojson py-turbokid py-twisted py-virtualenv py-werkzeug py-workerpool py-yaml spidermonkey spidermonkey185: ports abandoned by akitada. (#43692)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 121661 2014-07-03 17:50:11Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup  muniversal 1.0
6
7name                spidermonkey
8epoch               1
9version             1.7.0
10revision            6
11categories          lang
12platforms           darwin
13maintainers         nomaintainer
14license             {MPL-1.1 GPL-2+ LGPL-2.1+}
15description         JavaScript-C Engine
16long_description    ${description}
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                    http://ftp.mozilla.org/pub/mozilla.org/js/older-packages/ \
22                    ftp://ftp.mozilla.org/pub/mozilla.org/js/older-packages/
23distname            js-${version}
24checksums           md5 5571134c3863686b623ebe4e6b1f6fe6 \
25                    sha1 1a99e8e10cb6600a03ea98895583a8ed42136d1f \
26                    rmd160 6eadf1ac7c10a13b3db3d499856c9e18ddbcdfdb
27
28depends_lib         port:nspr \
29                    port:readline
30
31worksrcdir          js/src
32
33patchfiles          spidermonkey-1.5-build.patch \
34                    spidermonkey-1.5-threadsafe.diff \
35                    spidermonkey-1.5-header.diff \
36                    patch-config-Darwin.mk \
37                    patch-jsprf.c
38
39post-patch {
40    reinplace "s|__PREFIX__|${prefix}|g" \
41        ${worksrcpath}/Makefile.ref
42    reinplace "s|__USER__|${install.user}|g" \
43        ${worksrcpath}/Makefile.ref
44    reinplace "s|__GROUP__|${install.group}|g" \
45        ${worksrcpath}/Makefile.ref
46}
47
48use_configure   no
49
50use_parallel_build  no
51
52build.args          -f Makefile.ref \
53                    LIBDIR="/lib" \
54                    SO_SUFFIX=dylib \
55                    JS_THREADSAFE=1 \
56                    JS_READLINE=1
57
58if { ![variant_isset universal] } {
59    build.args-append CC='${configure.cc} -arch ${build_arch}'
60} else {
61    set merger_must_run_binaries "yes"
62    foreach arch {i386 x86_64 ppc ppc64} {
63        lappend merger_build_args(${arch}) CC='${configure.cc} -arch ${arch}'
64    }
65}
66
67variant fileobject description {add File object support} {
68    build.args-append \
69        JS_HAS_FILE_OBJECT=1
70}
71
72destroot.args       -f Makefile.ref LIBDIR="/lib" SO_SUFFIX=dylib
73
74livecheck.type      regex
75livecheck.url       http://ftp.mozilla.org/pub/mozilla.org/js/
76livecheck.regex     {js-(\d+(?:\.\d+){2,})\.}
Note: See TracBrowser for help on using the repository browser.