aboutsummaryrefslogtreecommitdiff
path: root/print/xreader/Makefile
blob: c542e2db63d00433468f81a65517989eea527eac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>

PORTNAME=	xreader
PORTVERSION=	2.8.3
PORTREVISION=	3
CATEGORIES=	print gnome

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Multi-format document reader

LICENSE=	GPLv2+

PORTSCOUT=	limit:^[0-9.]+$$	# ignore master.mint* tags

BUILD_DEPENDS=	intltool-merge:textproc/intltool \
		itstool:textproc/itstool
LIB_DEPENDS=	libxapp.so:x11/xapp

USES=		desktop-file-utils gettext-tools gnome meson pkgconfig xorg
USE_GITHUB=	yes
GH_ACCOUNT=	linuxmint
USE_LDCONFIG=	yes
USE_GNOME=	cairo gdkpixbuf2 gtk30 libxml2
USE_XORG=	ice sm x11
GLIB_SCHEMAS=	org.x.reader.gschema.xml
INSTALLS_ICONS=	yes

MATHJAX_DIR=	${LOCALBASE}/www/MathJax
MESON_ARGS=	-Dtests=false

OPTIONS_DEFINE=	DBUS DJVU DVI EPUB HELP KEYRING PDF PS T1LIB TIFF XPS
OPTIONS_DEFAULT=	DBUS DJVU HELP KEYRING PDF TIFF XPS
OPTIONS_SUB=	yes

DVI_DESC=	DVI format support
EPUB_DESC=	EPUB e-book format support
HELP_DESC=	Install help files
KEYRING_DESC=	Password-protected document support
T1LIB_DESC=	Type1 font support in DVI backend
XPS_DESC=	XPS document support

DBUS_LIB_DEPENDS=	libdbus-1.so:devel/dbus
DBUS_MESON_OFF=		-Denable_dbus=false

DJVU_LIB_DEPENDS=	libdjvulibre.so:graphics/djvulibre
DJVU_MESON_ON=		-Ddjvu=true

DVI_LIB_DEPENDS=	libspectre.so:print/libspectre
DVI_USE=		tex=kpathsea
DVI_MESON_ON=		-Ddvi=true

EPUB_BUILD_DEPENDS=	${MATHJAX_DIR}/MathJax.js:www/mathjax
EPUB_LIB_DEPENDS=	libwebkit2gtk-4.0.so:www/webkit2-gtk3
EPUB_RUN_DEPENDS=	${EPUB_BUILD_DEPENDS}
EPUB_MESON_ON=		-Dmathjax-directory=${MATHJAX_DIR}
EPUB_MESON_OFF=		-Depub=false

HELP_RUN_DEPENDS=	yelp:x11/yelp
HELP_MESON_ON=		-Dhelp_files=true

KEYRING_LIB_DEPENDS=	libsecret-1.so:security/libsecret
KEYRING_MESON_OFF=	-Dkeyring=false

PDF_LIB_DEPENDS=	libpoppler-glib.so:graphics/poppler-glib
PDF_MESON_OFF=		-Dpdf=false

PS_LIB_DEPENDS=		libspectre.so:print/libspectre
PS_MESON_OFF=		-Dps=false

T1LIB_LIB_DEPENDS=	libt1.so:devel/t1lib
T1LIB_MESON_ON=		-Dt1lib=true
T1LIB_IMPLIES=		DVI

TIFF_LIB_DEPENDS=	libtiff.so:graphics/tiff
TIFF_MESON_OFF=		-Dtiff=false

XPS_LIB_DEPENDS=	libgxps.so:graphics/libgxps
XPS_MESON_OFF=		-Dxps=false

post-patch:
	@${REINPLACE_CMD} -e '/gdk\/gdkwayland\.h/d' \
		${WRKSRC}/libdocument/ev-document-misc.h

.include <bsd.port.mk>