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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           gobject_introspection 1.0

github.setup        hughsie appstream-glib 0_6_4 appstream_glib_
version             [string map {_ .} ${version}]
license             LGPL-2+
categories          devel
maintainers         devans openmaintainer
platforms           darwin
homepage            https://people.freedesktop.org/~hughsient/appdata/

description         This library provides objects and helper methods to help \
                    reading and writing AppStream metadata.

long_description    ${description}

checksums           rmd160  d26ad52bf679a1e734c543a548a68e761718cf19 \
                    sha256  700cda06f11b6381f04e171f06a47ff73109bb992fb625b72004fc8ba3a983c0

depends_build       port:pkgconfig \
                    port:gtk-doc \
                    port:autoconf \
                    port:autoconf-archive \
                    port:automake \
                    port:libtool

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:libarchive \
                    port:libsoup \
                    port:libyaml \
                    port:gcab \
                    port:gtk3 \
                    port:gdk-pixbuf2 \
                    port:sqlite3 \
                    port:freetype \
                    port:json-glib

patchfiles          patch-data-tests-Makefile.am.diff

gobject_introspection yes

configure.cmd       ./autogen.sh

# configure to use system libuuid

configure.env-append \
                    UUID_CFLAGS=-I/usr/include/uuid \
                    UUID_LIBS=' '

configure.args      --with-xml-catalog=${prefix}/etc/xml/catalog \
                    --disable-rpm \
                    --disable-silent-rules