# Created by: Dierk Sacher <dierk@blaxxtarz.de>
# $FreeBSD: tags/RELEASE_11_1_0/multimedia/ffmpegthumbnailer/Makefile 441309 2017-05-20 12:02:07Z linimon $

PORTNAME=	ffmpegthumbnailer
PORTVERSION=	2.2.0
PORTREVISION=	2
CATEGORIES=	multimedia graphics

MAINTAINER=	clutton@zoho.com
COMMENT=	Lightweight video thumbnailer that can be used by file managers

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libpng.so:graphics/png \
		libswscale.so:multimedia/ffmpeg

BROKEN_powerpc64=	fails to compile: moviedecoder.cpp: error: 'to_string' is not a member of 'std'

USE_GITHUB=	yes
GH_ACCOUNT=	dirkvdb

USES=		cmake:outsource compiler:c++11-lib jpeg localbase pathfix pkgconfig
USE_GNOME=	glib20
USE_LDCONFIG=	yes

CMAKE_ARGS=	-DENABLE_GIO=ON

OPTIONS_DEFINE=	THUMBNAILER
THUMBNAILER_DESC=Register as a system thumbnailer
OPTIONS_SUB=	yes
OPTIONS_DEFAULT=THUMBNAILER

THUMBNAILER_CMAKE_ON=	-DENABLE_THUMBNAILER=ON

.include <bsd.port.mk>
