freebsd-ports/textproc/senna/Makefile

50 lines
1 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= senna
2013-03-15 12:57:58 +01:00
PORTVERSION= 1.1.5
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= textproc
MASTER_SITES= SFJP/senna/46945
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Embeddable Fulltext Search Engine
2016-04-21 18:43:14 +02:00
BROKEN_powerpc64= Does not build
2006-05-07 11:59:08 +02:00
GNU_CONFIGURE= YES
USE_GCC= any
USES= gmake libtool
USE_LDCONFIG= YES
CONFIGURE_ARGS= --with-sennahome=${SENNA_HOME}
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include
MAKE_ARGS= CFLAGS="${CFLAGS}"
WRKSRC= ${WRKDIR}/${DISTNAME}
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
2012-07-21 00:25:22 +02:00
.include <bsd.port.options.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "sparc64"
BROKEN= Does not compile on ${ARCH}
.endif
2012-07-21 00:25:22 +02:00
.if ${PORT_OPTIONS:MMECAB}
CONFIGURE_ARGS+= --with-mecab
LIB_DEPENDS+= libmecab.so:japanese/mecab
.else
CONFIGURE_ARGS+= --without-mecab
.endif
2012-07-21 00:25:22 +02:00
.if ${PORT_OPTIONS:MNFKC}
CONFIGURE_ARGS+= --disable-nfkc
.endif
2012-07-21 00:25:22 +02:00
.include <bsd.port.mk>