diff options
author | clsung <clsung@FreeBSD.org> | 2005-11-24 09:43:21 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2005-11-24 09:43:21 +0800 |
commit | 06e5f96f95fe0ede8d9a574f48b447bd30de2638 (patch) | |
tree | 04be08a4910af24d9528fa5895d047354cd7acb9 /databases | |
parent | 0473ca8f96341619fd1eb05e1569523d5e68bffa (diff) | |
download | freebsd-ports-graphics-06e5f96f95fe0ede8d9a574f48b447bd30de2638.tar.gz freebsd-ports-graphics-06e5f96f95fe0ede8d9a574f48b447bd30de2638.tar.zst freebsd-ports-graphics-06e5f96f95fe0ede8d9a574f48b447bd30de2638.zip |
- prevision revision fails all BDB version, so roll back temporary.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/p5-BerkeleyDB/Makefile | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/databases/p5-BerkeleyDB/Makefile b/databases/p5-BerkeleyDB/Makefile index 5459c8822b7..221347570f6 100644 --- a/databases/p5-BerkeleyDB/Makefile +++ b/databases/p5-BerkeleyDB/Makefile @@ -7,21 +7,48 @@ PORTNAME= BerkeleyDB PORTVERSION= 0.27 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= BerkeleyDB PKGNAMEPREFIX= p5- MAINTAINER= clsung@FreeBSD.org -COMMENT= Perl5 interface to the Berkeley DB package +COMMENT= Perl5 interface to the Berkeley DB package revision 2, 3, 4 or 4.1 -USE_BDB?= yes +# 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 +.else +IGNORE= "WITH_BDB_VER must be one between 2, 3, 4, 41, 42 and 43" +.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, 41, 42 or 43" + post-patch: @${ECHO} "INCLUDE = ${LOCALBASE}/include/db${WITH_BDB_VER}" > ${WRKSRC}/config.in @${ECHO} "LIB = ${LOCALBASE}/lib" >> ${WRKSRC}/config.in |