6 MASTER_SITES= https://github.com/QupZilla/${PORTNAME}/releases/download/v${PORTVERSION}/
8 DISTNAME= QupZilla-${PORTVERSION}
10 MAINTAINER= matthew@reztek.cz
11 COMMENT= Web browser based on WebKit engine and Qt Framework
15 LIB_DEPENDS= libhunspell-1.3.so:textproc/hunspell
17 CONFLICTS_INSTALL= ${PORTNAME}-qt4*
19 USES= desktop-file-utils execinfo pkgconfig qmake tar:xz
20 USE_QT5= core concurrent gui network script webkit x11extras xml \
21 buildtools_build linguisttools_build \
22 imageformats_run sql-sqlite3_run
25 CONFIGURE_ENV= QUPZILLA_PREFIX=${PREFIX}/
28 PLIST_SUB= VERSION=${PORTVERSION}
30 OPTIONS_DEFINE= DBUS DEBUG GNOMEKEYRING KWALLET
35 DBUS_CONFIGURE_ENV_OFF= DISABLE_DBUS="true"
37 GNOMEKEYRING_LIB_DEPENDS= libgnome-keyring.so:security/libgnome-keyring
38 GNOMEKEYRING_CONFIGURE_ENV= GNOME_INTEGRATION="true"
40 KWALLET_USE= KDE5=wallet
41 KWALLET_CONFIGURE_ENV= KDE_INTEGRATION="true"
43 .include <bsd.port.options.mk>
45 # work around for build failure in test plugin (single source file target)
46 .if ${PORT_OPTIONS:MDEBUG}
51 @${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|g' \
52 ${WRKSRC}/tests/autotests/qztoolstest.cpp \
53 ${WRKSRC}/src/lib/plugins/qtwebkit/spellcheck/speller.cpp
54 @${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
55 ${WRKSRC}/src/install.pri \
56 ${WRKSRC}/src/defines.pri \
57 ${WRKSRC}/src/lib/plugins/plugins.cpp
59 .include <bsd.port.mk>