Ticket #3880: Portfile.2

File Portfile.2, 1.9 KB (added by pierre@…, 19 years ago)

This is the Portfile updated for firefox-1.0.6

Line 
1# $Id: $
2
3PortSystem          1.0
4
5name                firefox
6categories          www
7version             1.0.6
8platforms           darwin
9maintainers         pierre@queinnec.org
10description         Mozilla.org's popular stand-alone browser
11long_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
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 7b4c1d10d478dcb4c52fbbe3e41745d9
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 \
29                    --disable-debug \
30                    --enable-shared \
31                    --disable-tests
32
33set objdir          objdir
34
35configure {
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
56build.target        build
57build.pre_args      -f client.mk ${build.target}
58
59destroot {
60    xinstall -m 0755 -d ${destroot}/Applications/DarwinPorts
61    system "cp -RL ${worksrcpath}/${objdir}/dist/Firefox.app \
62         ${destroot}/Applications/DarwinPorts"
63}