# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0

name            libgnome
version         2.32.1
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     nomaintainer
categories      gnome
platforms       darwin
license         LGPL-2+
description     This is the non-gui part of the library formerly known as gnome-libs.

long_description \
    ${description}

homepage        https://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2       yes

checksums       sha256  b2c63916866485793b87398266dd7778548c1734923c272a94d84ee011b6f7a4 \
                rmd160  e425910756737363ef910e9d2d5cd3820d009441

depends_build   port:pkgconfig \
                port:intltool \
                port:gnome-common \
                port:gtk-doc \
                port:autoconf \
                port:autoconf-archive \
                port:automake \
                port:libtool

depends_lib \
    port:libbonobo \
    port:libcanberra \
    port:gnome-vfs \
    port:libiconv \
    port:gettext

patchfiles      patch-libgnome-Makefile.am.diff \
                patch-libgnome-gnome-config.h.diff

# reconfigure using upstream autogen.sh for intltool 0.51 compatibility

post-patch {
    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
}

configure.cmd   ./autogen.sh

configure.args  --disable-schemas-install

post-activate {
    system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
        gconftool-2 --makefile-install-rule \
            ${prefix}/etc/gconf/schemas/*.schemas"
}

livecheck.type  gnome
