diff options
author | vanilla <vanilla@FreeBSD.org> | 2004-07-19 16:43:23 +0000 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2004-07-19 16:43:23 +0000 |
commit | 918911e28ca6759e40783a0f16f5030ef1f87071 (patch) | |
tree | 04fca546ab9df9651a2e3a8cb95734c9ff0eb6c0 /databases/p5-BerkeleyDB | |
parent | a0c292e8d0557d4c69429b509469ebeb180e4c5d (diff) | |
download | FreeBSD-ports-918911e28ca6759e40783a0f16f5030ef1f87071.zip FreeBSD-ports-918911e28ca6759e40783a0f16f5030ef1f87071.tar.gz |
- 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/p5-BerkeleyDB')
-rw-r--r-- | databases/p5-BerkeleyDB/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/databases/p5-BerkeleyDB/Makefile b/databases/p5-BerkeleyDB/Makefile index 9c07272a..661f899 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> |