5 MASTER_SITES= https://launchpadlibrarian.net/294276875/ \
6 https://launchpad.net/${PORTNAME}/trunk/${DISTVERSION}/+download/
8 MAINTAINER= salvadore@FreeBSD.org
9 COMMENT= Tabbed DjVu/PDF/PS document viewer
10 WWW= https://launchpad.net/qpdfview
13 LICENSE_FILE= ${WRKSRC}/COPYING
15 LIB_DEPENDS= libpoppler-qt5.so:graphics/poppler-qt5
17 USES= compiler:c++11-lang desktop-file-utils gl pkgconfig qmake qt:5
20 USE_QT= concurrent core dbus gui imageformats linguisttools \
21 printsupport sql sql-sqlite3 svg widgets xml buildtools:build
23 QMAKE_SOURCE_PATH= ${PORTNAME}.pro
25 DATADIR= ${PREFIX}/share/${PORTNAME}
27 OPTIONS_DEFINE= CUPS DJVU PS
28 OPTIONS_DEFAULT= CUPS DJVU PS
31 CUPS_LIB_DEPENDS= libcups.so:print/cups
32 CUPS_QMAKE_OFF= "CONFIG+=without_cups"
34 DJVU_LIB_DEPENDS= libdjvulibre.so:graphics/djvulibre
35 DJVU_QMAKE_OFF= "CONFIG+=without_djvu"
37 PS_LIB_DEPENDS= libspectre.so:print/libspectre
38 PS_QMAKE_OFF= "CONFIG+=without_ps"
40 .include <bsd.port.options.mk>
43 ${REINPLACE_CMD} -e 's#/usr#${PREFIX}#g;s#${PREFIX}/share/man#${PREFIX}/man#g' \
44 ${WRKSRC}/${PORTNAME}.pri
45 cd ${WRKSRC} && ${LRELEASE} ${PORTNAME}.pro
47 .include <bsd.port.mk>