aboutsummaryrefslogtreecommitdiff
path: root/textproc/ucto/Makefile
blob: f9b9aef7d9a7c0ad7a5a03a49fb59d8fc3b6a6f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
PORTNAME=	ucto
DISTVERSION=	0.29
CATEGORIES=	textproc
MASTER_SITES=	https://github.com/LanguageMachines/${PORTNAME}/releases/download/v${DISTVERSION}/

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Advanced rule-based (regular-expression) and unicode-aware tokenizer
WWW=		https://languagemachines.github.io/ucto/

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	uctodata>0:textproc/uctodata
LIB_DEPENDS=	libexttextcat-2.0.so:textproc/libexttextcat \
		libfolia.so:textproc/libfolia \
		libicuio.so:devel/icu \
		libticcutils.so:devel/ticcutils
RUN_DEPENDS=	uctodata>0:textproc/uctodata

USES=		compiler:c++11-lang gmake gnome libedit libtool \
		pathfix pkgconfig readline
USE_GNOME=	libxml2
USE_LDCONFIG=	yes

GNU_CONFIGURE=	yes

TEST_TARGET=	check
INSTALL_TARGET=	install-strip

CONFIGURE_ARGS=	--disable-static

post-patch:
	@${REINPLACE_CMD} -e 's|-g -O3||g' \
		${PATCH_WRKSRC}/src/Makefile.in

.include <bsd.port.mk>