PORTNAME=	lttoolbox
DISTVERSION=	3.8.3
CATEGORIES=	textproc
MASTER_SITES=	https://github.com/apertium/${PORTNAME}/releases/download/v${DISTVERSION}/

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Tool for lexical, morphological analysis and generation of words
WWW=		https://wiki.apertium.org/wiki/Lttoolbox

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	utf8cpp>=4.0.3:devel/utf8cpp
LIB_DEPENDS=	libboost_thread.so:devel/boost-libs \
		libicuio.so:devel/icu

USES=		cmake compiler:c++14-lang gnome localbase pathfix pkgconfig \
		tar:bz2
USE_GNOME=	libxml2
USE_LDCONFIG=	yes

CFLAGS+=	-I${LOCALBASE}/include/utf8cpp -D_XOPEN_SOURCE=600
LDFLAGS+=	-lpthread

.include <bsd.port.mk>
