Lines 1-30
Link Here
|
1 |
PORTNAME= qpdfview |
1 |
PORTNAME= qpdfview |
2 |
DISTVERSION= 0.5.0 |
2 |
DISTVERSION= 0.5.0 |
3 |
PORTREVISION= 4 |
3 |
PORTREVISION= 5 |
4 |
CATEGORIES= print |
4 |
CATEGORIES= print |
5 |
MASTER_SITES= https://launchpad.net/${PORTNAME}/trunk/${DISTVERSION}/+download/ |
5 |
MASTER_SITES= https://launchpad.net/${PORTNAME}/trunk/${DISTVERSION}/+download/ |
6 |
DISTNAME= ${PORTNAME}-0.5 |
6 |
DISTNAME= ${PORTNAME}-${DISTVERSION:S/.0$//} |
7 |
|
7 |
|
8 |
MAINTAINER= ports@FreeBSD.org |
8 |
MAINTAINER= mew14930xvi@inbox.lv |
9 |
COMMENT= Tabbed DjVu/PDF/PS document viewer |
9 |
COMMENT= Tabbed DjVu/PDF/PS document viewer |
10 |
WWW= https://launchpad.net/qpdfview |
10 |
WWW= https://launchpad.net/qpdfview |
11 |
|
11 |
|
12 |
LICENSE= GPLv2+ |
12 |
LICENSE= GPLv2+ |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
14 |
|
14 |
|
15 |
LIB_DEPENDS= libpoppler-qt5.so:graphics/poppler-qt5 |
15 |
LIB_DEPENDS= libpoppler-${FLAVOR}.so:graphics/poppler-${FLAVOR} |
16 |
|
16 |
|
17 |
USES= compiler:c++17-lang desktop-file-utils gl pkgconfig qmake qt:5 |
17 |
FLAVORS= qt6 qt5 |
18 |
USE_GL= gl |
18 |
FLAVOR?= qt6 |
|
|
19 |
|
20 |
USES= desktop-file-utils gl pkgconfig qmake |
19 |
USE_LDCONFIG= yes |
21 |
USE_LDCONFIG= yes |
20 |
USE_QT= concurrent core dbus gui imageformats linguisttools \ |
|
|
21 |
printsupport sql sql-sqlite3 svg widgets xml buildtools:build |
22 |
|
22 |
|
23 |
QMAKE_SOURCE_PATH= ${PORTNAME}.pro |
23 |
.if ${FLAVOR} == "qt5" |
|
|
24 |
PKGNAMESUFFIX= -qt5 |
25 |
USES+= compiler:c++17-lang qt:5 |
26 |
USE_GL= gl |
27 |
USE_QT= concurrent core dbus gui linguisttools printsupport \ |
28 |
sql svg widgets xml buildtools:build |
29 |
CONFLICTS_INSTALL= ${PORTNAME} |
30 |
.else |
31 |
USES+= compiler:c++11-lang qt:6 |
32 |
USE_GL= opengl |
33 |
USE_QT= base svg tools:build |
34 |
CONFLICTS_INSTALL= ${PORTNAME}-qt5 |
35 |
.endif |
24 |
|
36 |
|
25 |
DATADIR= ${PREFIX}/share/${PORTNAME} |
37 |
QMAKE_SOURCE_PATH= ${PORTNAME}.pro |
26 |
|
38 |
|
27 |
OPTIONS_DEFINE= CUPS DJVU PS |
39 |
OPTIONS_DEFINE= CUPS DJVU PS SYNCTEX |
28 |
OPTIONS_DEFAULT= CUPS DJVU PS |
40 |
OPTIONS_DEFAULT= CUPS DJVU PS |
29 |
OPTIONS_SUB= yes |
41 |
OPTIONS_SUB= yes |
30 |
|
42 |
|
Lines 34-47
CUPS_QMAKE_OFF= "CONFIG+=without_cups"
Link Here
|
34 |
DJVU_LIB_DEPENDS= libdjvulibre.so:graphics/djvulibre |
46 |
DJVU_LIB_DEPENDS= libdjvulibre.so:graphics/djvulibre |
35 |
DJVU_QMAKE_OFF= "CONFIG+=without_djvu" |
47 |
DJVU_QMAKE_OFF= "CONFIG+=without_djvu" |
36 |
|
48 |
|
37 |
PS_LIB_DEPENDS= libspectre.so:print/libspectre |
49 |
PS_LIB_DEPENDS= libspectre.so:print/libspectre |
38 |
PS_QMAKE_OFF= "CONFIG+=without_ps" |
50 |
PS_QMAKE_OFF= "CONFIG+=without_ps" |
39 |
|
51 |
|
40 |
.include <bsd.port.options.mk> |
52 |
SYNCTEX_DESC= SyncTeX support |
|
|
53 |
SYNCTEX_LIB_DEPENDS= libsynctex.so:devel/tex-synctex |
54 |
SYNCTEX_QMAKE_OFF= "CONFIG+=without_synctex" |
41 |
|
55 |
|
42 |
pre-configure: |
56 |
post-patch: |
43 |
${REINPLACE_CMD} -e 's#/usr#${PREFIX}#g' \ |
57 |
.if ${FLAVOR} == "qt5" |
|
|
58 |
${REINPLACE_CMD} -e '/CONFIG/s/c\+\+11/c++17/' \ |
44 |
${WRKSRC}/${PORTNAME}.pri |
59 |
${WRKSRC}/${PORTNAME}.pri |
|
|
60 |
.endif |
61 |
${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \ |
62 |
${WRKSRC}/${PORTNAME}.pri |
63 |
|
64 |
pre-configure: |
45 |
cd ${WRKSRC} && ${LRELEASE} ${PORTNAME}.pro |
65 |
cd ${WRKSRC} && ${LRELEASE} ${PORTNAME}.pro |
46 |
|
66 |
|
47 |
.include <bsd.port.mk> |
67 |
.include <bsd.port.mk> |