# -*- 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
# We are not using cmake portgroup because of linking errors
# in the smokegen target/module (internal only, it's not installed at all)
#PortGroup           cmake 1.0
PortGroup           qt4 1.0

name                qore-qt4-module
version             0.1.0
categories          lang
license             LGPL-2.1
maintainers         scribus.info:petr
description         Qt4 module for Qore
long_description    Module allowing to use Qt4 toolkit from the Qore Programming Language
homepage            http://qore.org
platforms           darwin
master_sites        sourceforge:qore
use_bzip2           yes

checksums           md5     46783f7e20ec2b5546caf2b764268090 \
                    sha1    f13badcf78bccb6ba1fb68d2dbc03fc57ff3c4f7 \
                    rmd160  825b52e2a6579b0f56e7e056b28d5f448e5a4fe9

patchfiles          patch-smoke-qt-smokeconfig.xml.diff \
                    patch-smoke-qt-CMakeLists.txt.diff

depends_lib-append  port:qore

depends_build-append port:cmake

configure.cmd       cmake
configure.pre_args  -DCMAKE_INSTALL_PREFIX=${prefix}
configure.args      -DCMAKE_BUILD_TYPE=Release \
                    ${qt_cmake_defines} \
                    .