source: trunk/dports/lang/spidermonkey/Portfile @ 44419

Last change on this file since 44419 was 44419, checked in by akitada@…, 11 years ago

Renamed @macports username.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 44419 2008-12-28 09:31:44Z akitada@macports.org $
3
4PortSystem 1.0
5
6name                spidermonkey
7version             1.7.0
8revision            1
9epoch               1
10categories          lang
11platforms           darwin
12maintainers         akitada openmaintainer
13description         JavaScript-C Engine
14long_description    ${description}
15
16homepage            http://www.mozilla.org/js/spidermonkey/
17master_sites        http://ftp.mozilla.org/pub/mozilla.org/js/ \
18                    ftp://ftp.mozilla.org/pub/mozilla.org/js/ \
19                    http://ftp.mozilla.org/pub/mozilla.org/js/older-packages/ \
20                    ftp://ftp.mozilla.org/pub/mozilla.org/js/older-packages/
21distname            js-${version}
22checksums           md5 5571134c3863686b623ebe4e6b1f6fe6 \
23                    sha1 1a99e8e10cb6600a03ea98895583a8ed42136d1f \
24                    rmd160 6eadf1ac7c10a13b3db3d499856c9e18ddbcdfdb
25
26depends_build       port:readline
27depends_lib         port:nspr
28worksrcdir          js/src
29
30patchfiles          spidermonkey-1.5-build.patch \
31                    spidermonkey-1.5-threadsafe.diff \
32                    spidermonkey-1.5-header.diff \
33                    patch-config-Darwin.mk
34
35post-patch {
36    reinplace "s|__PREFIX__|${prefix}|g" \
37        ${worksrcpath}/Makefile.ref
38    reinplace "s|__USER__|${install.user}|g" \
39        ${worksrcpath}/Makefile.ref
40    reinplace "s|__GROUP__|${install.group}|g" \
41        ${worksrcpath}/Makefile.ref
42}
43
44use_configure   no
45
46use_parallel_build  no
47
48build.args          -f Makefile.ref LIBDIR="/lib" SO_SUFFIX=dylib JS_THREADSAFE=1
49
50variant fileobject description {add File object support} {
51    build.args-append \
52        JS_HAS_FILE_OBJECT=1
53}
54
55post-build {
56    system "ranlib ${worksrcpath}/Darwin_OPT.OBJ/libjs.a"
57}
58
59destroot.args       -f Makefile.ref LIBDIR="/lib" SO_SUFFIX=dylib
Note: See TracBrowser for help on using the repository browser.