# Created by: J.F. Dockes
# $FreeBSD: tags/RELEASE_11_0_0/databases/xapian-core10/Makefile 365543 2014-08-21 10:43:20Z marino $

PORTNAME=	xapian-core
PORTVERSION=	1.0.23
PORTREVISION=	1
CATEGORIES=	databases
MASTER_SITES=	http://oligarchy.co.uk/xapian/${PORTVERSION}/
PKGNAMESUFFIX=	10

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Probabilistic text search database engine

LICENSE=	GPLv2

USES=		libtool
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
MAKE_ENV=	INSTALL_STRIP_FLAG=${STRIP}
PORTDOCS=	*

OPTIONS_DEFINE=	DOCS SSE2
SSE2_DESC=	Use SSE2 for floating point

SSE2_CONFIGURE_ENABLE=	sse

post-install:
.for f in delve quest copydatabase
	${INSTALL_PROGRAM} ${WRKSRC}/examples/.libs/${f} \
		${STAGEDIR}${PREFIX}/bin/xapian-${f}
.endfor

.include <bsd.port.mk>
