# -*- 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                libdbusmenu
version             16.04.0
revision            0
categories          devel
license             LGPL-2.1+ GPL-3
maintainers         nomaintainer
description         GLib and Gtk Implementation of the DBusMenu protocol
long_description    {*}${description}
homepage            https://launchpad.net/libdbusmenu
master_sites        https://launchpadlibrarian.net/243440794/
checksums           rmd160  92b9f85d2fac9b270817c8f66fd86c3b260d15cd \
                    sha256  b9cc4a2acd74509435892823607d966d424bd9ad5d0b00938f27240a1bfa878a \
                    size    760376

depends_build-append \
                    port:gettext \
                    path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \
                    port:intltool \
                    port:libtool \
                    port:libxslt \
                    path:bin/pkg-config:pkgconfig \
                    path:bin/vala:vala

depends_lib-append  path:lib/pkgconfig/cairo.pc:cairo \
                    path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
                    port:gettext-runtime \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    path:lib/pkgconfig/harfbuzz.pc:harfbuzz \
                    port:json-glib

# configure: error: conditional "HAVE_VALGRIND" was never defined.
patchfiles-append   patch-configure.diff

configure.args-append \
                    --disable-dumper \
                    --disable-gcov \
                    --disable-massivedebugging \
                    --disable-silent-rules \
                    --disable-tests \
                    --enable-introspection=yes \
                    --enable-nls \
                    --enable-vala \
                    --with-gtk=3
