# -*- 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
PortGroup       active_variants 1.1
PortGroup       gobject_introspection 1.0

name            libwnck
version         2.30.7
revision        6
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     nomaintainer
categories      gnome
platforms       darwin
license         LGPL-2+
description     Library used for writing pagers and taskslists.

long_description \
    libwnck is a Window Navigator Construction Kit, i.e. a library \
    to use for writing pagers and taskslists and stuff.  It is \
    needed for the GNOME 2.0 desktop.

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

checksums       sha256  8be84d5333f0ade0e61af9f4cbf7685cb7cce2aa0ee32f53bac32107a81fe194

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

depends_lib     port:startup-notification \
                path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                port:xorg-libXres

require_active_variants gtk2 x11

gobject_introspection yes

# 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  --x-includes=${prefix}/include \
                --x-libraries=${prefix}/lib \
                --disable-maintainer-mode \
                --disable-silent-rules

livecheck.type  gnome
livecheck.regex {LATEST-IS-(2\.\d*[02468](?:\.\d+)*)}
