PORTNAME= estraier PORTVERSION= 1.2.30 PORTREVISION= 4 CATEGORIES= textproc MASTER_SITES= https://dbmx.net/estraier/ MAINTAINER= ports@FreeBSD.org COMMENT= Full-text search system for personal use WWW= https://dbmx.net/estraier/ LIB_DEPENDS= libqdbm.so:databases/qdbm USES= iconv GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-sysqdbm \ --enable-dlfilter \ --enable-devel CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/include 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 CHASEN_LIB_DEPENDS= libchasen.so:japanese/chasen-base CHASEN_CONFIGURE_ENABLE= chasen KAKASI_LIB_DEPENDS= libkakasi.so:japanese/kakasi KAKASI_CONFIGURE_ENABLE= kakasi .include .if ${PORT_OPTIONS:MMECAB} && ${ARCH} == "i386" LIB_DEPENDS+= libmecab.so:japanese/mecab CONFIGURE_ARGS+= --enable-mecab .endif post-patch: @${REINPLACE_CMD} -e 's|-lc||' -e 's|-liconv|${ICONV_LIB}|' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e \ 's|$$(RELCFLAGS)|@CFLAGS@| ; \ s|^LDFLAGS =|& @LDFLAGS@ | ; \ s|HOME|LOCALBASE|g ; \ s|:/usr/local/lib||g ; \ s|-I/usr/local/include||g ; \ s|-L/usr/local/lib||g' ${WRKSRC}/Makefile.in post-install: .for file in estindex estmbtomh estserver estsiutil estxview @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file} .endfor .include