2002-04-06 22:37:22 +02:00
|
|
|
# New ports collection makefile for: p5-DBD-SQLite
|
|
|
|
# Date created: 2002/03/30
|
|
|
|
# Whom: nork@cityfujisawa.ne.jp
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-10-12 18:10:31 +02:00
|
|
|
PORTNAME= DBD-SQLite
|
2006-04-12 12:12:45 +02:00
|
|
|
PORTVERSION= 1.12
|
2002-04-06 22:37:22 +02:00
|
|
|
CATEGORIES= databases perl5
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
|
|
|
MASTER_SITE_SUBDIR= DBD
|
|
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
|
2004-08-13 17:21:20 +02:00
|
|
|
MAINTAINER= perl@FreeBSD.org
|
2004-10-14 21:54:20 +02:00
|
|
|
COMMENT= Provides access to SQLite3 databases through the DBI
|
2002-04-06 22:37:22 +02:00
|
|
|
|
2006-03-22 15:54:15 +01:00
|
|
|
# We use sqlite3's own library & headers since it is more recent
|
|
|
|
# than the bundled version and has an incompatible DB file format.
|
|
|
|
# In this way we can be sure DBD::SQLite can interoperate with
|
|
|
|
# databases/sqlite3.
|
|
|
|
BUILD_DEPENDS= sqlite>=3.3.3:${PORTSDIR}/databases/sqlite3
|
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
|
2002-04-06 22:37:22 +02:00
|
|
|
PERL_CONFIGURE= yes
|
2006-03-22 15:54:15 +01:00
|
|
|
CONFIGURE_ARGS+= USE_LOCAL_SQLITE=0
|
|
|
|
CONFIGURE_ARGS+= SQLITE_LOCATION=${LOCALBASE}
|
2002-04-06 22:37:22 +02:00
|
|
|
|
2004-10-12 18:10:31 +02:00
|
|
|
MAN3= DBD::SQLite.3
|
2002-04-06 22:37:22 +02:00
|
|
|
|
2003-09-16 07:43:52 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|
|
|
.endif
|
|
|
|
|
2005-08-28 09:16:33 +02:00
|
|
|
post-patch:
|
2006-03-22 15:54:15 +01:00
|
|
|
${RM} -f ${WRKSRC}/getsqlite.pl
|
|
|
|
${PERL} -pi -e 's/\$$Config{d_usleep}/1/' ${WRKSRC}/Makefile.PL
|
|
|
|
${PERL} -pi -e '$$_="" if m|getsqlite.pl|' ${WRKSRC}/MANIFEST
|
2004-10-12 17:59:16 +02:00
|
|
|
|
2003-09-16 07:43:52 +02:00
|
|
|
.include <bsd.port.post.mk>
|