2001-01-07 08:23:10 +01:00
|
|
|
# ports collection makefile for: perl interface to Berkeley DB v3
|
|
|
|
# Date created: 3 January 2001
|
|
|
|
# Whom: T. William Wells <bill@twwells.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
PORTNAME= BerkeleyDB
|
2003-10-21 13:56:03 +02:00
|
|
|
PORTVERSION= 0.24
|
2001-01-16 18:33:20 +01:00
|
|
|
CATEGORIES= databases perl5
|
|
|
|
MASTER_SITES= $(MASTER_SITE_PERL_CPAN)
|
|
|
|
MASTER_SITE_SUBDIR= BerkeleyDB
|
|
|
|
PKGNAMEPREFIX= p5-
|
2001-01-07 08:23:10 +01:00
|
|
|
|
2003-10-21 13:56:03 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-06-25 21:12:39 +02:00
|
|
|
COMMENT= Perl5 interface to the Berkeley DB package revision 2, 3, 4 or 4.1
|
2001-01-07 08:23:10 +01:00
|
|
|
|
2003-06-25 21:12:39 +02:00
|
|
|
# Default to db3
|
|
|
|
WITH_BDB_VER?= 3
|
|
|
|
|
|
|
|
.if ${WITH_BDB_VER} == 2
|
|
|
|
LIB_DEPENDS= db2.0:${PORTSDIR}/databases/db2
|
|
|
|
.elif ${WITH_BDB_VER} == 3
|
2002-08-22 21:13:46 +02:00
|
|
|
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
|
2003-06-25 21:12:39 +02:00
|
|
|
.elif ${WITH_BDB_VER} == 4
|
|
|
|
LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4
|
|
|
|
.elif ${WITH_BDB_VER} == 41
|
|
|
|
LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41
|
|
|
|
.else
|
|
|
|
.error WITH_BDB_VER must be one between 2, 3, 4 and 41
|
|
|
|
.endif
|
2001-01-07 08:23:10 +01:00
|
|
|
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
|
2002-03-30 05:18:13 +01:00
|
|
|
MAN3= BerkeleyDB.3
|
2003-06-25 21:12:39 +02:00
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO} "This port defaults to use Berkeley DB 3, but you can change it"
|
|
|
|
@${ECHO} "by setting WITH_BDB_VER to either 2, 3, 4 or 41"
|
2002-03-30 05:18:13 +01:00
|
|
|
|
2001-01-07 08:23:10 +01:00
|
|
|
post-patch:
|
2003-06-25 21:12:39 +02:00
|
|
|
@${ECHO} "INCLUDE = ${LOCALBASE}/include/db${WITH_BDB_VER}" > ${WRKSRC}/config.in
|
2002-08-22 21:13:46 +02:00
|
|
|
@${ECHO} "LIB = ${LOCALBASE}/lib" >> ${WRKSRC}/config.in
|
2003-06-25 21:12:39 +02:00
|
|
|
@${ECHO} "DBNAME = -ldb${WITH_BDB_VER}" >> ${WRKSRC}/config.in
|
2002-03-30 05:18:13 +01:00
|
|
|
${PERL} -pi -e '$$_="" if /MAN3PODS/' ${WRKSRC}/Makefile.PL
|
2001-01-07 08:23:10 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|