aboutsummaryrefslogtreecommitdiff
path: root/port-files/FreeBSD/deskutils/lumina-pdf/Makefile
blob: 0958e56438043d96c55f9ac2ee82aef982559aeb (plain)
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
# $FreeBSD$

PORTNAME=	lumina-pdf
PORTVERSION=	%%CHGVERSION%%
PORTREVISION=	%%CHGREVISION%%
CATEGORIES=	deskutils

MAINTAINER=	jt@ixsystems.com
COMMENT=	PDF viewer from the Lumina Desktop

LICENSE=	BSD3CLAUSE

CONFLICTS_INSTALL=	lumina-1.2.*

OPTIONS_DEFINE=	I18N

OPTIONS_SINGLE=	RENDERER
OPTIONS_SINGLE_RENDERER=	POPPLER MUPDF

OPTIONS_SUB=		yes
OPTIONS_DEFAULT=	I18N MUPDF

I18N_DESC= Install localization files
POPPLER_DESC=	Use Poppler-qt5 backend renderer
MUPDF_DESC=		Use MuPDF backend renderer

.include <bsd.port.options.mk>

MAKE_JOBS_UNSAFE=yes

USES=		qmake qt:5
USE_QT=		core gui widgets network svg multimedia \
		buildtools_build x11extras concurrent printsupport
USE_GITHUB=	yes
GH_ACCOUNT=	trueos
GH_PROJECT=	lumina
GH_TAGNAME=	%%GHTAG%%
WRKSRC_SUBDIR=	src-qt5/desktop-utils/${PORTNAME}

POPPLER_LIB_DEPENDS=		libpoppler-qt5.so:graphics/poppler-qt5
POPPLER_QMAKE_ON=		USE_POPPLER=true
MUPDF_LIB_DEPENDS=		libmupdf.so:graphics/mupdf
MUPDF_QMAKE_ON=			USE_MUPDF=true
I18N_QMAKE_ON=		CONFIG+=WITH_I18N
I18N_USE=			USE_QT+=linguist_build

.include <bsd.port.mk>
bgstack15