2017-09-19 19:48:30 +00:00
|
|
|
# Created by: Muhammad Moinur Rahman <bofh@FreeBSD.org>
|
|
|
|
|
|
|
|
PORTNAME= pgroonga
|
2021-11-13 06:49:47 +00:00
|
|
|
PORTVERSION= 2.3.4
|
2017-09-19 19:48:30 +00:00
|
|
|
CATEGORIES= databases textproc
|
|
|
|
MASTER_SITES= http://packages.groonga.org/source/pgroonga/
|
|
|
|
|
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
|
|
|
COMMENT= Open-source fulltext search engine for PostGRESQL
|
|
|
|
|
|
|
|
LICENSE= PostgreSQL
|
2021-10-08 13:40:24 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2017-09-19 19:48:30 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= libgroonga.so:textproc/groonga
|
|
|
|
|
2020-07-10 18:25:49 +00:00
|
|
|
USES= gmake pgsql:9.6+ pkgconfig
|
2018-12-19 08:30:04 +00:00
|
|
|
|
2020-07-10 18:25:49 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/groonga
|
2018-06-24 00:54:27 +00:00
|
|
|
LLD_UNSAFE= yes
|
2017-09-19 19:48:30 +00:00
|
|
|
SUB_FILES= pkg-message
|
2020-12-27 08:15:43 +00:00
|
|
|
PLIST_SUB= MVER=${PORTVERSION}
|
2017-09-19 19:48:30 +00:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= MECAB
|
2019-05-10 06:07:06 +00:00
|
|
|
MECAB_DESC= Use MeCab as a tokenizer
|
2017-09-19 19:48:30 +00:00
|
|
|
MECAB_BUILD_DEPENDS= mecab-ipadics>=0.996:japanese/mecab-ipadic
|
|
|
|
|
2020-05-03 22:24:19 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# With PG11+ some scripts are only installed when they are common to
|
|
|
|
# all PG versions.
|
|
|
|
.if ${PGSQL_VER:R} < 11
|
2020-07-10 18:25:49 +00:00
|
|
|
PLIST_SUB+= OLDPG="@comment "
|
2020-05-03 22:24:19 +00:00
|
|
|
.else
|
2020-07-10 18:25:49 +00:00
|
|
|
PLIST_SUB+= OLDPG=""
|
2020-05-03 22:24:19 +00:00
|
|
|
.endif
|
|
|
|
|
2017-09-19 19:48:30 +00:00
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/pgroonga.so
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/pgroonga_check.so
|
2021-11-13 06:49:47 +00:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/pgroonga_crash_safer.so
|
2019-05-24 02:23:46 +00:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/pgroonga_database.so
|
2021-11-13 06:49:47 +00:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/pgroonga_wal_applier.so
|
2017-09-19 19:48:30 +00:00
|
|
|
|
2020-05-03 22:24:19 +00:00
|
|
|
.include <bsd.port.post.mk>
|