# $Id: Portfile 23764 2007-04-09 04:51:25Z mij@macports.org $ PortSystem 1.0 name glib2 version 2.12.11 categories devel maintainers nomaintainer@macports.org description Library with data structure functions and other constructs homepage http://www.gtk.org/ platforms darwin long_description Glib is a library which includes support routines for \ C, such as lists, trees, hashes, memory allocation, and \ many other things. master_sites ftp://ftp.gtk.org/pub/glib/2.12 \ gnome:sources/glib/2.12 distname glib-${version} checksums md5 077a9917b673a9a0bc63f351786dde24 \ sha1 02d344295ddaeafeec6bc6824b71e12bbf1b0394 \ rmd160 8680d27e630643e6653d88537907d06e3ba6e91a use_bzip2 yes patchfiles patch-glib-2.0.pc.in patch-glib__gutils.c depends_build port:pkgconfig depends_lib port:gettext configure.env LDFLAGS="-L${prefix}/lib -bind_at_load" \ CPPFLAGS="-I${prefix}/include" \ CFLAGS="-O3 -funroll-loops -fstrict-aliasing" configure.args --mandir=${prefix}/share/man variant puredarwin { depends_run bin:perl:perl5.8 } post-patch { reinplace "s|data_dirs = \"/usr|data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/glib/gutils.c reinplace "s|path = \"/bin|path = \"${prefix}/bin:/bin|g" ${worksrcpath}/glib/gutils.c ${worksrcpath}/glib/gspawn.c } post-destroot { file delete ${destroot}${prefix}/lib/charset.alias } platform darwin 6 { depends_lib-append lib:libdl:dlcompat post-configure { reinplace "s|#define HAVE_WCHAR_T 1|#undef HAVE_WCHAR_T|" \ ${worksrcpath}/config.h } }