# -*- 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                ffmpegthumbs
version             4.14.3
revision            5
categories          kde kde4
maintainers         nomaintainer
license             GPL-2+
description         Ffmpeg-based thumbnail creator for video files.
long_description    ${description}
homepage            https://www.kde.org
platforms           darwin
master_sites        kde:stable/${version}/src/
use_xz              yes
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 \
                        patch-nodeinterlace.diff
}

default_variants    +ffmpeg3

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