View | Details | Raw Unified | Return to bug 279882 | Differences between
and this patch

Collapse All | Expand All

(-)b/print/qpdfview/Makefile (-14 / +36 lines)
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}-0.5
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 \
22
21
		printsupport sql sql-sqlite3 svg widgets xml buildtools:build
23
.if ${FLAVOR} == "qt5"
24
PKGNAMESUFFIX=		-qt5
25
USES+=			compiler:c++17-lang qt:5
26
USE_GL=			gl
27
USE_QT=			buildtools:build concurrent core dbus gui \
28
			linguisttools printsupport sql svg widgets xml
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
22
36
23
QMAKE_SOURCE_PATH=	${PORTNAME}.pro
37
QMAKE_SOURCE_PATH=	${PORTNAME}.pro
24
38
25
DATADIR=	${PREFIX}/share/${PORTNAME}
39
DATADIR=		${PREFIX}/share/${PORTNAME}
26
40
27
OPTIONS_DEFINE=		CUPS DJVU PS
41
OPTIONS_DEFINE=		CUPS DJVU PS SYNCTEX
28
OPTIONS_DEFAULT=	CUPS DJVU PS
42
OPTIONS_DEFAULT=	CUPS DJVU PS
29
OPTIONS_SUB=		yes
43
OPTIONS_SUB=		yes
30
44
Lines 34-47 CUPS_QMAKE_OFF= "CONFIG+=without_cups" Link Here
34
DJVU_LIB_DEPENDS=	libdjvulibre.so:graphics/djvulibre
48
DJVU_LIB_DEPENDS=	libdjvulibre.so:graphics/djvulibre
35
DJVU_QMAKE_OFF=		"CONFIG+=without_djvu"
49
DJVU_QMAKE_OFF=		"CONFIG+=without_djvu"
36
50
37
PS_LIB_DEPENDS=	libspectre.so:print/libspectre
51
PS_LIB_DEPENDS=		libspectre.so:print/libspectre
38
PS_QMAKE_OFF=	"CONFIG+=without_ps"
52
PS_QMAKE_OFF=		"CONFIG+=without_ps"
39
53
40
.include <bsd.port.options.mk>
54
SYNCTEX_DESC=		SyncTeX support
55
SYNCTEX_LIB_DEPENDS=	libsynctex.so:devel/tex-synctex
56
SYNCTEX_QMAKE_OFF=	"CONFIG+=without_synctex"
41
57
42
pre-configure:
58
post-patch:
43
	${REINPLACE_CMD} -e 's#/usr#${PREFIX}#g' \
59
.if ${FLAVOR} == "qt5"
60
	${REINPLACE_CMD} -e '/CONFIG/s/c\+\+11/c++17/' \
44
		${WRKSRC}/${PORTNAME}.pri
61
		${WRKSRC}/${PORTNAME}.pri
62
.endif
63
	${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
64
		${WRKSRC}/${PORTNAME}.pri
65
66
pre-configure:
45
	cd ${WRKSRC} && ${LRELEASE} ${PORTNAME}.pro
67
	cd ${WRKSRC} && ${LRELEASE} ${PORTNAME}.pro
46
68
47
.include <bsd.port.mk>
69
.include <bsd.port.mk>
(-)a/print/qpdfview/files/patch-qpdfview.pri (-8 lines)
Removed Link Here
1
--- qpdfview.pri.orig	2024-01-02 16:01:53 UTC
2
+++ qpdfview.pri
3
@@ -12,4 +12,4 @@ os2:include(qpdfview_os2.pri)
4
 win32:include(qpdfview_win32.pri)
5
 os2:include(qpdfview_os2.pri)
6
 
7
-CONFIG += c++11
8
+CONFIG += c++17
(-)a/print/qpdfview/files/patch-sources_djvumodel.cpp (-10 lines)
Removed Link Here
1
--- sources/djvumodel.cpp.orig	2020-05-21 10:55:32 UTC
2
+++ sources/djvumodel.cpp
3
@@ -29,6 +29,7 @@ along with qpdfview.  If not, see <http://www.gnu.org/
4
 #include <cstdio>
5
 
6
 #include <QFile>
7
+#include <QPainterPath>
8
 #include <qmath.h>
9
 
10
 #if defined(Q_OS_WIN) && defined(DJVU_STATIC)
(-)a/print/qpdfview/files/patch-sources_model.h (-10 lines)
Removed Link Here
1
--- sources/model.h.orig	2020-05-21 10:55:32 UTC
2
+++ sources/model.h
3
@@ -27,6 +27,7 @@ along with qpdfview.  If not, see <http://www.gnu.org/
4
 #include <QtPlugin>
5
 #include <QWidget>
6
 #include <QVector>
7
+#include <QPainterPath>
8
 
9
 class QAbstractItemModel;
10
 class QColor;

Return to bug 279882