summaryrefslogtreecommitdiff
path: root/deskutils/vnote/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/vnote/Makefile')
-rw-r--r--deskutils/vnote/Makefile31
1 files changed, 18 insertions, 13 deletions
diff --git a/deskutils/vnote/Makefile b/deskutils/vnote/Makefile
index 3c20efdcebec..dc6c9081b6d8 100644
--- a/deskutils/vnote/Makefile
+++ b/deskutils/vnote/Makefile
@@ -1,6 +1,6 @@
PORTNAME= vnote
-PORTVERSION= 3.17.0
DISTVERSIONPREFIX= v
+DISTVERSION= 3.20.0
CATEGORIES= deskutils
MAINTAINER= danfe@FreeBSD.org
@@ -9,29 +9,34 @@ WWW= https://app.vnote.fun/en_us/
LICENSE= LGPL3
+BUILD_DEPENDS= vulkan-headers>0:graphics/vulkan-headers \
+ pkgconf>0:devel/pkgconf
LIB_DEPENDS= libhunspell-1.7.so:textproc/hunspell
-USES= compiler:c++14-lang qmake qt:5
+USES= compiler:c++17-lang cmake desktop-file-utils gl qt:6 xorg
+USE_GL= opengl
+USE_QT= 5compat base declarative imageformats pdf positioning \
+ sqldriver-sqlite:run svg webchannel webengine
+USE_XORG= ice sm x11 xcb xext
USE_LDCONFIG= yes
-USE_QT= buildtools:build core gui network printsupport sql svg \
- webchannel webengine widgets x11extras
USE_GITHUB= yes
GH_ACCOUNT= ${PORTNAME}x
GH_PROJECT= QHotkey:qhk vtextedit:vte syntax-highlighting:shl sonnet:s
-GH_TAGNAME= 18ac011:qhk 398ec0f:vte 807895f:shl 403863f:s
+GH_TAGNAME= d7b5250:qhk c8fe95e:vte 25f6871:shl 7320206:s
GH_SUBDIR= libs/QHotkey:qhk libs/vtextedit:vte \
- libs/vtextedit/src/libs/sonnet:s \
- libs/vtextedit/src/libs/syntax-highlighting:shl
+ libs/vtextedit/libs/sonnet:s \
+ libs/vtextedit/libs/syntax-highlighting:shl
+
+CMAKE_ARGS= -DCMAKE_INSTALL_DATADIR=${DATADIR}
post-patch:
- @${REINPLACE_CMD} -e 's,"hunspell\.hxx",<hunspell/hunspell.hxx>,' \
- ${WRKSRC}/libs/vtextedit/src/libs/sonnet/src/plugins/hunspell/hunspelldict.h
- @${REINPLACE_CMD} -E '/demo|tests/d' \
- ${WRKSRC}/libs/vtextedit/vtextedit.pro \
- ${WRKSRC}/vnote.pro
- @${ECHO_CMD} 'LIBS += -lhunspell-1.7' >> ${WRKSRC}/src/src.pro
+ @${REINPLACE_CMD} -E '/add_subdirectory\((demo|tests)\)/d' \
+ ${WRKSRC}/libs/vtextedit/CMakeLists.txt \
+ ${WRKSRC}/CMakeLists.txt
@${GREP} -Rl --null Q_OS_LINUX ${WRKSRC}/src | ${XARGS} -0 \
${REINPLACE_CMD} -e 's,Q_OS_LINUX,Q_OS_UNIX,'
+ @${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},' \
+ ${WRKSRC}/src/core/configmgr.cpp
.include <bsd.port.mk>