# -*- 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            xfce
version         4.12
revision        1
categories      xfce
platforms       any
license         public-domain
maintainers     nomaintainer
description     Xfce Desktop Environment
long_description \
Xfce is a lightweight desktop environment for unix-like operating systems. \
It aims to be fast and lightweight, while still being visually appealing and \
easy to use.
homepage        https://www.xfce.org
master_sites    http://archive.xfce.org/xfce/${version}/src/

# depends on MacPorts xfce4
depends_lib     port:libxfce4ui \
                port:gtk-xfce-engine \
                port:xfconf \
                port:xfwm4 \
                port:exo \
                port:tango-icon-theme \
                port:xfce4-panel \
                port:xfce4-appfinder \
                port:xfce4-session \
                port:xfce4-settings \
                port:xfdesktop \
                port:Thunar \
                port:tumbler

distfiles

use_configure   no
supported_archs noarch
build           { }
destroot        {
        xinstall -d ${destroot}${prefix}/share/xfce4
        file copy ${filespath}/STARTME ${destroot}${prefix}/share/xfce4/
}

notes "To start xfce put \"exec startxfce4\" in your .xinitrc"

notes-append "
If this is your first install of an alternative WM, these steps
may be helpful:
    $ mkdir ~/.xinitrc.d
    $ cat >~/.xinitrc.d/99-wm.sh
    #!/bin/sh
    exec startxfce4
    ^D
    $ chmod +x ~/.xinitrc.d/99-wm.sh
    $ open ${applications_dir}/X11.app
"


livecheck.type  none
