# -*- 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 107719 2013-07-04 16:42:33Z jeremyhu@macports.org $

PortSystem      1.0

name            libgnomeui
version         2.24.5
revision        9
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     nomaintainer
categories      gnome
license         LGPL
platforms       darwin
description     Libraries for the GNOME GUI, a GNU desktop environment.

long_description \
    ${description}

homepage        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2       yes

checksums       md5     d4bb506b1916015323928faab5aa708b \
                sha1    a89d88416403b20a958bd19257522cf7a75ea344 \
                rmd160  447e0968221ba28844dbba5cc4ef260e637e9b9d

depends_build   port:pkgconfig \
                port:intltool \
                port:gtk-doc \
                port:gnome-common

depends_lib     port:gconf \
                port:libbonoboui \
                port:libffi \
                port:libgnome-keyring \
                port:libpng

patchfiles      patch-configure.in.diff

use_autoreconf  yes
autoreconf.args -fvi

configure.args  --without-x

# Legacy no_x11 variant to be removed after June 2014.
variant no_x11 conflicts x11 description {Legacy compatibility variant} {}

variant x11 conflicts no_x11 {
    patchfiles-delete       patch-configure.in.diff
    depends_build-delete    gnome-common
    depends_lib-append      port:xorg-libsm \
                            port:xorg-libice \
                            port:xorg-libX11
    use_autoreconf          no
    configure.args-append   --x-includes=${prefix}/include \
                            --x-libraries=${prefix}/lib
    configure.args-delete   --without-x
}

if {[variant_isset no_x11]} {
    default_variants -x11
} else {
    default_variants +x11
}

livecheck.type  gnome
