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

name                libkexiv2
version             4.14.3
revision            8
categories          kde kde4
license             GPL-2+ LGPL-2+
maintainers         nomaintainer
description         Wrapper around Exiv2 for KDE.
long_description    LibKExiv2 is a wrapper around Exiv2 library to manipulate pictures metadata as \
                    EXIF, IPTC, and XMP. This Metadata interface follow Metadata Working Group Specification. \
                    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            libkexiv2-${version}

checksums           rmd160  67b9a51cd4694bcda0d5490d8e161504448d65c8 \
                    sha256  c487078cc7349768dc76f0eabd98e546762fdd3fda9da088fbfa74785daf0efd \
                    size    136292

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

set exiv_ver        0.28

depends_lib-append  port:exiv2 \
                    port:kdelibs4

patchfiles          patch-libkexiv2-kexiv2_p.h.diff \
                    patch-libkexiv2-kexiv2exif.cpp.diff \
                    patch-libkexiv2-rotationmatrix.cpp.orig.diff

# Based on: https://github.com/KDE/libkexiv2/commit/68c21bba5f73ea6abfdf031139ed085251ef660d
patchfiles-append   patch-exiv2-0.28.diff

compiler.cxx_standard   2011

# Needed to hack around a broken configure:
configure.args-append \
                    -DEXIV2_VERSION=${exiv_ver}

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