1PORTNAME=	tumbler
2PORTVERSION=	4.20.1
3PORTREVISION=	0
4CATEGORIES=	deskutils xfce
5MASTER_SITES=	XFCE
6PKGNAMEPREFIX=	xfce4-
7DIST_SUBDIR=	xfce4
8
9MAINTAINER=	ports@MidnightBSD.org
10COMMENT=	Thumbnail service for Xfce desktop
11WWW=		https://git.xfce.org/xfce/tumbler/
12
13LICENSE=	gpl2+ lgpl+
14LICENSE_COMB=	multi
15LICENSE_FILE_gpl2+ =	${WRKSRC}/COPYING
16
17LIB_DEPENDS=	libpng16.so:graphics/png
18
19USES=		compiler:c11 gettext-tools gmake gnome libtool \
20		localbase:ldflags pathfix pkgconfig tar:bzip2 xfce
21USE_GNOME=	cairo gdkpixbuf glib20 libgsf
22USE_LDCONFIG=	yes
23USE_XFCE=	libutil
24
25GNU_CONFIGURE=	yes
26CONFIGURE_ARGS=	--disable-gtk-doc-html \
27		--enable-pixbuf-thumbnailer \
28		--enable-xdg-cache \
29		--without-html-dir
30INSTALL_TARGET=	install-strip
31
32PORTSCOUT=	limitw:1,even
33
34SUB_FILES=	pkg-message
35
36OPTIONS_DEFINE=		COVER EPUB FFMPEG FONTS GSTREAMER JPEG NLS ODF POPPLER
37OPTIONS_DEFAULT=	EPUB FONTS GSTREAMER JPEG ODF POPPLER
38OPTIONS_SUB=		yes
39
40COVER_DESC=	Open Movie Database plugin (check pkg-message)
41EPUB_DESC=	EPUB thumbnailer plugin
42FONTS_DESC=	Fonts thumbnailer plugin
43GSTREAMER_DESC=	GStreamer thumbnailer plugin
44
45COVER_LIB_DEPENDS=	libcurl.so:ftp/curl
46COVER_CONFIGURE_ENABLE=	cover-thumbnailer
47
48EPUB_LIB_DEPENDS=	libgepub-0.7.so:textproc/libgepub
49EPUB_CONFIGURE_ENABLE=	gepub-thumbnailer
50
51FFMPEG_LIB_DEPENDS=		libffmpegthumbnailer.so:multimedia/ffmpegthumbnailer
52FFMPEG_CONFIGURE_ENABLE=	ffmpeg-thumbnailer
53
54FONTS_LIB_DEPENDS=	libfreetype.so:print/freetype2
55FONTS_CONFIGURE_ENABLE=	font-thumbnailer
56
57GSTREAMER_USES=			gstreamer
58GSTREAMER_CONFIGURE_ENABLE=	gstreamer-thumbnailer
59
60JPEG_USES=		jpeg
61JPEG_CONFIGURE_ENABLE=	jpeg-thumbnailer
62
63NLS_USES=		gettext-runtime
64NLS_CONFIGURE_ENABLE=	nls
65
66ODF_USE=		GNOME=libgsf
67ODF_CONFIGURE_ENABLE=	odf-thumbnailer
68
69POPPLER_LIB_DEPENDS=		libpoppler-glib.so:graphics/poppler-glib
70POPPLER_CONFIGURE_ENABLE=	poppler-thumbnailer
71
72.include <bsd.port.mk>
73