summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-15 06:11:26 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-15 06:11:26 -0500
commit639cb5cd2a0905c3c5ae6f144e27aa8218b5f538 (patch)
tree474642993ff21979d7db4322cdd799a9152b81ad
parent6e0c7ddf49a96c09e25397810d2211164e833568 (diff)
downloadpackages-639cb5cd2a0905c3c5ae6f144e27aa8218b5f538.tar.gz
packages-639cb5cd2a0905c3c5ae6f144e27aa8218b5f538.tar.bz2
packages-639cb5cd2a0905c3c5ae6f144e27aa8218b5f538.tar.xz
packages-639cb5cd2a0905c3c5ae6f144e27aa8218b5f538.zip
user/lmdb: pull in, bump, fix
-rw-r--r--user/lmdb/APKBUILD36
-rw-r--r--user/lmdb/lmdb_make.patch18
2 files changed, 54 insertions, 0 deletions
diff --git a/user/lmdb/APKBUILD b/user/lmdb/APKBUILD
new file mode 100644
index 000000000..149173dca
--- /dev/null
+++ b/user/lmdb/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Olivier Mauras <olivier@mauras.ch>
+# Maintainer:
+pkgname=lmdb
+pkgver=0.9.22
+pkgrel=0
+pkgdesc="Lightning Memory-Mapped Database"
+url="http://symas.com/mdb/"
+arch="all"
+license="OLDAP-2.8"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
+source="https://github.com/LMDB/lmdb/archive/LMDB_$pkgver.tar.gz
+ lmdb_make.patch"
+builddir="$srcdir/$pkgname-LMDB_$pkgver/libraries/liblmdb"
+
+build() {
+ cd "$builddir"
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+tools() {
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr
+}
+
+sha512sums="49afca13b9683ed571c274380bb5e111236903b12d19bcb8781d6bbc00f711766b0d62de0b36536c85309cc9ff9e9d0aaa708e27bae9be6cfcaed8ba91e5545d LMDB_0.9.22.tar.gz
+151022cad94d2138146e3cd36622171f07fb03cc66d116ac9ce766c61a8b1aa65b521bfda88b27456204f53ecd430bdeddb4d7786956a12ed0cd53f8323ffd03 lmdb_make.patch"
diff --git a/user/lmdb/lmdb_make.patch b/user/lmdb/lmdb_make.patch
new file mode 100644
index 000000000..deb49ee76
--- /dev/null
+++ b/user/lmdb/lmdb_make.patch
@@ -0,0 +1,18 @@
+diff --git a/Makefile b/Makefile
+index 0940c49..7a47dc2 100644
+--- a/Makefile
++++ b/Makefile
+@@ -23,11 +23,11 @@ AR = ar
+ W = -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized
+ THREADS = -pthread
+ OPT = -O2 -g
+-CFLAGS = $(THREADS) $(OPT) $(W) $(XCFLAGS)
++CFLAGS = $(THREADS) $(OPT) $(W) $(XCFLAGS) -fPIC
+ LDLIBS =
+ SOLIBS =
+ SOEXT = .so
+-prefix = /usr/local
++prefix = /usr
+ exec_prefix = $(prefix)
+ bindir = $(exec_prefix)/bin
+ libdir = $(exec_prefix)/lib