1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/databases/p5-BerkeleyDB/Makefile
Ying-Chieh Liao 123ef17f95 upgrade to 0.25
assign maintainership

PR:		58822
Submitted by:	Cheng-Lung Sung <clsung@dragon2.net>
2003-11-03 16:08:20 +00:00

48 lines
1.3 KiB
Makefile

# ports collection makefile for: perl interface to Berkeley DB v3
# Date created: 3 January 2001
# Whom: T. William Wells <bill@twwells.com>
#
# $FreeBSD$
#
PORTNAME= BerkeleyDB
PORTVERSION= 0.25
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= BerkeleyDB
PKGNAMEPREFIX= p5-
MAINTAINER= clsung@dragon2.net
COMMENT= Perl5 interface to the Berkeley DB package revision 2, 3, 4 or 4.1
# Default to db3
WITH_BDB_VER?= 3
.if ${WITH_BDB_VER} == 2
LIB_DEPENDS= db2.0:${PORTSDIR}/databases/db2
.elif ${WITH_BDB_VER} == 3
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
.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
PERL_CONFIGURE= yes
MAN3= BerkeleyDB.3
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"
post-patch:
@${ECHO} "INCLUDE = ${LOCALBASE}/include/db${WITH_BDB_VER}" > ${WRKSRC}/config.in
@${ECHO} "LIB = ${LOCALBASE}/lib" >> ${WRKSRC}/config.in
@${ECHO} "DBNAME = -ldb${WITH_BDB_VER}" >> ${WRKSRC}/config.in
${PERL} -pi -e '$$_="" if /MAN3PODS/' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>