#
# $Id$
#
PORTNAME=	DBD-SQLite
PORTVERSION=	1.54
CATEGORIES=	databases perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Provides access to SQLite3 databases through the DBI

BUILD_DEPENDS=	p5-DBI>=1.57:perl/p5-DBI
RUN_DEPENDS:=	${BUILD_DEPENDS}
LIB_DEPENDS=	libsqlite3.so:data/sqlite3


PORTSCOUT=	limit:^[0-9\.]*$$

USES=		perl5
USE_PERL5=	configure

#OPTIONS_DEFINE=	BUNDLED_SQLITE
#OPTIONS_DEFAULT=BUNDLED_SQLITE

#BUNDLED_SQLITE_DESC=		Use bundled SQLite (otherwise, from databases/sqlite3)
#BUNDLED_SQLITE_LIB_DEPENDS_OFF=	libsqlite3.so:databases/sqlite3
#BUNDLED_SQLITE_CONFIGURE_OFF=	USE_LOCAL_SQLITE=0 SQLITE_LOCATION=${LOCALBASE}

#post-patch-BUNDLED_SQLITE-off:
post-patch:
	${REINPLACE_CMD} -e 's/if ( 0 )/if ( 1 )/' ${WRKSRC}/Makefile.PL

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/DBD/SQLite/SQLite.so

.include <bsd.port.mk>
#EOF
