freebsd-ports/textproc/senna/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

47 lines
1,002 B
Makefile

# $FreeBSD$
PORTNAME= senna
PORTVERSION= 1.1.5
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= textproc
MASTER_SITES= SFJP/senna/46945
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Embeddable Fulltext Search Engine
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
OPTIONS_DEFINE= MECAB NFKC
OPTIONS_DEFAULT= MECAB NFKC
MECAB_DESC= use mecab for morphological analysis
NFKC_DESC= use nfkc based utf8 normalization
.include <bsd.port.options.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "sparc64"
BROKEN= Does not compile on ${ARCH}
.endif
.if ${PORT_OPTIONS:MMECAB}
CONFIGURE_ARGS+= --with-mecab
LIB_DEPENDS+= libmecab.so:${PORTSDIR}/japanese/mecab
.else
CONFIGURE_ARGS+= --without-mecab
.endif
.if ${PORT_OPTIONS:MNFKC}
CONFIGURE_ARGS+= --disable-nfkc
.endif
.include <bsd.port.mk>