1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name thunderbird |
---|
6 | categories mail |
---|
7 | version 1.0.6 |
---|
8 | platforms darwin |
---|
9 | maintainers pierre@queinnec.org |
---|
10 | description Mozilla.org's popular stand-alone mail application |
---|
11 | long_description \ |
---|
12 | Mozilla Thunderbird makes e-mailing safer, faster and easier than \ |
---|
13 | ever before with the industry's best implementations of features \ |
---|
14 | such as intelligent spam filters, a built-in spell checker, \ |
---|
15 | extension support and much more. |
---|
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 a0ddcc8bd5ee2c9be724b6963ad27111 |
---|
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=-O2 \ |
---|
29 | --disable-debug |
---|
30 | |
---|
31 | set objdir objdir |
---|
32 | |
---|
33 | configure { |
---|
34 | # Build the .mozconfig file. |
---|
35 | |
---|
36 | set mc [open "${worksrcpath}/.mozconfig" w] |
---|
37 | puts ${mc} ". ${worksrcpath}/mail/config/mozconfig" |
---|
38 | puts ${mc} "" |
---|
39 | puts ${mc} "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${objdir}" |
---|
40 | |
---|
41 | foreach x ${configure.env} { |
---|
42 | puts ${mc} "export ${x}" |
---|
43 | } |
---|
44 | |
---|
45 | puts ${mc} "" |
---|
46 | # puts ${mc} "ac_add_options --prefix=${prefix}" |
---|
47 | foreach x ${configure.args} { |
---|
48 | puts ${mc} "ac_add_options ${x}" |
---|
49 | } |
---|
50 | |
---|
51 | close ${mc} |
---|
52 | } |
---|
53 | |
---|
54 | build.target build_all |
---|
55 | build.pre_args -f client.mk ${build.target} |
---|
56 | |
---|
57 | destroot { |
---|
58 | xinstall -m 0755 -d ${destroot}/Applications/DarwinPorts |
---|
59 | system "cp -RL ${worksrcpath}/${objdir}/dist/Thunderbird.app \ |
---|
60 | ${destroot}/Applications/DarwinPorts" |
---|
61 | } |
---|