a8693b8dee
rely on gcc. The patch uses the new USE_GCC=any code in Mk/bsd.gcc.mk to accomplish this. The ports chosen were ports that blocked 2 or more ports from building with clang. (There are several hundred other ports that still fail to build with clang, even with this patch. This is merely one step along the way.) Those interested in fixing these ports with clang, and have clang as their default compiler, can simply set FORCE_BASE_CC_FOR_TESTING=yes. For those who have gcc as their default compiler, this change is believed to cause no change. Hat: portmgr Tested with: multiple runs on amd64-8-exp-bcm and 9-exp-clang, with various combinations of patch/no-patch and flag settings.
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# New ports collection makefile for: Senna
|
|
# Date created: May 1 2005
|
|
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= senna
|
|
PORTVERSION= 1.1.4
|
|
PORTEPOCH= 1
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
|
|
MASTER_SITE_SUBDIR= senna/33763
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
|
COMMENT= Embeddable Fulltext Search Engine
|
|
|
|
GNU_CONFIGURE= YES
|
|
USE_GCC= any
|
|
USE_GMAKE= YES
|
|
USE_LDCONFIG= YES
|
|
CONFIGURE_ARGS= --with-sennahome=${SENNA_HOME}
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
MAKE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include ${PTHREAD_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+= mecab:${PORTSDIR}/japanese/mecab
|
|
.else
|
|
CONFIGURE_ARGS+= --without-mecab
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNFKC}
|
|
CONFIGURE_ARGS+= --disable-nfkc
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|