2024-04-04 18:29:37 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# lmdb
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
LMDB_VERSION = 0.9.31
|
|
|
|
LMDB_SITE = $(call github,LMDB,lmdb,LMDB_$(LMDB_VERSION))
|
|
|
|
LMDB_LICENSE = OLDAP-2.8
|
|
|
|
LMDB_LICENSE_FILES = libraries/liblmdb/LICENSE
|
|
|
|
LMDB_INSTALL_STAGING = YES
|
|
|
|
|
2024-05-20 10:07:06 +02:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
LMDB_ILBIBS += liblmdb.a
|
|
|
|
else ifeq ($(BR2_SHARED_LIBS),y)
|
|
|
|
LMDB_ILBIBS += liblmdb.so
|
|
|
|
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
|
|
LMDB_ILBIBS += liblmdb.a liblmdb.so
|
|
|
|
endif
|
|
|
|
|
2024-04-04 18:29:37 +02:00
|
|
|
define LMDB_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)/libraries/liblmdb \
|
2024-05-20 10:07:06 +02:00
|
|
|
ILIBS="$(LMDB_ILBIBS)" \
|
2024-04-04 18:29:37 +02:00
|
|
|
XCFLAGS="$(TARGET_CFLAGS)"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LMDB_INSTALL_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libraries/liblmdb \
|
2024-05-20 10:07:06 +02:00
|
|
|
ILIBS="$(LMDB_ILBIBS)" \
|
2024-04-04 18:29:37 +02:00
|
|
|
DESTDIR="$(STAGING_DIR)" \
|
|
|
|
prefix=/usr \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LMDB_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libraries/liblmdb \
|
2024-05-20 10:07:06 +02:00
|
|
|
ILIBS="$(LMDB_ILBIBS)" \
|
2024-04-04 18:29:37 +02:00
|
|
|
DESTDIR="$(TARGET_DIR)" \
|
|
|
|
prefix=/usr \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|