summaryrefslogtreecommitdiff
path: root/repo/lmdb/lmdb.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
committerdavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
commitccc722b7ed330198d82a3cf28ead76d6d107a70a (patch)
tree7611b3cc4f3ca681524fa28b174a0253eb802e0e /repo/lmdb/lmdb.xibuild
parent9ee32689f0b57b9e1de6d22c84ce8e3700b6122b (diff)
added java
Diffstat (limited to 'repo/lmdb/lmdb.xibuild')
-rw-r--r--repo/lmdb/lmdb.xibuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/repo/lmdb/lmdb.xibuild b/repo/lmdb/lmdb.xibuild
new file mode 100644
index 0000000..222a220
--- /dev/null
+++ b/repo/lmdb/lmdb.xibuild
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+NAME="lmdb"
+DESC="Lightning Memory-Mapped Database"
+
+MAKEDEPS=""
+
+PKG_VER=0.9.29
+SOURCE="https://github.com/LMDB/lmdb/archive/refs/tags/LMDB_$PKG_VER.tar.gz"
+
+ADDITIONAL="
+cacheflush.patch
+lmdb-make.patch
+lmdb.pc
+"
+
+prepare() {
+ cd libraries/liblmdb
+ apply_patches
+ sed -i "s|@@VERSION@@|$PKG_VER|" -i "$BUILD_ROOT"/*.pc
+}
+
+build() {
+ make CFLAGS="$CFLAGS -fPIC"
+}
+
+check() {
+ LD_LIBRARY_PATH="$PWD" make test
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" prefix=/usr install
+
+ cd $BUILD_ROOT
+ for f in *.pc; do
+ install -Dm0644 $f "$PKG_DEST"/usr/lib/pkgconfig/$f
+ done
+}