# -*- 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
# $Id: Portfile 83810 2011-09-11 11:48:33Z afb@macports.org $

PortSystem 1.0

name            xfce4-settings
version         4.6.5
revision        2
categories      xfce
platforms       darwin
license         GPL-2+
maintainers     afb
description     Settings Manager that replaces the previous xfce-mcs-manager
long_description ${description}
homepage        http://www.xfce.org/
master_sites    http://www.ca-us.xfce.org/archive/xfce-4.6.2/src/
use_bzip2       yes
checksums       md5 f988cb732913b5fbc115ad7105d2231e \
                sha1 c036cc2f3100a46b2649e678dff7c0106b219263 \
                rmd160 a8155346285921f3087795598989df287be8abb4

configure.env   INTLTOOL_PERL=${prefix}/bin/perl5.12
depends_build   port:intltool port:perl5.12 port:p5.12-xml-parser \
                port:pkgconfig
depends_lib     port:libxfcegui4 port:exo port:libwnck

platform darwin 8 {
    patchfiles-append           patch-configure.diff
    configure.env-append        PKG_CONFIG_PATH="${prefix}/lib/pkgconfig" \
        XI_VERSION="1.0.0" XI_CFLAGS="-I${prefix}/include" XI_LIBS="-L${prefix}/lib -lXi" \
        LIBX11_VERSION="6.2.0" LIBX11_CFLAGS="-I${prefix}/include" LIBX11_LIBS="-L${prefix}/lib -lX11" \
        XRANDR_VERSION="2.0.0" XRANDR_CFLAGS="-I${prefix}/include" XRANDR_LIBS="-L${prefix}/lib -lXrandr" \
        XCURSOR_VERSION="1.0.0" XCURSOR_CFLAGS="-I${prefix}/include" XCURSOR_LIBS="-L${prefix}/lib -lXcursor"
}
