Initial liblmdb packaging (#4835)
This commit is contained in:
parent
a533751b61
commit
8a85156fc1
23
packages/liblmdb/Makefile.patch
Normal file
23
packages/liblmdb/Makefile.patch
Normal file
@ -0,0 +1,23 @@
|
||||
diff -uNr lmdb-LMDB_0.9.24/libraries/liblmdb/Makefile lmdb-LMDB_0.9.24.mod/libraries/liblmdb/Makefile
|
||||
--- lmdb-LMDB_0.9.24/libraries/liblmdb/Makefile 2019-07-19 19:41:12.000000000 +0300
|
||||
+++ lmdb-LMDB_0.9.24.mod/libraries/liblmdb/Makefile 2020-01-24 20:00:21.378688952 +0200
|
||||
@@ -18,8 +18,8 @@
|
||||
# There may be other macros in mdb.c of interest. You should
|
||||
# read mdb.c before changing any of them.
|
||||
#
|
||||
-CC = gcc
|
||||
-AR = ar
|
||||
+CC ?= gcc
|
||||
+AR ?= ar
|
||||
W = -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized
|
||||
THREADS = -pthread
|
||||
OPT = -O2 -g
|
||||
@@ -27,7 +27,7 @@
|
||||
LDLIBS =
|
||||
SOLIBS =
|
||||
SOEXT = .so
|
||||
-prefix = /usr/local
|
||||
+prefix ?= /usr/local
|
||||
exec_prefix = $(prefix)
|
||||
bindir = $(exec_prefix)/bin
|
||||
libdir = $(exec_prefix)/lib
|
16
packages/liblmdb/build.sh
Normal file
16
packages/liblmdb/build.sh
Normal file
@ -0,0 +1,16 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://symas.com/lmdb/
|
||||
TERMUX_PKG_DESCRIPTION="LMDB implements a simplified variant of the BerkeleyDB (BDB) API."
|
||||
TERMUX_PKG_LICENSE="OpenLDAP"
|
||||
TERMUX_PKG_VERSION=0.9.24
|
||||
TERMUX_PKG_SRCURL=https://github.com/LMDB/lmdb/archive/LMDB_0.9.24.tar.gz
|
||||
TERMUX_PKG_SHA256=44602436c52c29d4f301f55f6fd8115f945469b868348e3cddaf91ab2473ea26
|
||||
TERMUX_PKG_EXTRA_MAKE_ARGS="-C $TERMUX_PKG_SRCDIR/libraries/liblmdb"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
CPPFLAGS+=" -DMDB_USE_ROBUST=0"
|
||||
}
|
||||
|
||||
termux_step_install_license() {
|
||||
install -Dm600 "$TERMUX_PKG_SRCDIR/libraries/liblmdb/LICENSE" \
|
||||
"$TERMUX_PREFIX/share/doc/$TERMUX_PKG_NAME/LICENSE"
|
||||
}
|
Loading…
Reference in New Issue
Block a user