source: trunk/dports/devel/glib2-devel/Portfile @ 44608

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

glib2, glib2-devel, graphviz, graphviz-devel, libiconv: Remove setting of MACOSX_DEPLOYMENT_TARGET which MacPorts 1.7.0 now takes care of for us.

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