# -*- 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

PortSystem          1.0
PortGroup           gobject_introspection 1.0

name                gnome-online-accounts
version             3.44.0
revision            3
license             LGPL-2
set branch          [join [lrange [split ${version} .] 0 1] .]
description         Single sign-on framework for GNOME
long_description    {*}${description}
maintainers         {devans @dbevans} openmaintainer
categories          gnome
homepage            https://wiki.gnome.org/Projects/GnomeOnlineAccounts
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  af52cb4b6da4545df2b9740f42ff52c1c995af4b \
                    sha256  381d5d4106f435b6f87786aa049be784774e15996adcc02789807afc87ea7342 \
                    size    859564

depends_build       port:gettext \
                    port:gtk-doc \
                    path:bin/pkg-config:pkgconfig \
                    path:bin/vala:vala

depends_lib         port:gcr \
                    path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
                    port:gettext-runtime \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:json-glib \
                    port:kerberos5 \
                    port:libsecret \
                    port:libsoup-2.4 \
                    port:libxml2 \
                    port:rest \
                    path:lib/pkgconfig/webkit2gtk-4.0.pc:webkit2-gtk

license_noconflict  vala

gobject_introspection yes

compiler.cxx_standard 2011

patchfiles          gettext-1.0.patch \
                    libxml2-2.12.patch \
                    patch-src-goaidentity-Makefile.am.diff

use_parallel_build no

use_autoreconf      yes
autoreconf.args     -fvi

configure.cppflags-append \
                    -DBUILDING_GTK__

configure.args      --enable-compile-warnings=no \
                    --enable-gtk-doc \
                    --disable-media-server \
                    --enable-exchange \
                    --enable-inspector \
                    --enable-facebook \
                    --enable-flickr \
                    --enable-foursquare \
                    --enable-google \
                    --enable-imap-smtp \
                    --enable-lastfm \
                    --enable-kerberos \
                    --enable-owncloud \
                    --enable-windows-live \
                    --disable-maintainer-mode \
                    --disable-silent-rules

livecheck.type      gnome
