Package: leveldb / 1.17-1

0113-makefile_memenv.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Last-Update: 2013-02-21
Forwarded: no
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: install "memenv" component.
 This patch will install two additional files to libleveldb-dev:
  + include/helpers/memenv.h
  + lib/*/libmemenv.a

---
 Makefile |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--- leveldb.orig/Makefile
+++ leveldb/Makefile
@@ -92,18 +92,20 @@ $(SHARED3):
 
 endif  # PLATFORM_SHARED_EXT
 
-all: $(SHARED) $(LIBRARY)
+all: $(SHARED) $(LIBRARY) $(MEMENVLIBRARY)
 
 install: all
 	install -d $(DESTDIR)$(PREFIX)/$(LIBDIR)
-	install -d $(DESTDIR)$(PREFIX)/$(INCLUDEDIR)/leveldb
+	install -d $(DESTDIR)$(PREFIX)/$(INCLUDEDIR)/leveldb/helpers
 	install -m 0644 $(LIBRARY) $(DESTDIR)$(PREFIX)/$(LIBDIR)
+	install -m 0644 $(MEMENVLIBRARY) $(DESTDIR)$(PREFIX)/$(LIBDIR)
 ifneq ($(PLATFORM_SHARED_EXT),)
 	install -m 0644 $(SHARED3) $(DESTDIR)$(PREFIX)/$(LIBDIR)
 	cd $(DESTDIR)$(PREFIX)/$(LIBDIR) && ln -sf $(SHARED3) $(SHARED2)
 	cd $(DESTDIR)$(PREFIX)/$(LIBDIR) && ln -sf $(SHARED3) $(SHARED1)
 endif
 	install -m 0644 include/leveldb/* $(DESTDIR)$(PREFIX)/$(INCLUDEDIR)/leveldb
+	install -m 0644 helpers/memenv/*.h $(DESTDIR)$(PREFIX)/$(INCLUDEDIR)/leveldb/helpers
 
 check: all $(PROGRAMS) $(TESTS)
 	for t in $(TESTS); do echo "***** Running $$t"; ./$$t || exit 1; done