2020-11-27 14:51:43 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libmdbx
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-11-10 12:11:08 +01:00
|
|
|
LIBMDBX_VERSION = 0.11.13
|
2022-04-25 01:56:15 +02:00
|
|
|
LIBMDBX_SOURCE = libmdbx-amalgamated-$(LIBMDBX_VERSION).tar.xz
|
2022-06-25 19:18:29 +02:00
|
|
|
LIBMDBX_SITE = https://libmdbx.dqdkfa.ru/release
|
2020-11-27 14:51:43 +01:00
|
|
|
LIBMDBX_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
LIBMDBX_LICENSE = OLDAP-2.8
|
|
|
|
LIBMDBX_LICENSE_FILES = LICENSE
|
|
|
|
LIBMDBX_STRIP_COMPONENTS = 0
|
|
|
|
LIBMDBX_INSTALL_STAGING = YES
|
|
|
|
|
2021-01-03 14:52:46 +01:00
|
|
|
# Set CMAKE_BUILD_TYPE to Release to remove -Werror and avoid a build failure
|
|
|
|
# with glibc < 2.12
|
2020-11-27 14:51:43 +01:00
|
|
|
LIBMDBX_CONF_OPTS = \
|
2021-01-03 14:52:46 +01:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2020-11-27 14:51:43 +01:00
|
|
|
-DMDBX_INSTALL_MANPAGES=OFF \
|
|
|
|
-DBUILD_FOR_NATIVE_CPU=OFF \
|
|
|
|
-DMDBX_BUILD_CXX=$(if $(BR2_PACKAGE_LIBMDBX_CXX),ON,OFF) \
|
|
|
|
-DMDBX_BUILD_TOOLS=$(if $(BR2_PACKAGE_LIBMDBX_TOOLS),ON,OFF)
|
|
|
|
|
|
|
|
ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
|
|
|
|
LIBMDBX_CONF_OPTS += -DMDBX_INSTALL_STATIC=ON
|
|
|
|
else
|
|
|
|
LIBMDBX_CONF_OPTS += -DMDBX_INSTALL_STATIC=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
|
|
|
|
LIBMDBX_CONF_OPTS += \
|
|
|
|
-DMDBX_BUILD_SHARED_LIBRARY=ON \
|
|
|
|
-DMDBX_LINK_TOOLS_NONSTATIC=ON
|
|
|
|
else
|
|
|
|
LIBMDBX_CONF_OPTS += \
|
|
|
|
-DMDBX_BUILD_SHARED_LIBRARY=OFF \
|
|
|
|
-DMDBX_LINK_TOOLS_NONSTATIC=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|