# -*- 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
# $Id: Portfile 87705 2011-12-01 22:34:36Z devans@macports.org $

PortSystem      1.0

name            libwnck
version         2.30.7
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        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/
use_xz          yes

checksums       sha256  8be84d5333f0ade0e61af9f4cbf7685cb7cce2aa0ee32f53bac32107a81fe194

depends_build   port:pkgconfig \
                port:intltool \
                port:gnome-doc-utils

depends_lib     port:startup-notification \
                port:gtk2 \
                port:xorg-libXres

pre-fetch {
    if {![file exists $prefix/lib/libgdk-x11-2.0.dylib]} {
        ui_error "gtk2 must be installed with +x11 variant enabled."
        error "gtk2 must be installed with +x11 variant."
    }
}

configure.args  --x-includes=${prefix}/include \
                --x-libraries=${prefix}/lib \
                --enable-introspection=no \
                --disable-silent-rules

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
