Ticket #4083: Portfile

File Portfile, 1.8 KB (added by pierre@…, 19 years ago)

This is the Portfile for Thunderbird-1.0.6

Line 
1# $Id: $
2
3PortSystem          1.0
4
5name                thunderbird
6categories          mail
7version             1.0.6
8platforms           darwin
9maintainers         pierre@queinnec.org
10description         Mozilla.org's popular stand-alone mail application
11long_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
17homepage            http://www.mozilla.org/products/${name}/
18master_sites        http://ftp.mozilla.org/pub/mozilla.org/${name}/releases/${version}/source/
19distname            ${name}-${version}-source
20checksums           md5 a0ddcc8bd5ee2c9be724b6963ad27111
21use_bzip2           yes
22worksrcdir          mozilla
23
24depends_lib         lib:libIDL.a:libidl1 lib:libglib.1:glib1 \
25                    port:pkgconfig bin:unzip:zip port:SharedMenusCocoa
26
27configure.env       CPPFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
28configure.args      --enable-optimize=-O2 \
29                    --disable-debug
30
31set objdir          objdir
32
33configure {
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
54build.target        build_all
55build.pre_args      -f client.mk ${build.target}
56
57destroot {
58    xinstall -m 0755 -d ${destroot}/Applications/DarwinPorts
59    system "cp -RL ${worksrcpath}/${objdir}/dist/Thunderbird.app \
60         ${destroot}/Applications/DarwinPorts"
61}