cmake: bump version to 3.6.3
[buildroot-gz.git] / package / leveldb / 0002-Add-install-recipe.patch
blobf65916f1eb4613b74e8c1f01adcfe84ebfc6b337
1 From bf646b73391d3d2d0b9780a399dd24880c66b9ab Mon Sep 17 00:00:00 2001
2 From: Steve James <ste@junkomatic.net>
3 Date: Sun, 5 Apr 2015 16:30:46 +0200
4 Subject: [PATCH 2/2] Add install recipe
6 Upstream-Status: Rejected [https://github.com/google/leveldb/pull/276]
8 Signed-off-by: Steve James <ste@junkomatic.net>
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 [baruch: update for v1.19]
11 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
12 ---
13 Makefile | 14 ++++++++++++++
14 1 file changed, 14 insertions(+)
16 diff --git a/Makefile b/Makefile
17 index 07a5a1ead6fd..c87023db527a 100644
18 --- a/Makefile
19 +++ b/Makefile
20 @@ -412,3 +412,17 @@ $(SHARED_OUTDIR)/%.o: %.cc
22 $(SHARED_OUTDIR)/%.o: %.c
23 $(CC) $(CFLAGS) $(PLATFORM_SHARED_CFLAGS) -c $< -o $@
25 +INSTALL_ROOT = /
26 +INSTALL_PREFIX= usr/local
28 +install: all
29 + install -d -m 0755 $(INSTALL_ROOT)$(INSTALL_PREFIX)/include/leveldb
30 + install -D -m 0644 include/leveldb/*.h $(INSTALL_ROOT)$(INSTALL_PREFIX)/include/leveldb
31 + install -d -m 0755 $(INSTALL_ROOT)$(INSTALL_PREFIX)/lib
32 + install -m 0644 $(STATIC_OUTDIR)/libleveldb.a $(INSTALL_ROOT)$(INSTALL_PREFIX)/lib
33 +ifneq (,$(SHARED_LIBS))
34 + install -m 0755 $(SHARED_OUTDIR)/$(SHARED_LIB3) $(INSTALL_ROOT)$(INSTALL_PREFIX)/lib
35 + ln -sf $(SHARED_LIB3) $(INSTALL_ROOT)$(INSTALL_PREFIX)/lib/$(SHARED_LIB1)
36 + ln -sf $(SHARED_LIB3) $(INSTALL_ROOT)$(INSTALL_PREFIX)/lib/$(SHARED_LIB2)
37 +endif
38 --
39 2.1.0