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-05-21 20:25:59 +02:00
|
|
|
LMDB_MAKE_OPTS += \
|
|
|
|
AR="$(TARGET_AR)" \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
ILIBS="$(LMDB_ILBIBS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
OPT="" \
|
|
|
|
XCFLAGS="$(TARGET_CFLAGS)"
|
|
|
|
|
2024-04-04 18:29:37 +02:00
|
|
|
define LMDB_BUILD_CMDS
|
2024-05-21 20:25:59 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libraries/liblmdb $(LMDB_MAKE_OPTS)
|
2024-04-04 18:29:37 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LMDB_INSTALL_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libraries/liblmdb \
|
2024-05-21 20:25:59 +02:00
|
|
|
$(LMDB_MAKE_OPTS) \
|
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-21 20:25:59 +02:00
|
|
|
$(LMDB_MAKE_OPTS) \
|
2024-04-04 18:29:37 +02:00
|
|
|
DESTDIR="$(TARGET_DIR)" \
|
|
|
|
prefix=/usr \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|