# -*- 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 Ffmpeg-based thumbnail creator for video files.
long_description ${description}
homepage https://www.kde.org
master_sites kde:stable/${version}/src/
checksums rmd160 299c0d6af4e1133e0d9d2e5675abe9410f403dea \
sha256 79f0856b370787ec598a161174e659d7c59bfc53e10601209a181168b50052f1
#Binaries do not link to openssl, nor use the ssl backend of kdelibs4
license_noconflict openssl
depends_lib-append port:kdelibs4 \
path:lib/libavcodec.dylib:ffmpeg
#The support for ffmpeg3 is kept is a variant, as it implies some
#regressions (no deinterlace).
#See https://git.reviewboard.kde.org/r/126992/ for an attempt to port the code,
#but it is based on later git code, and for Qt5.
variant ffmpeg3 description "Update code to comply with functions of ffmpeg > 2.8" {
patchfiles-append patch-deprecated.diff \
default_variants +ffmpeg3
#Deactivate hack for when kdemultimedia4 port has been fragmented into small ports
if {[file exists ${prefix}/lib/kde4/ffmpegthumbs.so]
&& ![catch {set vers [lindex [registry_active kdemultimedia4] 0]}]
&& [vercmp [lindex $vers 1] 4.9.3] < 0} {
registry_deactivate_composite kdemultimedia4 "" [list ports_nodepcheck 1]
livecheck.url ${kde4.mirror}
livecheck.regex (\\d+(\\.\\d+)+)