pkgsrc-wip/mysql-sphinxse/Makefile
Filip Hajny 31b5186b69 Import mysql-sphinxse-5.1.60.2.0.3 as wip/mysql-sphinxse.
SphinxSE is MySQL storage engine which can be compiled into MySQL server 5.x
using its pluggable architecure. It is not available for MySQL 4.x series. It
also requires MySQL 5.0.22 or higher in 5.0.x series, or MySQL 5.1.12 or
higher in 5.1.x series.

Despite the name, SphinxSE does not actually store any data itself. It is
actually a built-in client which allows MySQL server to talk to searchd, run
search queries, and obtain search results. All indexing and searching happen
outside MySQL.
2012-02-01 15:41:33 +00:00

53 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2012/02/01 15:41:33 fhajny Exp $
PKGNAME= ${DISTNAME:S/mysql-/mysql-sphinxse-/}.${SPHINX_VER}
MAINTAINER= filip@joyent.com
COMMENT= SphinxSE MySQL storage engine
HOMEPAGE= http://sphinxsearch.com/
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= automake
.include "../../mk/bsd.prefs.mk"
MYSQL_VERSION= ${MYSQL_VERSION_DEFAULT}
SPHINX= sphinx-${SPHINX_VER}-release
SPHINX_VER= 2.0.3
DISTFILES= ${DEFAULT_DISTFILES} ${SPHINX}.tar.gz
SITES.${SPHINX}.tar.gz= http://sphinxsearch.com/files/
IGNOREFILES+= ${SPHINX}.tar.gz
PLIST_VARS+= mysql51 mysql55
.if ${MYSQL_VERSION} == 51
INSTALL_TARGET= install-data-am
PLIST.mysql51= yes
.include "../../databases/mysql51-client/Makefile.common"
PATCHDIR= ${.CURDIR}/../../databases/mysql51-client/patches
DISTINFO_FILE= ${.CURDIR}/../../databases/mysql51-client/distinfo
DEPENDS+= mysql-server-5.1.*:../../databases/mysql51-server
.elif ${MYSQL_VERSION} == 55
INSTALL_TARGET= install
PLIST.mysql55= yes
.include "../../databases/mysql55-client/Makefile.common"
PATCHDIR= ${.CURDIR}/../../databases/mysql55-client/patches
DISTINFO_FILE= ${.CURDIR}/../../databases/mysql55-client/distinfo
DEPENDS+= mysql-server-5.5.*:../../databases/mysql55-server
.else
PKG_FAIL_REASON= "Dynamic plugin loading requires MySQL >= 5.1."
.endif
BUILD_DIRS= storage/sphinx
INSTALLATION_DIRS= lib/mysql/plugin
post-extract:
${CP} -R ${WRKDIR}/${SPHINX}/mysqlse ${WRKSRC}/storage/sphinx
post-patch:
cd ${WRKSRC} && ${SH} BUILD/autorun.sh
.include "../../mk/bsd.pkg.mk"