# -*- 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

PortSystem 1.0

name            xfce4-session
version         4.12.1
revision        1
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      xfce
platforms       darwin
license         GPL-2+
maintainers     nomaintainer
description     Session manager for the Xfce desktop environment.
long_description ${description}
homepage        https://www.xfce.org
master_sites    http://archive.xfce.org/src/xfce/${name}/${branch}/
use_bzip2       yes

checksums       sha256  97d7f2a2d0af7f3623b68d1f04091e02913b28f9555dab8b0d26c8a1299d08fd \
                rmd160  14db09177003f4139345b4d670015d90ebf28ef6 \
                size    1289284

patchfiles      patch-sleep.diff patch-launchd.diff
use_autoconf    yes

# need config.h.in, using autoreconf fails for some reason
pre-configure   { system -W ${worksrcpath} "autoheader" }

configure.args  --with-xsession-prefix=${prefix}

depends_build   port:intltool port:xfce4-dev-tools port:pkgconfig

depends_lib     port:libxfce4util port:libxfce4ui \
                port:libwnck bin:iceauth:iceauth
