2004-08-29 15:57:59 +02:00
|
|
|
# New ports collection makefile for: estraier
|
|
|
|
# Date created: 2004-08-28
|
|
|
|
# Whom: Michael Johnson <ahze@ahze.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= estraier
|
2010-11-20 17:12:54 +01:00
|
|
|
PORTVERSION= 1.2.30
|
2011-07-24 23:36:52 +02:00
|
|
|
PORTREVISION= 1
|
2004-12-11 10:45:00 +01:00
|
|
|
CATEGORIES= textproc
|
2010-11-20 17:12:54 +01:00
|
|
|
MASTER_SITES= http://fallabs.com/estraier/
|
2004-08-29 15:57:59 +02:00
|
|
|
|
2010-07-26 02:03:14 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-08-29 15:57:59 +02:00
|
|
|
COMMENT= A full-text search system for personal use
|
|
|
|
|
2006-08-03 01:33:55 +02:00
|
|
|
LIB_DEPENDS= qdbm.14:${PORTSDIR}/databases/qdbm
|
2004-08-29 15:57:59 +02:00
|
|
|
|
2012-06-11 07:41:08 +02:00
|
|
|
OPTIONS_DEFINE= CHASEN MECAB KAKASI
|
|
|
|
OPTIONS_DEFAULT= KAKASI
|
|
|
|
CHASEN_DESC= Japanese Morphological Analysis Support
|
|
|
|
MECAB_DESC= Part-of-Speech and Morphological Analyzer
|
|
|
|
KAKASI_DESC= Language processing filter/converter
|
2004-08-29 15:57:59 +02:00
|
|
|
|
2010-11-20 17:12:54 +01:00
|
|
|
USE_ICONV= yes
|
2004-08-29 15:57:59 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-sysqdbm \
|
2004-10-13 05:19:00 +02:00
|
|
|
--enable-dlfilter \
|
|
|
|
--enable-devel
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/include ${PTHREAD_LIBS}
|
2004-11-14 18:04:32 +01:00
|
|
|
|
2004-08-29 15:57:59 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-06-11 07:41:08 +02:00
|
|
|
.if ${PORT_OPTIONS:MCHASEN}
|
2008-12-29 23:37:28 +01:00
|
|
|
LIB_DEPENDS+= chasen.2:${PORTSDIR}/japanese/chasen-base
|
2004-08-29 15:57:59 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-chasen
|
|
|
|
.endif
|
|
|
|
|
2012-06-11 07:41:08 +02:00
|
|
|
.if ${PORT_OPTIONS:MMECAB} && ${ARCH} == "i386"
|
2006-05-17 01:54:13 +02:00
|
|
|
LIB_DEPENDS+= mecab.1:${PORTSDIR}/japanese/mecab
|
2004-08-29 15:57:59 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-mecab
|
|
|
|
.endif
|
|
|
|
|
2012-06-11 07:41:08 +02:00
|
|
|
.if ${PORT_OPTIONS:MKAKASI}
|
2004-08-29 15:57:59 +02:00
|
|
|
LIB_DEPENDS+= kakasi.3:${PORTSDIR}/japanese/kakasi
|
|
|
|
CONFIGURE_ARGS+= --enable-kakasi
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2010-11-20 17:12:54 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-lc ||g' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-O2|@CFLAGS@|g ; \
|
|
|
|
s|HOME|LOCALBASE|g ; \
|
|
|
|
s|:/usr/local/lib||g ; \
|
|
|
|
s|-I/usr/local/include|${PTHREAD_CFLAGS}|g ; \
|
|
|
|
s|-L/usr/local/lib|${PTHREAD_LIBS}|g' ${WRKSRC}/Makefile.in
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for file in estindex estmbtomh estserver estsiutil estxview
|
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/${file}
|
|
|
|
.endfor
|
2004-08-29 15:57:59 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|