e14ae6f9e4
Since version 1.19 Makefile variable names changed. Update the build command accordingly. While at it, remove variables that Makefile doesn't use anymore. This change means that the static library is always build, even when BR2_SHARED_LIBS=y, since the static library name is hard coded in leveldb Makefile. Fixes: http://autobuild.buildroot.net/results/00c/00c8c5a1d6001eaebfe2a9f848dd292c91bf6a79/ Cc: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
37 lines
995 B
Makefile
37 lines
995 B
Makefile
################################################################################
|
|
#
|
|
# leveldb
|
|
#
|
|
################################################################################
|
|
|
|
LEVELDB_VERSION = v1.19
|
|
LEVELDB_SITE = $(call github,google,leveldb,$(LEVELDB_VERSION))
|
|
LEVELDB_LICENSE = BSD-3c
|
|
LEVELDB_LICENSE_FILES = LICENSE
|
|
LEVELDB_INSTALL_STAGING = YES
|
|
LEVELDB_DEPENDENCIES = snappy
|
|
|
|
# Disable the shared library for static only build
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
LEVELDB_MAKE_ARGS += SHARED_LIBS= SHARED_PROGRAMS=
|
|
endif
|
|
|
|
define LEVELDB_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) \
|
|
$(LEVELDB_MAKE_ARGS) -C $(@D)
|
|
endef
|
|
|
|
define LEVELDB_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) \
|
|
INSTALL_ROOT=$(STAGING_DIR) INSTALL_PREFIX=/usr \
|
|
$(LEVELDB_MAKE_ARGS) -C $(@D) install
|
|
endef
|
|
|
|
define LEVELDB_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) \
|
|
INSTALL_ROOT=$(TARGET_DIR) INSTALL_PREFIX=/usr \
|
|
$(LEVELDB_MAKE_ARGS) -C $(@D) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|