source: trunk/dports/www/mozplugger/Portfile @ 87969

Last change on this file since 87969 was 80433, checked in by jeremyhu@…, 8 years ago

mozplugger: Don't use gcc-4.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 80433 2011-07-13 01:10:51Z jeremyhu@macports.org $
3
4PortSystem      1.0
5
6name            mozplugger
7categories      www x11
8version         1.14.2
9revision        2
10platforms       darwin
11maintainers     jeremyhu openmaintainer
12description     Use popular X11 applications as plugins for firefox
13
14long_description ${description}
15
16homepage        http://mozplugger.mozdev.org/index.html
17master_sites    http://mozplugger.mozdev.org/files/
18use_bzip2       no
19
20checksums           md5     76c4e2cdf14e41b6df1d60bd1a2f249d \
21                    sha1    5a7b82a3c0d0647a674330cfb5a768bace71d6b9 \
22                    rmd160  563ef13b82745de60fdd2c6cc1e15f7fd8832982
23
24depends_lib     port:xorg-libX11
25
26post-patch {
27        reinplace "s:/mozilla/plugins:/nsplugins:g" ${worksrcpath}/Makefile
28        reinplace "s:/etc:${prefix}/etc:g" ${worksrcpath}/Makefile
29        reinplace "s:OPERA_DIR:MOZILLA_FIVE_HOME:" ${worksrcpath}/mozplugger.c
30        reinplace "s:/usr/etc:${prefix}/etc:" ${worksrcpath}/mozplugger.c
31}
32
33use_configure no
34
35if {${configure.compiler} == "gcc-4.0"} {
36        configure.compiler gcc-4.2
37}
38
39variant universal {}
40if {[variant_isset universal]} {
41        set extra_cflags "${configure.universal_cflags}"
42        set extra_ldflags "${configure.universal_ldflags}"
43} else {
44        set extra_cflags "${configure.cc_archflags}"
45        set extra_ldflags "${configure.ld_archflags}"
46}
47
48build.args \
49        prefix=${prefix} \
50        CC="${configure.cc} ${extra_cflags} -I${prefix}/include" \
51        LD="${configure.cc} ${extra_ldflags} -L${prefix}/lib" \
52        XCFLAGS="" \
53        XLDFLAGS="-flat_namespace -shared -lX11" \
54        X11=${prefix}
55
56destroot.args \
57        root=${destroot} \
58        prefix=${prefix} \
59        X11=${prefix}
Note: See TracBrowser for help on using the repository browser.