aboutsummaryrefslogtreecommitdiff
path: root/textproc/lemmatizer2/Makefile
blob: 797ce87587d60249fb9ddabc2dfa975001140a62 (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
# New ports collection makefile for:	lemmatizer2
# Date created:				9 Mar 2007
# Whom:					Andrei V. Shetuhin
#
# $FreeBSD$
#

PORTNAME=	lemmatizer2
PORTVERSION=	2.0.1
CATEGORIES=	textproc
MASTER_SITES=	http://reki.ru/products/lemmatizer/ \
		http://havoc.ru/products/lemmatizer/
DISTFILES=	lemmatizer2-2.0.1.tar.gz \
		rus-src-morph.tar.gz  \
		eng-src-morph.tar.gz  \
		ger-src-morph.tar.gz

MAINTAINER=	reki@reki.ru
COMMENT=	Russian / German / English lemmatizer library

LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre

USE_CMAKE=	yes

DB_DIR?=	/var/db/lemmatizer

DIST_SUBDIR=	${PORTNAME}

USE_LDCONFIG=	${PREFIX}/lib/lemmatizer2

pre-fetch:
	@${ECHO} ""
	@${ECHO} "You may use the following build options:"
	@${ECHO} ""
	@${ECHO} "      DB_DIR=directory        Set alternate directory for database files"
	@${ECHO} "                              (default is /var/db/lemmatizer)"
	@${ECHO} ""

post-extract:
	@cd ${WRKDIR} && ${CP} -r Dicts ${WRKSRC}

generatemorph:
	@cd ${WRKSRC} && RML=${WRKSRC};export RML && ./GenerateMorph.sh Russian
	@cd ${WRKSRC} && RML=${WRKSRC};export RML && ./GenerateMorph.sh English
	@cd ${WRKSRC} && RML=${WRKSRC};export RML && ./GenerateMorph.sh German

installmorph:
	@${MKDIR} ${DB_DIR} && ${MKDIR} ${DB_DIR}/Bin \
	&& cd ${WRKSRC} && ${CP} ./Bin/rml.ini ${DB_DIR}/Bin \
	&& ${CP} -r Dicts ${DB_DIR}

.include <bsd.port.mk>