2005-05-30 16:16:35 +02:00
|
|
|
# New ports collection makefile for: Senna
|
|
|
|
# Date created: May 1 2005
|
|
|
|
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= senna
|
2008-12-24 07:35:33 +01:00
|
|
|
PORTVERSION= 1.1.4
|
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}
|
2008-12-24 07:35:33 +01:00
|
|
|
MASTER_SITE_SUBDIR= senna/33763
|
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
|
2005-05-30 16:16:35 +02:00
|
|
|
USE_GMAKE= YES
|
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
|
|
|
|
|
2006-09-12 16:52:34 +02:00
|
|
|
OPTIONS= MECAB "use mecab for morphological analysis" on \
|
|
|
|
NFKC "use nfkc based utf8 normalization" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-12-01 00:42:37 +01:00
|
|
|
.if ${ARCH} == "ia64" || ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on ${ARCH}
|
|
|
|
.endif
|
|
|
|
|
2006-09-12 16:52:34 +02:00
|
|
|
.if defined(WITH_MECAB)
|
|
|
|
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
|
|
|
|
|
|
|
|
.if !defined(WITH_NFKC)
|
|
|
|
CONFIGURE_ARGS+= --disable-nfkc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|