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

# See dports/_resources/port1.0/group/kde4-1.1.tcl for more info.
PortGroup           kde4    1.1

name                libalkimia
version             4.3.2
revision            4

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 \
					bounderies. The libalkimia library contains some common classes.

platforms           darwin
license             {LGPL-2.1 LGPL-3+}

homepage            http://kde-apps.org/content/show.php/libalkimia?content=137323
master_sites        http://kde-apps.org/CONTENT/content-files/

livecheck.type      regex
livecheck.url       http://kde-apps.org/content/show.php/libalkimia?content=137323
livecheck.regex     "libalkimia.*(4\\.\\d+?(\\.\\d+))"

use_bzip2           yes
distname            ${name}-${version}

#http://kde-apps.org/CONTENT/content-files/137323-libalkimia-4.3.0.tar.bz2
distfiles           137323-${name}-${version}${extract.suffix}

checksums           md5     8d7b529c7be5f72ae1cbb02e818e9b79 \
                    sha1    a747252fe6198d44f97d73a5c6cdf8b31af31732 \
                    rmd160  33b231fea22f6e64be5bec2accd4fc4aff3636ab

depends_lib-append  port:kdelibs4

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