# -*- 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                libwnck3
set gname           libwnck
version             3.24.1
revision            1
set branch          [join [lrange [split ${version} .] 0 1] .]
maintainers         nomaintainer
categories          gnome
platforms           darwin
license             LGPL-2+
description         Library to manage X windows and workspaces (via pagers, tasklists, etc.)

long_description    libwnck is an X11 Window Navigator Construction Kit, i.e. a library \
                    to use for writing pagers and taskslists and stuff. It is not supported \
                    in the GNOME-3 devel platform but may be used by developers of open source \
                    applications.

homepage            https://www.gnome.org/
master_sites        gnome:sources/${gname}/${branch}/

use_xz              yes

distname            ${gname}-${version}

checksums           rmd160  462d7de4d474ded7450f5a2890ef506d56a9347b \
                    sha256  afa6dc283582ffec15c3374790bcbcb5fb422bd38356d72deeef35bf7f9a1f04

depends_build       port:pkgconfig \
                    port:gtk-doc \
                    port:autoconf \
                    port:automake \
                    port:libtool

depends_lib         port:startup-notification \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:xorg-libX11 \
                    port:xorg-libXres

require_active_variants gtk3 x11
gobject_introspection yes

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

post-destroot {
    move ${destroot}${prefix}/bin/wnck-urgency-monitor ${destroot}${prefix}/bin/wnck-urgency-monitor-3.0
    move ${destroot}${prefix}/bin/wnckprop ${destroot}${prefix}/bin/wnckprop-3.0
}

livecheck.type      gnome
livecheck.name      ${gname}
