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
|
2005-11-02 09:04:50 +01:00
|
|
|
PORTVERSION= 0.27
|
2006-01-25 08:08:35 +01:00
|
|
|
PORTREVISION= 3
|
2001-01-16 18:33:20 +01:00
|
|
|
CATEGORIES= databases perl5
|
2003-11-03 17:08:20 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
2001-01-16 18:33:20 +01:00
|
|
|
MASTER_SITE_SUBDIR= BerkeleyDB
|
|
|
|
PKGNAMEPREFIX= p5-
|
2001-01-07 08:23:10 +01:00
|
|
|
|
2004-08-20 04:56:44 +02:00
|
|
|
MAINTAINER= clsung@FreeBSD.org
|
2006-01-25 08:08:35 +01:00
|
|
|
COMMENT= Perl5 interface to the Berkeley DB package revision 2, 3, 4 or 4.*
|
2001-01-07 08:23:10 +01:00
|
|
|
|
2005-11-24 02:43:21 +01:00
|
|
|
# Default to db3
|
|
|
|
WITH_BDB_VER?= 3
|
|
|
|
|
|
|
|
.if ${WITH_BDB_VER} == 2
|
|
|
|
LIB_DEPENDS= db2.0:${PORTSDIR}/databases/db2
|
|
|
|
BDB_LIB_VER= db2
|
|
|
|
.elif ${WITH_BDB_VER} == 3
|
|
|
|
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
|
|
|
|
BDB_LIB_VER= db3
|
|
|
|
.elif ${WITH_BDB_VER} == 4
|
|
|
|
LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4
|
|
|
|
BDB_LIB_VER= db4
|
|
|
|
.elif ${WITH_BDB_VER} == 41
|
|
|
|
LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41
|
|
|
|
BDB_LIB_VER= db41
|
|
|
|
.elif ${WITH_BDB_VER} == 42
|
|
|
|
LIB_DEPENDS= db-4.2.2:${PORTSDIR}/databases/db42
|
|
|
|
BDB_LIB_VER= db-4.2
|
|
|
|
.elif ${WITH_BDB_VER} == 43
|
|
|
|
LIB_DEPENDS= db-4.3.0:${PORTSDIR}/databases/db43
|
|
|
|
BDB_LIB_VER= db-4.3
|
2006-01-25 08:08:35 +01:00
|
|
|
.elif ${WITH_BDB_VER} == 44
|
|
|
|
LIB_DEPENDS= db-4.4.0:${PORTSDIR}/databases/db44
|
|
|
|
BDB_LIB_VER= db-4.4
|
2005-11-24 02:43:21 +01:00
|
|
|
.else
|
2006-01-25 08:08:35 +01:00
|
|
|
IGNORE= "WITH_BDB_VER must be one between 2, 3, 4, 41, 42, 43 and 44"
|
2005-11-24 02:43:21 +01:00
|
|
|
.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
|
|
|
|
2005-11-24 02:43:21 +01:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO} "This port defaults to use Berkeley DB 3, but you can change it"
|
2006-01-25 08:08:35 +01:00
|
|
|
@${ECHO} "by setting WITH_BDB_VER to either 2, 3, 4, 41, 42, 43 or 44"
|
2005-11-24 02:43:21 +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
|
2004-07-19 18:43:23 +02:00
|
|
|
@${ECHO} "DBNAME = -l${BDB_LIB_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>
|