# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem          1.0

PortGroup           kde4   1.1
PortGroup           github 1.0

github.setup KDE alkimia 8.0.3
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                libalkimia
revision            0

categories          kde finance
maintainers         nomaintainer
description         Common Alkimia classes.
long_description    Alkimia is the infrastructure for common storage and business \
                    logic that will be used by all financial applications in KDE. \
                    The target is to share financial related information over application \
                    boundaries. The libalkimia library contains some common classes.
license             {LGPL-2.1 LGPL-3+}

checksums           rmd160  a7d4ce95f2304049d59b8cf751501fd91c598151 \
                    sha256  9146a57af99ec0e642f6430a25014f5d4ce2470dc80f0369244c9a6019a67a53 \
                    size    290463

depends_build-append port:kde-extra-cmake-modules

depends_lib-append  port:kdelibs4 \
                    port:mpir

# need Qt4 for KDE4
configure.args-append -DBUILD_QT4=1 \
                      -DLIB_INSTALL_DIR=${prefix}/lib

# darwin17 (and later?) does not export visible symbols
# https://trac.macports.org/ticket/55090
if { ${os.platform} eq "darwin" && ${os.major} >= 17 } {
    configure.cxxflags-append -D__KDE_HAVE_GCC_VISIBILITY
}
