1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name firefox |
---|
6 | categories www |
---|
7 | version 1.0.4 |
---|
8 | platforms darwin |
---|
9 | maintainers pierre@queinnec.org |
---|
10 | description Mozilla.org's popular stand-alone browser |
---|
11 | long_description \ |
---|
12 | Firefox empowers you to browse faster, more safely and more \ |
---|
13 | efficiently than with any other browser. Join more than 44 million \ |
---|
14 | others and make the switch today. Firefox imports your Favorites, \ |
---|
15 | settings and other information, so you have nothing to lose. |
---|
16 | |
---|
17 | homepage http://www.mozilla.org/products/${name}/ |
---|
18 | master_sites http://ftp.mozilla.org/pub/mozilla.org/${name}/releases/${version}/source/ |
---|
19 | distname ${name}-${version}-source |
---|
20 | checksums md5 0f5d0586750fde79ba98ecf3ee4425a7 |
---|
21 | use_bzip2 yes |
---|
22 | worksrcdir mozilla |
---|
23 | |
---|
24 | depends_lib lib:libIDL.a:libidl1 lib:libglib.1:glib1 \ |
---|
25 | port:pkgconfig bin:unzip:zip port:SharedMenusCocoa |
---|
26 | |
---|
27 | configure.env CPPFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib |
---|
28 | configure.args --enable-optimize \ |
---|
29 | --disable-debug \ |
---|
30 | --enable-shared \ |
---|
31 | --disable-tests |
---|
32 | |
---|
33 | set objdir objdir |
---|
34 | |
---|
35 | configure { |
---|
36 | # Build the .mozconfig file. |
---|
37 | |
---|
38 | set mc [open "${worksrcpath}/.mozconfig" w] |
---|
39 | puts ${mc} ". ${worksrcpath}/browser/config/mozconfig" |
---|
40 | puts ${mc} "" |
---|
41 | puts ${mc} "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${objdir}" |
---|
42 | |
---|
43 | foreach x ${configure.env} { |
---|
44 | puts ${mc} "export ${x}" |
---|
45 | } |
---|
46 | |
---|
47 | puts ${mc} "" |
---|
48 | # puts ${mc} "ac_add_options --prefix=${prefix}" |
---|
49 | foreach x ${configure.args} { |
---|
50 | puts ${mc} "ac_add_options ${x}" |
---|
51 | } |
---|
52 | |
---|
53 | close ${mc} |
---|
54 | } |
---|
55 | |
---|
56 | build.target build |
---|
57 | build.pre_args -f client.mk ${build.target} |
---|
58 | |
---|
59 | destroot { |
---|
60 | xinstall -m 0755 -d ${destroot}/Applications/DarwinPorts |
---|
61 | system "cp -RL ${worksrcpath}/${objdir}/dist/Firefox.app \ |
---|
62 | ${destroot}/Applications/DarwinPorts" |
---|
63 | } |
---|