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

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

glib2: update to 2.16.4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 38011 2008-07-02 19:59:09Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    glib2
6set my_name             glib
7version                 2.16.4
8set branch              [join [lrange [split ${version} .] 0 1] .]
9categories              devel
10maintainers             ryandesign
11homepage                http://www.gtk.org/
12platforms               darwin
13distname                ${my_name}-${version}
14use_bzip2               yes
15use_parallel_build      yes
16
17description \
18    Library with data structure functions and other constructs
19
20long_description \
21    Glib is a library which includes support routines for \
22    C, such as lists, trees, hashes, memory allocation, and \
23    many other things.
24
25master_sites \
26    ftp://ftp.gtk.org/pub/${my_name}/${branch}/ \
27    gnome:sources/${my_name}/${branch}/
28
29checksums \
30    md5 2ab79b3c93258827cc6ea8ee50128e49 \
31    sha1 8d0d71a863f9db18b0c581b6382d37719ae3df50 \
32    rmd160 d154f778cde25cc6ae1418c6d296e1b2ec71be62
33
34patchfiles \
35    patch-glib-2.0.pc.in.diff \
36    patch-gutils.c.diff \
37    patch-gi18n.h.diff
38
39depends_build \
40    port:pkgconfig
41
42depends_lib \
43    port:gettext \
44    port:libiconv
45
46configure.ldflags-append \
47    -bind_at_load
48
49configure.cflags-append \
50    -funroll-loops \
51    -fstrict-aliasing
52
53configure.args \
54    --enable-static \
55    --mandir=${prefix}/share/man
56
57platform puredarwin {
58    depends_run bin:perl:perl5.8
59}
60
61post-patch {
62    reinplace "s|data_dirs = \"/usr|data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/glib/gutils.c
63    reinplace "s|path = \"/bin|path = \"${prefix}/bin:/bin|g" ${worksrcpath}/glib/gutils.c ${worksrcpath}/glib/gspawn.c
64}
65
66platform powerpc {
67    if {[variant_isset universal]} {
68        post-configure {
69            reinplace {s|^#define G_ATOMIC_POWERPC 1$|#undef G_ATOMIC_POWERPC|} ${worksrcpath}/config.h
70        }
71    }
72}
73
74post-destroot {
75    file delete ${destroot}${prefix}/lib/charset.alias
76}
77
78platform darwin 6 {
79    depends_lib-append lib:libdl:dlcompat
80    post-configure {
81        reinplace "s|#define HAVE_WCHAR_T 1|#undef HAVE_WCHAR_T|" \
82            ${worksrcpath}/config.h
83    }
84}
85
86platform darwin 9 {
87    patchfiles-append patch-glib_gutils.h.diff
88}
89
90livecheck.check         regex
91livecheck.url           http://ftp.gnome.org/pub/GNOME/sources/${my_name}/${branch}/?C=M&O=D
92livecheck.regex         ${my_name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.