openbsd-ports/textproc/sphinx/Makefile

56 lines
1.2 KiB
Makefile
Raw Normal View History

2011-07-11 04:22:29 -04:00
# $OpenBSD: Makefile,v 1.6 2011/07/11 08:22:29 robert Exp $
COMMENT = free open-source SQL full-text search engine
DISTNAME = sphinx-0.9.8.1
2011-07-11 04:22:29 -04:00
REVISION = 1
CATEGORIES = textproc
HOMEPAGE = http://www.sphinxsearch.com/
MAINTAINER = Rama McIntosh <face00@gmail.com>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES = ${HOMEPAGE}/downloads/
2011-07-08 20:37:40 -04:00
MODULES = converters/libiconv lang/php
MODPHP_BUILDDEP=No
2011-07-11 04:22:29 -04:00
MODPHP_RUNDEP=No
WANTLIB = c expat m stdc++
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --with-mysql
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
FLAVORS = pgsql
FLAVOR ?=
.if ${FLAVOR:L:Mpgsql}
CONFIGURE_ARGS +=--with-pgsql \
--without-mysql
2010-11-20 14:56:47 -05:00
LIB_DEPENDS += databases/postgresql
WANTLIB += pq
.else
2010-11-20 14:56:47 -05:00
LIB_DEPENDS += databases/mysql
WANTLIB += crypto ssl z mysqlclient
.endif
2011-07-08 20:37:40 -04:00
# Needs php with pdo_mysql setup.
REGRESS_IS_INTERACTIVE= Yes
2011-07-08 20:37:40 -04:00
REGRESS_DEPENDS=lang/php/${MODPHP_VERSION},-mysql \
lang/php/${MODPHP_VERSION},-pdo_mysql
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sphinx
${INSTALL_DATA} ${WRKSRC}/doc/sphinx.txt ${PREFIX}/share/doc/sphinx
.include <bsd.port.mk>