ports/textproc/sphinx/Makefile

66 lines
1.5 KiB
Makefile

COMMENT = free open-source SQL full-text search engine
BROKEN-hppa = internal compiler error: internal consistency failure
# Note: this is not Sphinx (the Python documentation generator) -
# see textproc/py-sphinx.
VERSION = 2.2.11
DISTNAME = sphinx-${VERSION}-release
PKGNAME = sphinx-${VERSION}
CATEGORIES = textproc
REVISION = 1
HOMEPAGE = https://www.sphinxsearch.com/
# GPLv2+
PERMIT_PACKAGE = Yes
WANTLIB = c execinfo expat iconv m pthread ${COMPILER_LIBCXX} z
COMPILER = base-clang ports-gcc base-gcc
MASTER_SITES = ${HOMEPAGE}files/
# for tests
MODULES = lang/php
MODPHP_VERSION = 7.4
MODPHP_BUILDDEP = No
MODPHP_RUNDEP = No
LIB_DEPENDS = converters/libiconv
LOCALSTATEDIR = ${BASELOCALSTATEDIR}/sphinx
CONFIGURE_ARGS = --with-unixodbc=no
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lexecinfo"
FLAVORS = pgsql
FLAVOR ?=
.if ${FLAVOR:Mpgsql}
CONFIGURE_ARGS += --with-pgsql \
--without-mysql
LIB_DEPENDS += databases/postgresql
WANTLIB += pq
.else
CONFIGURE_ARGS += --with-mysql
LIB_DEPENDS += databases/mariadb
WANTLIB += mariadb
.endif
# Needs php with mysqli setup, mariadb listening on 127.0.0.1, and maybe
# a database named "test" pre-created.
TEST_IS_INTERACTIVE = Yes
TEST_DEPENDS = lang/php/${MODPHP_VERSION} \
lang/php/${MODPHP_VERSION},-mysqli \
databases/mariadb,-server
MAKE_ENV = MODPHP_BIN=${MODPHP_BIN}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sphinx
${INSTALL_DATA} ${WRKSRC}/doc/sphinx.txt ${PREFIX}/share/doc/sphinx
.include <bsd.port.mk>