# -*- 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
maintainers {nicos @NicosPavlov} openmaintainer
description Universal document viewer for KDE4.
long_description Okular is a universal document viewer based on KPDF for KDE 4. \
This means Okular works on multiple platforms, including but not \
limited to Linux, Windows, Mac OS X, *BSD, etc.
homepage http://okular.kde.org/
master_sites kde:stable/${version}/src/
distname okular-${version}
checksums rmd160 55b4b2324346c611e145c7dba018fb13e6e56307 \
sha256 e6e2125f3ea5d3d5295dfac658814e6c424af710ec330cc74192863977385c46
#parttest cannot link to okularpart on Mac, as it is a bundle (.so) file
patchfiles patch-OkularPart.diff \
patch-class-visibility-for-dynamic_cast.diff
#Binaries do not link to openssl, nor use the ssl backend of kdelibs4
license_noconflict openssl
# okular will use libkexiv2 if available
# add dependency to ensure a consistent build
depends_lib-append port:kdelibs4 \
port:poppler-qt4-mac port:libspectre \
port:djvulibre port:chmlib \
port:ebook-tools port:tiff \
port:qca port:qimageblitz \
port:freetype port:zlib \
#Okular does not handle *.dylib plugins (ticket #42603)
ln -s ${prefix}/lib/kde4/okularpart.dylib \
${destroot}${prefix}/lib/kde4/okularpart.so
livecheck.url ${kde4.mirror}
livecheck.regex (\\d+(\\.\\d+)+)