# -*- 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               cmake  1.1
PortGroup               ffmpeg 1.0
PortGroup               github 1.0

github.setup            dirkvdb ffmpegthumbnailer 2.4.1 v
github.tarball_from     archive
revision                0
categories              multimedia gnome x11
license                 GPL-2+
maintainers             {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description             Lightweight video thumbnailer that can be used by file managers to create thumbnails for video files
long_description        FFmpegthumbnailer is a lightweight video thumbnailer that can be used by file managers to create thumbnails for your video files.

checksums               rmd160  24576c84eaf3b22e459c61b7aa4037b919afce26 \
                        sha256  779ff290a2b874fc889b28aa4c89fb5d1dbc9a15ee1d09524ed346bd83a4d920 \
                        size    1369369

compiler.cxx_standard   2011

ffmpeg.version          8

depends_build-append    port:pkgconfig
depends_lib-append      path:include/turbojpeg.h:libjpeg-turbo \
                        port:libpng \
                        port:zlib

configure.args-append   -DENABLE_GIO=ON \
                        -DENABLE_STATIC=ON \
                        -DENABLE_TESTS=OFF \
                        -DENABLE_THUMBNAILER=ON

variant tests description {Enable tests} {
    configure.args-replace \
                        -DENABLE_TESTS=OFF \
                        -DENABLE_TESTS=ON

    configure.args-append \
                        -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF

    test.run            yes
}
