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

github.setup            dirkvdb ffmpegthumbnailer 2.3.0 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  4554ce3ba8c6be079b26aa23c28da0710f649b9a \
                        sha256  ddf561e294385f07d0bd5a28d0aab9de79b8dbaed29b576f206d58f3df79b508 \
                        size    1296565

compiler.cxx_standard   2011

set ffmpeg_ver          8

depends_build-append    port:pkgconfig
depends_lib-append      port:ffmpeg${ffmpeg_ver} \
                        path:include/turbojpeg.h:libjpeg-turbo \
                        port:libpng \
                        port:zlib

cmake.module_path       ${prefix}/libexec/ffmpeg${ffmpeg_ver}

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