toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / leveldb / leveldb.mk
blobca2ed703a0bdc04c8c7e1c074e278f5601c8314e
1 ################################################################################
3 # leveldb
5 ################################################################################
7 LEVELDB_VERSION = v1.19
8 LEVELDB_SITE = $(call github,google,leveldb,$(LEVELDB_VERSION))
9 LEVELDB_LICENSE = BSD-3c
10 LEVELDB_LICENSE_FILES = LICENSE
11 LEVELDB_INSTALL_STAGING = YES
12 LEVELDB_DEPENDENCIES = snappy
14 # Disable the shared library for static only build
15 ifeq ($(BR2_STATIC_LIBS),y)
16 LEVELDB_MAKE_ARGS += SHARED_LIBS= SHARED_PROGRAMS=
17 endif
19 define LEVELDB_BUILD_CMDS
20 $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) \
21 $(LEVELDB_MAKE_ARGS) -C $(@D)
22 endef
24 define LEVELDB_INSTALL_STAGING_CMDS
25 $(TARGET_MAKE_ENV) $(MAKE) \
26 INSTALL_ROOT=$(STAGING_DIR) INSTALL_PREFIX=/usr \
27 $(LEVELDB_MAKE_ARGS) -C $(@D) install
28 endef
30 define LEVELDB_INSTALL_TARGET_CMDS
31 $(TARGET_MAKE_ENV) $(MAKE) \
32 INSTALL_ROOT=$(TARGET_DIR) INSTALL_PREFIX=/usr \
33 $(LEVELDB_MAKE_ARGS) -C $(@D) install
34 endef
36 $(eval $(generic-package))