1 ################################################################################
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
=
19 define LEVELDB_BUILD_CMDS
20 $(TARGET_MAKE_ENV
) $(TARGET_CONFIGURE_OPTS
) $(MAKE
) \
21 $(LEVELDB_MAKE_ARGS
) -C
$(@D
)
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
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
36 $(eval
$(generic-package
))