aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/lemmatizer/Makefile
blob: ecdb7ab6ac70343b77283a20a37a6cf51302e878 (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
# New ports collection makefile for:    lemmatizer
# Date created:             26 May 2005
# Whom:                 Andrei V. Shetuhin
#
# $FreeBSD$
#

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

MAINTAINER= shetuhin@corp.mail.ru
COMMENT=    Russian / German / English lemmatizer library

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

DB_DIR?=    /var/db/lemmatizer

DIST_SUBDIR=    ${PORTNAME}

USE_GMAKE=  YES
GNU_CONFIGURE=  YES

CONFIGURE_ARGS= --with-datadir=${DB_DIR}

INSTALLS_SHLIB= yes
LDCONFIG_DIRS=  %%PREFIX%%/lib

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} \
    && ${ECHO_MSG} "===>  Creating dictionaries" \
    && ${GMAKE} generatemorph

installmorph:
    @cd ${WRKSRC} \
    && ${ECHO_MSG} "===>  Installing dictionaries" \
    && ${GMAKE} installmorph

.include <bsd.port.mk>