2005-05-30 16:16:35 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= senna
|
2013-03-15 12:57:58 +01:00
|
|
|
PORTVERSION= 1.1.5
|
2006-09-12 16:52:34 +02:00
|
|
|
PORTEPOCH= 1
|
2005-05-30 16:16:35 +02:00
|
|
|
CATEGORIES= textproc
|
2006-09-12 16:52:34 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
|
2013-03-15 12:57:58 +01:00
|
|
|
MASTER_SITE_SUBDIR= senna/46945
|
2005-05-30 16:16:35 +02:00
|
|
|
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
|
|
|
COMMENT= Embeddable Fulltext Search Engine
|
|
|
|
|
2006-05-07 11:59:08 +02:00
|
|
|
GNU_CONFIGURE= YES
|
2012-10-10 00:12:13 +02:00
|
|
|
USE_GCC= any
|
2014-02-14 16:42:31 +01:00
|
|
|
USES= gmake
|
2006-09-12 16:52:34 +02:00
|
|
|
USE_LDCONFIG= YES
|
2005-05-30 16:16:35 +02:00
|
|
|
CONFIGURE_ARGS= --with-sennahome=${SENNA_HOME}
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2006-02-10 04:30:45 +01:00
|
|
|
MAKE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}"
|
2006-09-12 16:52:34 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
2005-05-30 16:16:35 +02:00
|
|
|
|
|
|
|
SENNA_HOME?= /var/senna
|
|
|
|
|
2012-07-21 00:25:22 +02:00
|
|
|
OPTIONS_DEFINE= MECAB NFKC
|
|
|
|
OPTIONS_DEFAULT= MECAB NFKC
|
|
|
|
MECAB_DESC= use mecab for morphological analysis
|
|
|
|
NFKC_DESC= use nfkc based utf8 normalization
|
2006-09-12 16:52:34 +02:00
|
|
|
|
2012-07-21 00:25:22 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-09-12 16:52:34 +02:00
|
|
|
|
2006-12-01 00:42:37 +01:00
|
|
|
.if ${ARCH} == "ia64" || ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on ${ARCH}
|
|
|
|
.endif
|
|
|
|
|
2012-07-21 00:25:22 +02:00
|
|
|
.if ${PORT_OPTIONS:MMECAB}
|
2006-09-12 16:52:34 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mecab
|
2008-12-24 07:35:33 +01:00
|
|
|
LIB_DEPENDS+= mecab:${PORTSDIR}/japanese/mecab
|
2006-09-12 16:52:34 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mecab
|
|
|
|
.endif
|
|
|
|
|
2012-07-21 00:25:22 +02:00
|
|
|
.if ${PORT_OPTIONS:MNFKC}
|
2006-09-12 16:52:34 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-nfkc
|
|
|
|
.endif
|
|
|
|
|
2012-07-21 00:25:22 +02:00
|
|
|
.include <bsd.port.mk>
|