# $Id$ PortSystem 1.0 name glib2-devel set my_name glib version 2.19.2 set branch [join [lrange [split ${version} .] 0 1] .] categories devel maintainers ryandesign homepage http://www.gtk.org/ platforms darwin dist_subdir glib2 distname ${my_name}-${version} use_bzip2 yes use_parallel_build yes description \ Library with data structure functions and other constructs 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 \ gnome:sources/${my_name}/${branch}/ # ftp://ftp.gtk.org/pub/${my_name}/${branch}/ checksums \ md5 9999ed8a3dea6e33fae39cf7ffe056cf \ sha1 a39a4b15aac2c904c0f362ce0a517ec9335dfe59 \ rmd160 c0004ec597b35b940c17f25998bf39bdce52aa3f patchfiles \ patch-glib-2.0.pc.in.diff \ patch-gutils.c.diff \ patch-gi18n.h.diff \ patch-which.diff depends_build \ port:pkgconfig depends_lib \ port:gettext \ port:libiconv configure.ldflags-append \ -bind_at_load configure.cflags-append \ -funroll-loops \ -fstrict-aliasing configure.args \ --enable-static \ --mandir=${prefix}/share/man platform 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 } platform darwin { patchfiles-append \ patch-child-test.c.diff \ patch-configure.diff } platform powerpc { if {[variant_isset universal]} { post-configure { reinplace {s|^#define G_ATOMIC_POWERPC 1$|#undef G_ATOMIC_POWERPC|} ${worksrcpath}/config.h } } } test.run yes test.target check 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 } } # MACOSX_DEPLOYMENT_TARGET bits can be removed when MacPorts 1.7.0 is released platform darwin 7 { configure.env-append \ MACOSX_DEPLOYMENT_TARGET=10.3 build.env-append \ MACOSX_DEPLOYMENT_TARGET=10.3 } platform darwin 8 { configure.env-append \ MACOSX_DEPLOYMENT_TARGET=10.4 build.env-append \ MACOSX_DEPLOYMENT_TARGET=10.4 } platform darwin 9 { patchfiles-append patch-glib_gutils.h.diff } livecheck.check regex livecheck.url http://ftp.gnome.org/pub/GNOME/sources/${my_name}/${branch}/?C=M&O=D livecheck.regex ${my_name}-(\[0-9.\]+)\\.tar