# $FreeBSD: tags/RELEASE_12_1_0/mail/dovecot-fts-xapian/Makefile 512356 2019-09-19 16:20:02Z pkubaj $

PORTNAME=	fts-xapian
PORTVERSION=	1.2.1
PORTREVISION=	1
CATEGORIES=	mail
PKGNAMEPREFIX=	dovecot-

MAINTAINER=	bapt@FreeBSD.org
COMMENT=	Dovecot FTS plugin based on Xapian

LICENSE=	LGPL21

LIB_DEPENDS=	libxapian.so:databases/xapian-core \
		libicuuc.so:devel/icu
BUILD_DEPENDS=	dovecot>=2.3.7:mail/dovecot
RUN_DEPENDS=	dovecot>=2.3.7:mail/dovecot

USES=		autoreconf compiler:c++11-lang libtool pkgconfig

USE_LDCONFIG=	yes

USE_GITHUB=yes
GH_ACCOUNT=	grosjo
GH_TAGNAME=	${PORTNAME}-${PORTVERSION}

GNU_CONFIGURE=	yes

PLIST_FILES=	lib/dovecot/lib21_fts_xapian_plugin.a \
		lib/dovecot/lib21_fts_xapian_plugin.so

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/dovecot/lib21_fts_xapian_plugin.so

.include <bsd.port.mk>
