mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
55 lines
1.4 KiB
Makefile
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>
|