# -*- 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 115250 2013-12-30 08:38:30Z jmr@macports.org $

PortSystem      1.0

name            libbonoboui
version         2.24.5
revision        8
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     nomaintainer
categories      gnome
# libs are LGPL, binaries and examples are GPL
license         {LGPL GPL-2+}
platforms       darwin
description     GUI frontend to the libbonobo component of GNOME 2

long_description \
    Bonobo is a set of language and system independant CORBA \
    interfaces for creating reusable components and creating compound \
    documents. libbonoboui includes a Gtk+ based implementation of the \
    Bonobo interfaces, enabling developers to create reusable \
    components and applications that can be used to form more complex \
    documents.

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

checksums       md5     853be8e28aaa4ce48ba60be7d9046bf4 \
                sha1    9657e7194ef3f5782f183e021fdb4014531b6cd8 \
                rmd160  0ebf5618e1564317561b098d6774f0c75ea082f0

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

depends_lib     port:desktop-file-utils \
                port:gconf \
                port:libbonobo \
                port:libffi \
                port:libgnome \
                port:libgnomecanvas \
                port:pangox-compat

# Don't do intltool's INTLTOOL_PERL dance
use_autoreconf  yes
autoreconf.args -fvi

configure.args  --without-x

configure.cflags-append \
                -Wno-format-nonliteral

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

variant x11 conflicts no_x11 {
    configure.args-append   --x-includes=${prefix}/include \
                            --x-libraries=${prefix}/lib
    configure.args-replace  --without-x --with-x
}

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

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
}

livecheck.type  gnome
