diff options
Diffstat (limited to 'repo/lmdb/lmdb.xibuild')
-rw-r--r-- | repo/lmdb/lmdb.xibuild | 38 |
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 +} |