1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/textproc/lemmatizer2/Makefile
Martin Wilke 07b20beeba Library for automatic morphological analysis of English,
Russian and German Languages. Version 2.
Finds the lemmas (all forms) of a word.
Written in C++.

WWW: http://www.aot.ru/
- Andrei V. Shetuhin
slonik-v-domene@mail.ru
reki@reki.ru

PR:		ports/110137
Submitted by:	Andrei V. Shetuhin
2007-03-11 16:42:43 +00:00

55 lines
1.4 KiB
Makefile

# 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>