aboutsummaryrefslogtreecommitdiff
path: root/port-files/FreeBSD
diff options
context:
space:
mode:
Diffstat (limited to 'port-files/FreeBSD')
-rw-r--r--port-files/FreeBSD/deskutils/lumina-pdf/Makefile24
1 files changed, 16 insertions, 8 deletions
diff --git a/port-files/FreeBSD/deskutils/lumina-pdf/Makefile b/port-files/FreeBSD/deskutils/lumina-pdf/Makefile
index 5277be8b..77de270f 100644
--- a/port-files/FreeBSD/deskutils/lumina-pdf/Makefile
+++ b/port-files/FreeBSD/deskutils/lumina-pdf/Makefile
@@ -10,14 +10,27 @@ COMMENT= PDF viewer from the Lumina Desktop
LICENSE= BSD3CLAUSE
-LIB_DEPENDS= libpoppler-qt5.so:graphics/poppler-qt5
-
CONFLICTS_INSTALL= lumina-1.2.*
OPTIONS_DEFINE= I18N
+
+OPTIONS_SINGLE= RENDERER
+OPTIONS_SINGLE_RENDERER= POPPLER MUPDF
+
OPTIONS_SUB= yes
-OPTIONS_DEFAULT= I18N
+OPTIONS_DEFAULT= I18N MUPDF
+
I18N_DESC= Install localization files
+POPPLER_DESC= Use Poppler-qt5 backend renderer
+MUPDF_DESC= Use MuPDF backend renderer
+
+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= qt5=linguist_build
.include <bsd.port.options.mk>
@@ -32,9 +45,4 @@ GH_PROJECT= lumina
GH_TAGNAME= %%GHTAG%%
WRKSRC_SUBDIR= src-qt5/desktop-utils/${PORTNAME}
-.if${PORT_OPTIONS:MI18N}
-USE_QT5+= linguist_build
-QMAKE_ARGS+=CONFIG+=WITH_I18N
-.endif
-
.include <bsd.port.mk>
bgstack15