mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
59494c0dce
- Replace current 2015 Hunspell implementation (by Sergey Ilinykh and Vitaly Tonkacheyev) with 2009 one by Alexander Tsvyashchenko, which turned out to be better alternative: * Much faster (suggestions appear almost instantly vs. several hundreds milliseconds with the original implementation) * Better multilanguage support (tested with English and Russian) * Ability to limit number of suggestions in the settings dialog * Working "add word to the dictionary" feature Obtained from: http://endl.ch/content/psi-spell-checking-hunspell-support
54 lines
1.5 KiB
Makefile
54 lines
1.5 KiB
Makefile
# Created by: Jonathan Chen <jonc@chen.org.nz>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= psi
|
|
PORTVERSION= 1.4
|
|
CATEGORIES= net-im
|
|
MASTER_SITES= SF/${PORTNAME}/Psi/${PORTVERSION}
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Qt-based Jabber (XMPP) client
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libidn.so:dns/libidn \
|
|
libminizip.so:archivers/minizip \
|
|
libqca-qt5.so:devel/qca
|
|
|
|
USES= cmake compiler:c++11-lang desktop-file-utils pkgconfig \
|
|
qt:5 tar:xz
|
|
USE_QT= concurrent core dbus gui multimedia network svg widgets \
|
|
x11extras xml buildtools_build qmake_build imageformats_run
|
|
USE_XORG= ice sm x11 xcb xext xscrnsaver
|
|
|
|
CMAKE_ARGS= -DIDN_LIBRARY:FILEPATH="${LOCALBASE}/lib/libidn.so" \
|
|
-DIDN_INCLUDE_DIR:PATH="${LOCALBASE}/include"
|
|
|
|
OPTIONS_DEFINE= WEBKIT
|
|
OPTIONS_RADIO= SPELLCHECK
|
|
OPTIONS_RADIO_SPELLCHECK= HUNSPELL ENCHANT
|
|
SPELLCHECK_DESC= Spell checker backend
|
|
OPTIONS_DEFAULT= HUNSPELL
|
|
OPTIONS_SUB= yes
|
|
|
|
WEBKIT_USE= QT=webkit
|
|
WEBKIT_CMAKE_BOOL= ENABLE_WEBKIT
|
|
|
|
HUNSPELL_LIB_DEPENDS= libhunspell-1.7.so:textproc/hunspell
|
|
HUNSPELL_CMAKE_BOOL= USE_HUNSPELL
|
|
|
|
ENCHANT_DESC= Spell checking support via Enchant
|
|
ENCHANT_LIB_DEPENDS= libenchant.so:textproc/enchant
|
|
ENCHANT_CMAKE_BOOL= USE_ENCHANT
|
|
|
|
post-patch:
|
|
# Replace original Hunspell implementation with better alternative
|
|
@${CP} ${FILESDIR}/hunspellchecker.* \
|
|
${WRKSRC}/src/libpsi/tools/spellchecker
|
|
# Avoid conflict with C++20 <version> by adding .txt suffix
|
|
@${MV} ${WRKSRC}/version ${WRKSRC}/version.txt
|
|
@${REINPLACE_CMD} -i .c++20 's,SOURCE_DIR}/version,&.txt,' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
.include <bsd.port.mk>
|