# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup compiler_blacklist_versions 1.0
# Please keep the glib2 and glib2-devel ports as similar as possible.
set branch [join [lrange [split ${version} .] 0 1] .]
maintainers {ryandesign @ryandesign} openmaintainer
homepage https://wiki.gnome.org/Projects/GLib
distname ${my_name}-${version}
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}/
checksums rmd160 b84262ede75903997052a2cf541dd696d49f0815 \
sha256 13fc009e68ca490f986f21a7d5d3a429486fb28a1f4e06298c9ac976067518f5 \
# ${prefix}/include/glib-2.0/glib/gi18n.h requires -I${prefix}/include to find libintl.h
# See https://trac.macports.org/changeset/27148
# patch-configure-switch-for-gappinfo-impl-mp.diff: understand comments inline!
# => https://trac.macports.org/ticket/53911
# => https://bugzilla.gnome.org/show_bug.cgi?id=781548
patchfiles patch-configure.diff \
patch-glib-2.0.pc.in.diff \
patch-glib-gmain.c.diff \
patch-glib_gunicollate.c.diff \
patch-gio_xdgmime_xdgmime.c.diff \
patch-gio_gdbusprivate.c.diff \
patch-get-launchd-dbus-session-address.diff \
patch-gmodule-gmodule-dl.c.diff \
patch-configure-switch-for-gappinfo-impl-mp.diff
depends_build bin:xmllint:libxml2
depends_lib port:gettext \
if {[vercmp ${macosx_deployment_target} 10.9] < 0} {
# GLib-CRITICAL **: attempting to free a locked GVariant instance. This should never happen.
compiler.blacklist-append {clang < 318}
# gcocoanotificationbackend.c:115:52: error: array subscript is not an integer