aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2004-07-20 00:43:23 +0800
committervanilla <vanilla@FreeBSD.org>2004-07-20 00:43:23 +0800
commit918911e28ca6759e40783a0f16f5030ef1f87071 (patch)
tree04fca546ab9df9651a2e3a8cb95734c9ff0eb6c0 /databases
parenta0c292e8d0557d4c69429b509469ebeb180e4c5d (diff)
downloadfreebsd-ports-gnome-918911e28ca6759e40783a0f16f5030ef1f87071.tar.gz
freebsd-ports-gnome-918911e28ca6759e40783a0f16f5030ef1f87071.tar.zst
freebsd-ports-gnome-918911e28ca6759e40783a0f16f5030ef1f87071.zip
- fixed when WITH_BDB_VER=42
=> Note (probably harmless): No library found for -ldb42 - use BDB_LIB_VER instead of WITH_BDB_VER to library linking PR: ports/69305 Submitted by: maintainer
Diffstat (limited to 'databases')
-rw-r--r--databases/p5-BerkeleyDB/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/databases/p5-BerkeleyDB/Makefile b/databases/p5-BerkeleyDB/Makefile
index 9c07272adbb3..661f899b66ca 100644
--- a/databases/p5-BerkeleyDB/Makefile
+++ b/databases/p5-BerkeleyDB/Makefile
@@ -7,6 +7,7 @@
PORTNAME= BerkeleyDB
PORTVERSION= 0.25
+PORTREVISION= 1
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= BerkeleyDB
@@ -20,14 +21,19 @@ 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
.else
.error WITH_BDB_VER must be one between 2, 3, 4, 41 and 42
.endif
@@ -43,7 +49,7 @@ pre-everything::
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
+ @${ECHO} "DBNAME = -l${BDB_LIB_VER}" >> ${WRKSRC}/config.in
${PERL} -pi -e '$$_="" if /MAN3PODS/' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>