PORTNAME=	sqlite-ext-pcre
PORTVERSION=	20100208
PORTREVISION=	2
CATEGORIES=	databases
DIST_SUBDIR=	sqlite-ext

MAINTAINER=	vivek@khera.org
COMMENT=	Regexp function for SQLite based on PCRE library
WWW=		https://github.com/ralight/sqlite3-pcre

LICENSE=	PD

LIB_DEPENDS=	libpcre.so:devel/pcre

USES=		gmake pkgconfig sqlite
USE_GITHUB=	yes
GH_ACCOUNT=	ralight
GH_PROJECT=	sqlite3-pcre
GH_TAGNAME=	c98da41

LIBFILE=	pcre.so
INST_DIR=	${PREFIX}/libexec/${DIST_SUBDIR}

SUB_LIST=	LIBFILE=${LIBFILE}

PLIST_FILES=	libexec/${DIST_SUBDIR}/${LIBFILE}

do-build:
	@cd ${WRKSRC} && ${GMAKE}

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/${DIST_SUBDIR}
	${INSTALL_PROGRAM} ${WRKSRC}/${LIBFILE} ${STAGEDIR}${PREFIX}/libexec/${DIST_SUBDIR}

.include <bsd.port.mk>
