• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/leveldb/0002-Add-install-recipe.patch
Steve JamesSteve James committed ed2346e6ed213 Jan 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 818d59f093100d5f39db34d5686a9d983172d307 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
5
​
6
Upstream-Status: Submitted [https://github.com/google/leveldb/pull/276]
7
​
8
Signed-off-by: Steve James <ste@junkomatic.net>
9
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
---
11
 Makefile | 16 ++++++++++++++++
12
 1 file changed, 16 insertions(+)
13
​
14
diff --git a/Makefile b/Makefile
15
index 2bd2cad..530f2c3 100644
16
--- a/Makefile
17
+++ b/Makefile
18
@@ -225,3 +225,19 @@ else
19
 .c.o:
20
    $(CC) $(CFLAGS) -c $< -o $@
21
 endif
22
+
23
+INSTALL_ROOT = /
24
+INSTALL_PREFIX= usr/local
25
+
26
+install: $(SHARED) $(LIBRARY)
27
+   install -d -m 0755 $(INSTALL_ROOT)$(INSTALL_PREFIX)/include/leveldb
28
+   install -D -m 0644 include/leveldb/*.h $(INSTALL_ROOT)$(INSTALL_PREFIX)/include/leveldb
29
+   install -d -m 0755 $(INSTALL_ROOT)$(INSTALL_PREFIX)/lib
30
+  ifneq (,$(LIBRARY))
31
+   install -m 0644 $(LIBRARY) $(INSTALL_ROOT)$(INSTALL_PREFIX)/lib
32
+  endif
33
+  ifneq (,$(SHARED))
34
+   install -m 0755 $(SHARED3) $(INSTALL_ROOT)$(INSTALL_PREFIX)/lib
35
+   ln -sf $(SHARED3) $(INSTALL_ROOT)$(INSTALL_PREFIX)/lib/$(SHARED1)
36
+   ln -sf $(SHARED3) $(INSTALL_ROOT)$(INSTALL_PREFIX)/lib/$(SHARED2)
37
+  endif
38
-- 
39
2.1.0
40
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.