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

if {${subport} eq "qjson"} {
    PortGroup       qt4 1.0
}
subport qjson-qt5 {
    PortGroup       qt5 1.0
    name            qjson-qt5
}

PortGroup           cmake 1.0
PortGroup           github 1.0

github.setup        flavio qjson 0.9.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

categories          devel
maintainers         nomaintainer
license             LGPL-2.1

description         map JSON data to QVariant objects
long_description    QJson is a qt-based library that maps JSON data to QVariant objects.

homepage            http://qjson.sourceforge.net/

checksums           rmd160  14405882a8e53bbeaf85351d4741fafffe8ce115 \
                    sha256  31d5849d9a37e39be60e8ab4a505c2647278893714cbeca8c34924c3e9377791

if {${subport} eq "qjson"} {
    configure.args-append   -DQT4_BUILD=1
}