Update print/qpdfview to version 0.4.18_33
[dports.git] / print / qpdfview / Makefile
1 PORTNAME=       qpdfview
2 DISTVERSION=    0.4.18
3 PORTREVISION=   33
4 CATEGORIES=     print
5 MASTER_SITES=   https://launchpadlibrarian.net/294276875/ \
6                 https://launchpad.net/${PORTNAME}/trunk/${DISTVERSION}/+download/
7
8 MAINTAINER=     salvadore@FreeBSD.org
9 COMMENT=        Tabbed DjVu/PDF/PS document viewer
10 WWW=            https://launchpad.net/qpdfview
11
12 LICENSE=        GPLv2+
13 LICENSE_FILE=   ${WRKSRC}/COPYING
14
15 LIB_DEPENDS=    libpoppler-qt5.so:graphics/poppler-qt5
16
17 USES=           compiler:c++11-lang desktop-file-utils gl pkgconfig qmake qt:5
18 USE_GL=         gl
19 USE_LDCONFIG=   yes
20 USE_QT=         concurrent core dbus gui imageformats linguisttools \
21                 printsupport sql sql-sqlite3 svg widgets xml buildtools:build
22
23 QMAKE_SOURCE_PATH=      ${PORTNAME}.pro
24
25 DATADIR=        ${PREFIX}/share/${PORTNAME}
26
27 OPTIONS_DEFINE=         CUPS DJVU PS
28 OPTIONS_DEFAULT=        CUPS DJVU PS
29 OPTIONS_SUB=            yes
30
31 CUPS_LIB_DEPENDS=       libcups.so:print/cups
32 CUPS_QMAKE_OFF=         "CONFIG+=without_cups"
33
34 DJVU_LIB_DEPENDS=       libdjvulibre.so:graphics/djvulibre
35 DJVU_QMAKE_OFF=         "CONFIG+=without_djvu"
36
37 PS_LIB_DEPENDS= libspectre.so:print/libspectre
38 PS_QMAKE_OFF=   "CONFIG+=without_ps"
39
40 .include <bsd.port.options.mk>
41
42 pre-configure:
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
46
47 .include <bsd.port.mk>