# Created by: Gea-Suan Lin <gslin@gslin.org>

PORTNAME=	mysqlbigram
PORTVERSION=	1.0.1
PORTREVISION=	1
CATEGORIES=	databases
MASTER_SITES=	http://mysqlbigram.googlepages.com/
DISTNAME=	bi_gram-src-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple n-gram (bi-gram) fulltext parser plugin for MySQL

LICENSE=	LGPL21

USES=		libtool mysql

GNU_CONFIGURE=	yes
IGNORE_WITH_MYSQL=	57 80 101m 102m 103m 57p 57w
INSTALL_TARGET=	install-strip
WRKSRC=		${WRKDIR}/bi_gram

PLIST_FILES=	lib/mysql/bi_gramlib.so \
		lib/mysql/bi_gramlib.so.0 \
		lib/mysql/bi_gramlib.so.0.0.0

post-patch:
	@${REINPLACE_CMD} -e 's,bool ,my_&,' ${WRKSRC}/bi_gram_plugin.c

.include <bsd.port.mk>
