# -*- 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
PortGroup           kde4 1.1
PortGroup           muniversal 1.0

name                libkdcraw
version             4.14.3
revision            8
categories          kde kde4
license             GPL-2+ LGPL-2+
maintainers         nomaintainer
description         LibKDcraw is a C++ interface around LibRaw library \
                    used to decode RAW picture files
long_description    {*}${description}. This library is used by kipi-plugins, \
                    digiKam and others kipi host programs.
homepage            https://www.kde.org
master_sites        kde:stable/${version}/src/
use_xz              yes
distname            libkdcraw-${version}
checksums           rmd160  28d68f4ebcecaa8658c2d3838ab3c71ff1d9f50b \
                    sha256  78c851dba252224bf30012d2f6a79f3c846103b7ce6770d939ac2b8530cf4a4f \
                    size    100176

# Binaries do not link to openssl, nor use the ssl backend of kdelibs4
license_noconflict  openssl

# https://bugs.gentoo.org/659904
# https://bugs.gentoo.org/887355
patchfiles-append   patch-libraw.diff

# libraw_alloc.h: error: exception handling disabled, use -fexceptions to enable
# Cannot be done via passing the flag from portfile, since Qt adds conflicting flags.
patchfiles-append   patch-CMakeLists.diff

depends_lib-append  port:kdelibs4 \
                    port:libraw

livecheck.url       ${kde4.mirror}
livecheck.regex     (\\d+(\\.\\d+)+)
