opnsense-ports/textproc/nuspell/Makefile
Franco Fichtner ebd5cca71f */*: sync with upstream
Taken from: FreeBSD
2023-04-12 23:27:01 +02:00

35 lines
864 B
Makefile

PORTNAME= nuspell
DISTVERSIONPREFIX= v
DISTVERSION= 5.1.2
PORTREVISION= 2
CATEGORIES= textproc
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Fast and safe spellchecking C++ library
WWW= https://nuspell.github.io/
LICENSE= LGPL3+
LICENSE_FILE= ${WRKSRC}/COPYING.LESSER
LIB_DEPENDS= libicuuc.so:devel/icu
TEST_DEPENDS= catch>0:devel/catch
USES= cmake:testing compiler:c++17-lang
USE_GITHUB= yes
USE_LDCONFIG= yes
CMAKE_OFF+= ${CMAKE_TESTING_ON}
post-patch:
# Skip README as it only contains install instructions
@${REINPLACE_CMD} -i .doc '/README/d' ${WRKSRC}/CMakeLists.txt
# Respect PREFIX != /usr/local
@${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' \
${WRKSRC}/src/nuspell/finder.cxx
makepatch-clean:
@${RM} ${WRKSRC}/tests/suggestiontest/Makefile.orig
.include <bsd.port.mk>
# XXX Don't override definition in Mk/bsd.port.mk
makepatch: makepatch-clean