summaryrefslogtreecommitdiff
path: root/textproc/qstardict/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/qstardict/Makefile')
-rw-r--r--textproc/qstardict/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/textproc/qstardict/Makefile b/textproc/qstardict/Makefile
index 3a952813d776..a8f4eb687571 100644
--- a/textproc/qstardict/Makefile
+++ b/textproc/qstardict/Makefile
@@ -1,5 +1,5 @@
PORTNAME= qstardict
-DISTVERSION= 3.0.0
+DISTVERSION= 4.0.0
CATEGORIES= textproc
MASTER_SITES= https://qstardict.ylsoftware.com/files/
@@ -10,7 +10,10 @@ WWW= https://qstardict.ylsoftware.com/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= compiler:c++17-lang gettext gl gnome pkgconfig qmake qt:6 xorg
+LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon
+
+USES= compiler:c++17-lang gettext-runtime gl gnome pkgconfig qmake \
+ qt:6 xorg
USE_GL= opengl
USE_GNOME= glib20
USE_QT= base tools:build
@@ -18,14 +21,18 @@ USE_XORG= x11
QMAKE_ARGS= INSTALL_PREFIX=${PREFIX}
+PORTDATA= *
+PORTDOCS= *
+
OPTIONS_DEFINE= DOCS
-OPTIONS_SUB= yes
# Path to dictionaries installed by stardict-* ports
-DICPATH= ${LOCALBASE}/share/stardict/dic
+DICPATH= share/stardict/dic
post-patch:
- ${REINPLACE_CMD} '/m_dictDirs/s|/usr/share/stardict/dic|${PREFIX}/share/stardict/dic|g' \
+ @${REINPLACE_CMD} '/${DICPATH:S/\//\\\//g}/s|/usr|${PREFIX}|' \
${WRKSRC}/plugins/stardict/stardict.cpp
+ @${REINPLACE_CMD} '/VERSION = /s/3\.0\.0/${DISTVERSION}/' \
+ ${WRKSRC}/qstardict.pri
.include <bsd.port.mk>