2015-01-13 11:53:57 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# leveldb
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-07-30 18:09:10 +02:00
|
|
|
LEVELDB_VERSION = v1.20
|
2015-01-13 11:53:57 +01:00
|
|
|
LEVELDB_SITE = $(call github,google,leveldb,$(LEVELDB_VERSION))
|
2017-03-30 15:43:38 +02:00
|
|
|
LEVELDB_LICENSE = BSD-3-Clause
|
2015-01-13 11:53:57 +01:00
|
|
|
LEVELDB_LICENSE_FILES = LICENSE
|
|
|
|
LEVELDB_INSTALL_STAGING = YES
|
|
|
|
LEVELDB_DEPENDENCIES = snappy
|
|
|
|
|
|
|
|
# Disable the shared library for static only build
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2016-09-08 14:26:16 +02:00
|
|
|
LEVELDB_MAKE_ARGS += SHARED_LIBS= SHARED_PROGRAMS=
|
2015-01-13 11:53:57 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
define LEVELDB_BUILD_CMDS
|
2019-01-29 20:39:29 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE1) \
|
2015-01-13 11:53:57 +01:00
|
|
|
$(LEVELDB_MAKE_ARGS) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LEVELDB_INSTALL_STAGING_CMDS
|
2019-01-29 20:39:29 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) \
|
2015-01-13 11:53:57 +01:00
|
|
|
INSTALL_ROOT=$(STAGING_DIR) INSTALL_PREFIX=/usr \
|
|
|
|
$(LEVELDB_MAKE_ARGS) -C $(@D) install
|
2019-01-02 21:56:28 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/out-static/libmemenv.a $(STAGING_DIR)/usr/lib/libmemenv.a
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/helpers/memenv/memenv.h $(STAGING_DIR)/usr/include/helpers/memenv/memenv.h
|
2015-01-13 11:53:57 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LEVELDB_INSTALL_TARGET_CMDS
|
2019-01-29 20:39:29 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) \
|
2015-01-13 11:53:57 +01:00
|
|
|
INSTALL_ROOT=$(TARGET_DIR) INSTALL_PREFIX=/usr \
|
|
|
|
$(LEVELDB_MAKE_ARGS) -C $(@D) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|