View | Details | Raw Unified | Return to bug 89445
Collapse All | Expand All

(-)p5-BerkeleyDB/Makefile (-30 / +3 lines)
Lines 7-53 Link Here
7
7
8
PORTNAME=	BerkeleyDB
8
PORTNAME=	BerkeleyDB
9
PORTVERSION=	0.27
9
PORTVERSION=	0.27
10
PORTREVISION=	0
10
PORTREVISION=	1
11
CATEGORIES=	databases perl5
11
CATEGORIES=	databases perl5
12
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
12
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
13
MASTER_SITE_SUBDIR=	BerkeleyDB
13
MASTER_SITE_SUBDIR=	BerkeleyDB
14
PKGNAMEPREFIX=	p5-
14
PKGNAMEPREFIX=	p5-
15
15
16
MAINTAINER=	clsung@FreeBSD.org
16
MAINTAINER=	clsung@FreeBSD.org
17
COMMENT=	Perl5 interface to the Berkeley DB package revision 2, 3, 4 or 4.1
17
COMMENT=	Perl5 interface to the Berkeley DB package
18
18
19
# Default to db3
19
USE_BDB?=	yes
20
WITH_BDB_VER?=	3
21
22
.if ${WITH_BDB_VER} == 2
23
LIB_DEPENDS=	db2.0:${PORTSDIR}/databases/db2
24
BDB_LIB_VER=	db2
25
.elif ${WITH_BDB_VER} == 3
26
LIB_DEPENDS=	db3.3:${PORTSDIR}/databases/db3
27
BDB_LIB_VER=	db3
28
.elif ${WITH_BDB_VER} == 4
29
LIB_DEPENDS=	db4.0:${PORTSDIR}/databases/db4
30
BDB_LIB_VER=	db4
31
.elif ${WITH_BDB_VER} == 41
32
LIB_DEPENDS=	db41.1:${PORTSDIR}/databases/db41
33
BDB_LIB_VER=	db41
34
.elif ${WITH_BDB_VER} == 42
35
LIB_DEPENDS=	db-4.2.2:${PORTSDIR}/databases/db42
36
BDB_LIB_VER=	db-4.2
37
.elif ${WITH_BDB_VER} == 43
38
LIB_DEPENDS=	db-4.3.0:${PORTSDIR}/databases/db43
39
BDB_LIB_VER=	db-4.3
40
.else
41
IGNORE=	"WITH_BDB_VER must be one between 2, 3, 4, 41, 42 and 43"
42
.endif
43
20
44
PERL_CONFIGURE=	yes
21
PERL_CONFIGURE=	yes
45
22
46
MAN3=		BerkeleyDB.3
23
MAN3=		BerkeleyDB.3
47
48
pre-everything::
49
	@${ECHO} "This port defaults to use Berkeley DB 3, but you can change it"
50
	@${ECHO} "by setting WITH_BDB_VER to either 2, 3, 4, 41, 42 or 43"
51
24
52
post-patch:
25
post-patch:
53
	@${ECHO} "INCLUDE = ${LOCALBASE}/include/db${WITH_BDB_VER}" > ${WRKSRC}/config.in
26
	@${ECHO} "INCLUDE = ${LOCALBASE}/include/db${WITH_BDB_VER}" > ${WRKSRC}/config.in

Return to bug 89445