Hi,

I've reattached the patch for lmdb update.
This time I've also added a patch from debian which adds a pkgconfig file.

There has been addition of a symbol (MAP_NOSYNC) so I've bumped the minor.

Thanks,
Aisha



diff --git a/databases/lmdb/Makefile b/databases/lmdb/Makefile
index 7d110399173..253116d75d2 100644
--- a/databases/lmdb/Makefile
+++ b/databases/lmdb/Makefile
@@ -2,15 +2,14 @@
COMMENT = Symas Lightning Memory-Mapped Database -VERSION = 0.9.24
+VERSION =      0.9.29
-GH_ACCOUNT = LMDB
-GH_PROJECT =   lmdb
-GH_TAGNAME =   LMDB_${VERSION}
+PKGNAME =      lmdb-${VERSION}
+DISTNAME =     openldap-LMDB_${VERSION}
-DISTNAME = ${GH_PROJECT}-${VERSION}
+MASTER_SITES = 
https://git.openldap.org/openldap/openldap/-/archive/LMDB_${VERSION}/
-SHARED_LIBS += lmdb 0.0 # 0.0
+SHARED_LIBS +=  lmdb   0.1 # 0.0
CATEGORIES = databases @@ -31,6 +30,10 @@ MAKE_FLAGS = CC="${CC}" XCFLAGS="${CFLAGS}" \
                        SHARED_VERSION_MAJOR=${LIBlmdb_VERSION:R} \
                        SHARED_VERSION_MINOR=${LIBlmdb_VERSION:E}
-WRKDIST = ${WRKDIR}/lmdb-${GH_TAGNAME}/libraries/liblmdb
+WRKDIST =              ${WRKDIR}/openldap-LMDB_${VERSION}/libraries/liblmdb
+
+post-install:
+       cd ${WRKSRC} && \
+       ${SUBST_CMD} -c lmdb.pc ${PREFIX}/lib/pkgconfig/lmdb.pc
.include <bsd.port.mk>
diff --git a/databases/lmdb/distinfo b/databases/lmdb/distinfo
index b66ab20b0e7..58dc82d354a 100644
--- a/databases/lmdb/distinfo
+++ b/databases/lmdb/distinfo
@@ -1,2 +1,2 @@
-SHA256 (lmdb-0.9.24.tar.gz) = RGAkNsUsKdTzAfVfb9gRX5RUabhoNI483a+RqyRz6iY=
-SIZE (lmdb-0.9.24.tar.gz) = 143916
+SHA256 (openldap-LMDB_0.9.29.tar.gz) = 
1MZoFnotcD75HbcztAabi3Tbw3RAWFW+Zia0Xip+LdM=
+SIZE (openldap-LMDB_0.9.29.tar.gz) = 144545
diff --git a/databases/lmdb/patches/patch-lmdb_pc 
b/databases/lmdb/patches/patch-lmdb_pc
new file mode 100644
index 00000000000..e313b907346
--- /dev/null
+++ b/databases/lmdb/patches/patch-lmdb_pc
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Index: lmdb.pc
+--- lmdb.pc.orig
++++ lmdb.pc
+@@ -0,0 +1,10 @@
++prefix=${LOCALBASE}
++libdir=${prefix}/lib
++includedir=${prefix}/include
++
++Name: liblmdb
++Description: Lightning Memory-Mapped Database
++URL: https://symas.com/products/lightning-memory-mapped-database/
++Version: 0.9.29
++Libs: -L${libdir} -llmdb
++Cflags: -I${includedir}
diff --git a/databases/lmdb/patches/patch-mdb_c 
b/databases/lmdb/patches/patch-mdb_c
index e8bf2dc8687..29df2cf615f 100644
--- a/databases/lmdb/patches/patch-mdb_c
+++ b/databases/lmdb/patches/patch-mdb_c
@@ -5,7 +5,7 @@ enforce MDB_WRITEMAP, because we have no UBC (Unified Buffer 
Cache).
 Index: mdb.c
 --- mdb.c.orig
 +++ mdb.c
-@@ -4968,6 +4967,7 @@ mdb_env_open(MDB_env *env, const char *path, unsigned
+@@ -4976,6 +4976,7 @@ mdb_env_open(MDB_env *env, const char *path, unsigned
                /* silently ignore WRITEMAP when we're only getting read access 
*/
                flags &= ~MDB_WRITEMAP;
        } else {
diff --git a/databases/lmdb/pkg/PLIST b/databases/lmdb/pkg/PLIST
index 3dc9f90c051..e0282a3490d 100644
--- a/databases/lmdb/pkg/PLIST
+++ b/databases/lmdb/pkg/PLIST
@@ -6,6 +6,7 @@
 include/lmdb.h
 @static-lib lib/liblmdb.a
 @lib lib/liblmdb.so.${LIBlmdb_VERSION}
+lib/pkgconfig/lmdb.pc
 @man man/man1/mdb_copy.1
 @man man/man1/mdb_dump.1
 @man man/man1/mdb_load.1

Reply via email to