# -*- 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.2.2
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from     tarball
revision                1
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  a12f2c7843aa1bc9faecd52e37f4347d8f2c1059 \
                        sha256  777d27ab038f40655b90f1e9229b881d58a31f1f1b14b367f6a67beb505b0a2e \
                        size    1290064

compiler.cxx_standard   2011

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

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