69 lines
1.8 KiB
Makefile
69 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= groonga
|
|
PORTVERSION= 8.1.0
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://packages.groonga.org/source/groonga/
|
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
|
COMMENT= Open-source fulltext search engine and column store
|
|
|
|
LICENSE= LGPL21
|
|
|
|
LIB_DEPENDS= libpcre.so:devel/pcre
|
|
|
|
USES= gmake libedit libtool pathfix pkgconfig
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-benchmark \
|
|
--disable-document \
|
|
--localstatedir=/var \
|
|
--without-cutter \
|
|
--without-inkscape \
|
|
--without-kytea \
|
|
--without-lemon \
|
|
--with-log-path=/var/log/groonga.log \
|
|
--with-munin-plugins
|
|
INSTALL_TARGET= install-strip
|
|
USE_LDCONFIG= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
OPTIONS_DEFINE= MECAB SUGGEST RUBY
|
|
OPTIONS_DEFAULT= MECAB SUGGEST RUBY
|
|
OPTIONS_SUB= yes
|
|
|
|
MECAB_DESC= Morphological analysis support via MeCab
|
|
MECAB_LIB_DEPENDS= libmecab.so:japanese/mecab
|
|
MECAB_CONFIGURE_OFF= --without-mecab
|
|
SUGGEST_DESC= Suggestions support
|
|
SUGGEST_LIB_DEPENDS= libevent.so:devel/libevent \
|
|
libmsgpackc.so:devel/msgpack \
|
|
libzmq.so:net/libzmq2
|
|
SUGGEST_CONFIGURE_ON= --with-libevent=${LOCALBASE} \
|
|
--with-message-pack=${LOCALBASE} \
|
|
--enable-zeromq
|
|
SUGGEST_CONFIGURE_OFF= --without-libevent \
|
|
--without-message-pack \
|
|
--disable-zeromq
|
|
RUBY_CONFIGURE_ON= --enable-mruby
|
|
RUBY_USE= RUBY=yes
|
|
RUBY_RUN_DEPENDS= rubygem-bundler>=0:sysutils/rubygem-bundler
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|lib/$${PACKAGE}/db/db|db/$${PACKAGE}/db| ; \
|
|
s|-lpthread|-pthread|' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e \
|
|
'/NGX_PID_PATH/s|mkdir|${TRUE}| ; \
|
|
/NGX_HTTP_LOG_PATH/s|mkdir|${TRUE}| ; \
|
|
/NGX_ERROR_LOG_PATH/s|mkdir|${TRUE}|' \
|
|
${WRKSRC}/vendor/nginx-1.15.8/auto/install
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/groonga-httpd
|
|
@${MKDIR} ${STAGEDIR}/var/log/groonga/httpd
|
|
@${MKDIR} ${STAGEDIR}/var/run/groonga
|
|
|
|
.include <bsd.port.mk>
|