Initial Commit
- initial default booting image
This commit is contained in:
13
package/lmdb/Config.in
Normal file
13
package/lmdb/Config.in
Normal file
@@ -0,0 +1,13 @@
|
||||
config BR2_PACKAGE_LMDB
|
||||
bool "lmdb"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
OpenLDAP Lightning Memory-Mapped Database
|
||||
|
||||
LMDB is compact, fast, powerful, and robust and implements
|
||||
a simplified variant of the BerkeleyDB (BDB) API.
|
||||
|
||||
https://symas.com/lmdb/
|
||||
|
||||
comment "lmdb needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
3
package/lmdb/lmdb.hash
Normal file
3
package/lmdb/lmdb.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 98e28ab0a5c23fb2eb8ad12c12d7ad5fc5e4c3563f41d0b91e9420a075974d6f openldap-LMDB_0.9.35.tar.bz2
|
||||
sha256 310fe25c858a9515fc8c8d7d1f24a67c9496f84a91e0a0e41ea9975b1371e569 libraries/liblmdb/LICENSE
|
||||
50
package/lmdb/lmdb.mk
Normal file
50
package/lmdb/lmdb.mk
Normal file
@@ -0,0 +1,50 @@
|
||||
################################################################################
|
||||
#
|
||||
# lmdb
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LMDB_VERSION = 0.9.35
|
||||
LMDB_SOURCE = openldap-LMDB_$(LMDB_VERSION).tar.bz2
|
||||
LMDB_SITE = https://git.openldap.org/openldap/openldap/-/archive/LMDB_$(LMDB_VERSION)
|
||||
LMDB_LICENSE = OLDAP-2.8
|
||||
LMDB_LICENSE_FILES = libraries/liblmdb/LICENSE
|
||||
LMDB_INSTALL_STAGING = YES
|
||||
|
||||
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
|
||||
|
||||
LMDB_MAKE_OPTS += \
|
||||
AR="$(TARGET_AR)" \
|
||||
CC="$(TARGET_CC)" \
|
||||
ILIBS="$(LMDB_ILBIBS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
OPT="" \
|
||||
XCFLAGS="$(TARGET_CFLAGS)"
|
||||
|
||||
define LMDB_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libraries/liblmdb $(LMDB_MAKE_OPTS)
|
||||
endef
|
||||
|
||||
define LMDB_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libraries/liblmdb \
|
||||
$(LMDB_MAKE_OPTS) \
|
||||
DESTDIR="$(STAGING_DIR)" \
|
||||
prefix=/usr \
|
||||
install
|
||||
endef
|
||||
|
||||
define LMDB_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libraries/liblmdb \
|
||||
$(LMDB_MAKE_OPTS) \
|
||||
DESTDIR="$(TARGET_DIR)" \
|
||||
prefix=/usr \
|
||||
install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user