source: trunk/dports/devel/glib2/Portfile @ 25012

Last change on this file since 25012 was 25012, checked in by ryandesign@…, 10 years ago

Use new configure.(ldflags|cflags)-append syntax. No longer override
LDFLAGS, CFLAGS and CPPFLAGS. This also seems to fix the +universal
variant.

And no longer use -O3. It's been there since the first version of
the port but I don't know why glib2 should be singled out for that
"optimization," if it even is one; all generated code files are
exactly the same size with either -O2 or -O3 so I'm getting rid of it.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 25012 2007-05-11 07:42:04Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                glib2
6version             2.12.12
7categories          devel
8maintainers         ryandesign@macports.org
9homepage            http://www.gtk.org/
10platforms           darwin
11distname            glib-${version}
12use_bzip2           yes
13
14description \
15        Library with data structure functions and other constructs
16
17long_description \
18        Glib is a library which includes support routines for \
19        C, such as lists, trees, hashes, memory allocation, and \
20        many other things.
21
22master_sites \
23        ftp://ftp.gtk.org/pub/glib/2.12 \
24        gnome:sources/glib/2.12
25
26checksums \
27        md5 0b3a42098243d054475ff6eb51ed2be1 \
28        sha1 527bced2e6d38169c08c8712d5e3b6ebb0dc46b5 \
29        rmd160 bab462a1e4ef3e9905a4af5b727ad4f9ca03cf02
30
31patchfiles \
32        patch-glib-2.0.pc.in \
33        patch-glib__gutils.c
34
35depends_build \
36        port:pkgconfig
37
38depends_lib \
39        port:gettext
40
41configure.ldflags-append \
42        -bind_at_load
43configure.cflags-append \
44        -funroll-loops \
45        -fstrict-aliasing
46configure.args \
47        --mandir=${prefix}/share/man
48
49variant puredarwin {
50        depends_run bin:perl:perl5.8
51}
52
53post-patch {
54        reinplace "s|data_dirs = \"/usr|data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/glib/gutils.c
55        reinplace "s|path = \"/bin|path = \"${prefix}/bin:/bin|g" ${worksrcpath}/glib/gutils.c ${worksrcpath}/glib/gspawn.c
56}
57
58post-destroot {
59        file delete ${destroot}${prefix}/lib/charset.alias
60}
61
62platform darwin 6 {
63        depends_lib-append lib:libdl:dlcompat
64        post-configure {
65                reinplace "s|#define HAVE_WCHAR_T 1|#undef HAVE_WCHAR_T|" \
66                        ${worksrcpath}/config.h
67        }
68}
Note: See TracBrowser for help on using the repository browser.