aboutsummaryrefslogtreecommitdiff
path: root/textproc/apertium/Makefile
blob: 2d1d306245a16d03e5d8bfb64f82a9b0fe0bd012 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# New ports collection makefile for:  apertium
# Date created:                14 April 2009
# Whom:                        Mykola Dzham <freebsd@levsha.org.ua>
#
# $FreeBSD$
#

PORTNAME=	apertium
PORTVERSION=	${APVER}.${APREV}
PORTREVISION=	2
CATEGORIES=	textproc
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${APVER}

MAINTAINER=	i@levsha.me
COMMENT=	A toolbox to build shallow-transfer machine translation systems

BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash
RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash
LIB_DEPENDS=	xml2:${PORTSDIR}/textproc/libxml2 \
		xslt:${PORTSDIR}/textproc/libxslt \
		lttoolbox3:${PORTSDIR}/textproc/lttoolbox \
		pcre.3:${PORTSDIR}/devel/pcre

APVER=	3.2
APREV=	0

MAKE_JOBS_UNSAFE=	yes

GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
USE_GNOME=	gnomehack pkgconfig
USE_LDCONFIG=	yes

PLIST_SUB+=	APVER="${APVER}"

MAN1=	apertium-deshtml.1 apertium-desodt.1 apertium-despptx.1 \
	apertium-desrtf.1 apertium-destxt.1 apertium-deswxml.1 \
	apertium-desxlsx.1 apertium-filter-ambiguity.1 \
	apertium-gen-deformat.1 apertium-gen-lextorbil.1 \
	apertium-gen-lextormono.1 apertium-gen-modes.1 \
	apertium-gen-reformat.1 apertium-gen-stopwords-lextor.1 \
	apertium-gen-wlist-lextor-translation.1 apertium-gen-wlist-lextor.1 \
	apertium-interchunk.1 apertium-lextor.1 apertium-multiple-translations.1 \
	apertium-postchunk.1 apertium-preprocess-corpus-lextor.1 \
	apertium-preprocess-transfer.1 apertium-pretransfer.1 \
	apertium-rehtml.1 apertium-reodt.1 apertium-repptx.1 \
	apertium-rertf.1 apertium-retxt.1 apertium-rewxml.1 apertium-rexlsx.1 \
	apertium-tagger-apply-new-rules.1 apertium-tagger.1 apertium-transfer.1 \
	apertium-validate-acx.1 apertium-validate-dictionary.1 \
	apertium-validate-interchunk.1 apertium-validate-modes.1 \
	apertium-validate-postchunk.1 apertium-validate-tagger.1\
		apertium-validate-transfer.1 apertium-unformat.1 \
	apertium.1 apertium-desmediawiki.1 apertium-remediawiki.1

post-patch:
	@${REINPLACE_CMD} -e 's/pcre_info/pcre_fullinfo/g' ${WRKSRC}/configure

.include <bsd.port.mk>