2013-09-21 01:17:30 +02:00
|
|
|
# Created by: Michael Johnson <ahze@ahze.net>
|
2004-08-29 15:57:59 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= estraier
|
2010-11-20 17:12:54 +01:00
|
|
|
PORTVERSION= 1.2.30
|
2015-05-28 01:25:28 +02:00
|
|
|
PORTREVISION= 4
|
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
|
2014-08-03 16:15:08 +02:00
|
|
|
COMMENT= Full-text search system for personal use
|
2004-08-29 15:57:59 +02:00
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
LIB_DEPENDS= libqdbm.so:databases/qdbm
|
2004-08-29 15:57:59 +02:00
|
|
|
|
2013-04-27 20:25:24 +02:00
|
|
|
USES= iconv
|
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
|
2015-03-24 18:09:58 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2015-04-15 10:20:27 +02:00
|
|
|
LIBS+= -L${LOCALBASE}/include
|
2015-05-28 01:25:28 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
|
|
|
|
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-11-14 18:04:32 +01:00
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
CHASEN_LIB_DEPENDS= libchasen.so:japanese/chasen-base
|
2014-01-26 21:05:55 +01:00
|
|
|
CHASEN_CONFIGURE_ENABLE= chasen
|
2004-08-29 15:57:59 +02:00
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
KAKASI_LIB_DEPENDS= libkakasi.so:japanese/kakasi
|
2014-01-26 21:05:55 +01:00
|
|
|
KAKASI_CONFIGURE_ENABLE= kakasi
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2004-08-29 15:57:59 +02:00
|
|
|
|
2012-06-11 07:41:08 +02:00
|
|
|
.if ${PORT_OPTIONS:MMECAB} && ${ARCH} == "i386"
|
2016-04-01 16:25:16 +02:00
|
|
|
LIB_DEPENDS+= libmecab.so:japanese/mecab
|
2004-08-29 15:57:59 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-mecab
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2015-04-15 10:20:27 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-lc||' -e 's|-liconv|${ICONV_LIB}|' \
|
|
|
|
${WRKSRC}/configure
|
2010-11-20 17:12:54 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
2015-04-15 10:20:27 +02:00
|
|
|
's|$$(RELCFLAGS)|@CFLAGS@| ; \
|
|
|
|
s|^LDFLAGS =|& @LDFLAGS@ | ; \
|
2010-11-20 17:12:54 +01:00
|
|
|
s|HOME|LOCALBASE|g ; \
|
|
|
|
s|:/usr/local/lib||g ; \
|
2015-03-24 18:09:58 +01:00
|
|
|
s|-I/usr/local/include||g ; \
|
2015-04-15 10:20:27 +02:00
|
|
|
s|-L/usr/local/lib||g' ${WRKSRC}/Makefile.in
|
2010-11-20 17:12:54 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for file in estindex estmbtomh estserver estsiutil estxview
|
2014-01-26 21:05:55 +01:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file}
|
2010-11-20 17:12:54 +01:00
|
|
|
.endfor
|
2004-08-29 15:57:59 +02:00
|
|
|
|
2014-01-26 21:05:55 +01:00
|
|
|
.include <bsd.port.mk>
|