summaryrefslogtreecommitdiff
path: root/textproc/cg3/Makefile
blob: 1b763590f5b073803f9407302200278e13aeb51c (plain)
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
PORTNAME=	cg3
DISTVERSION=	1.3.6
PORTREVISION=	6
CATEGORIES=	textproc
MASTER_SITES=	https://github.com/GrammarSoft/${PORTNAME}/releases/download/v${DISTVERSION}/

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Tools for the Constraint Grammar formalism
WWW=		https://visl.sdu.dk/constraint_grammar.html

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libboost_date_time.so:devel/boost-libs \
		libicuuc.so:devel/icu

USES=		cmake pathfix perl5 shebangfix tar:bz2
USE_LDCONFIG=	yes

SHEBANG_FILES=	scripts/cg-sort scripts/cg-strictify scripts/cg-untrace \
		scripts/cg3-autobin.pl.in

OPTIONS_DEFINE=	OPTIMIZED_CFLAGS

post-patch:
	@${REINPLACE_CMD} -e '/D_POSIX_C_SOURCE/d' \
		${WRKSRC}/CMakeLists.txt

post-patch-OPTIMIZED_CFLAGS-off:
	@${REINPLACE_CMD} -e 's| -O3||g' \
		${WRKSRC}/CMakeLists.txt

.include <bsd.port.mk>