aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/lemmatizer2/Makefile
blob: 8a7c5b2ba003a72249ae831e588b2b520715c1cf (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
# 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

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

DB_DIR?=    ${DESTDIR}/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 ${DESTDIR}/var/db/lemmatizer)"
    @${ECHO} ""

do-configure:
    @cd ${WRKSRC} && ${LOCALBASE}/bin/cmake ${WRKSRC}

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>