|
@ -12,9 +12,9 @@ BASE_VERSION:=4.7.25 |
|
|
|
|
|
|
|
|
PKG_NAME:=db47 |
|
|
PKG_NAME:=db47 |
|
|
PKG_VERSION:=$(BASE_VERSION).4.NC |
|
|
PKG_VERSION:=$(BASE_VERSION).4.NC |
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
|
PKG_RELEASE:=2 |
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/db-$(BASE_VERSION).NC |
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/db-$(BASE_VERSION).NC |
|
|
PKG_SOURCE:=db-$(BASE_VERSION).NC.tar.gz |
|
|
PKG_SOURCE:=db-$(BASE_VERSION).NC.tar.gz |
|
|
PKG_SOURCE_URL:=http://download.oracle.com/berkeley-db/ |
|
|
PKG_SOURCE_URL:=http://download.oracle.com/berkeley-db/ |
|
|
PKG_MD5SUM:=073ab7f20d24b3872a51ca762f5090e7 |
|
|
PKG_MD5SUM:=073ab7f20d24b3872a51ca762f5090e7 |
|
@ -29,30 +29,73 @@ PKG_BUILD_PARALLEL:=1 |
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
|
|
|
|
|
|
define Package/libdb47 |
|
|
|
|
|
|
|
|
define Package/libdb47/Default |
|
|
SECTION:=libs |
|
|
SECTION:=libs |
|
|
CATEGORY:=Libraries |
|
|
CATEGORY:=Libraries |
|
|
DEPENDS:=+libxml2 |
|
|
DEPENDS:=+libxml2 |
|
|
TITLE:=Berkeley DB library (4.7) |
|
|
|
|
|
|
|
|
PROVIDES:=libdb47 |
|
|
URL:=http://www.oracle.com/us/products/database/berkeley-db |
|
|
URL:=http://www.oracle.com/us/products/database/berkeley-db |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/libdb47/description |
|
|
|
|
|
|
|
|
define Package/libdb47/Default/description |
|
|
Berkeley DB library (4.7). |
|
|
Berkeley DB library (4.7). |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/libdb47xx |
|
|
|
|
|
|
|
|
define Package/libdb47 |
|
|
|
|
|
$(call Package/libdb47/Default) |
|
|
|
|
|
VARIANT:=small |
|
|
|
|
|
TITLE:=Berkeley DB library (4.7) (without statistics etc. support) |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/libdb47/description |
|
|
|
|
|
$(call Package/libdb47/Default/description) |
|
|
|
|
|
This package is not built with statistics etc. support. |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/libdb47-full |
|
|
|
|
|
$(call Package/libdb47/Default) |
|
|
|
|
|
VARIANT:=full |
|
|
|
|
|
TITLE:=Berkeley DB library (4.7) (with statistics etc. support) |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/libdb47-full/description |
|
|
|
|
|
$(call Package/libdb47/Default/description) |
|
|
|
|
|
This package is built with statistics etc. support. |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/libdb47xx/Default |
|
|
SECTION:=libs |
|
|
SECTION:=libs |
|
|
CATEGORY:=Libraries |
|
|
CATEGORY:=Libraries |
|
|
DEPENDS:=+libdb47 $(CXX_DEPENDS) |
|
|
DEPENDS:=+libdb47 $(CXX_DEPENDS) |
|
|
TITLE:=Berkeley DB library (4.7) for C++ |
|
|
|
|
|
URL:=http://www.oracle.com/us/products/database/berkeley-db |
|
|
URL:=http://www.oracle.com/us/products/database/berkeley-db |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/libdb47xx/description |
|
|
|
|
|
|
|
|
define Package/libdb47xx/Default/description |
|
|
Berkeley DB library (4.7). C++ wrapper. |
|
|
Berkeley DB library (4.7). C++ wrapper. |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/libdb47xx |
|
|
|
|
|
$(call Package/libdb47xx/Default) |
|
|
|
|
|
VARIANT:=small |
|
|
|
|
|
TITLE:=Berkeley DB library (4.7) for C++ (without statistics etc. support) |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/libdb47xx/description |
|
|
|
|
|
$(call Package/libdb47xx/Default/description) |
|
|
|
|
|
This package is not built with statistics etc. support. |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/libdb47xx-full |
|
|
|
|
|
$(call Package/libdb47xx/Default) |
|
|
|
|
|
VARIANT:=full |
|
|
|
|
|
TITLE:=Berkeley DB library (4.7) for C++ (with statistics etc. support) |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/libdb47xx-full/description |
|
|
|
|
|
$(call Package/libdb47xx/Default/description) |
|
|
|
|
|
This package is built with statistics etc. support. |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
CONFIGURE_PATH = build_unix |
|
|
CONFIGURE_PATH = build_unix |
|
|
CONFIGURE_CMD = ../dist/configure |
|
|
CONFIGURE_CMD = ../dist/configure |
|
|
|
|
|
|
|
@ -64,11 +107,14 @@ CONFIGURE_ARGS += \ |
|
|
--disable-tcl \
|
|
|
--disable-tcl \
|
|
|
--disable-rpc \
|
|
|
--disable-rpc \
|
|
|
--enable-compat185 \
|
|
|
--enable-compat185 \
|
|
|
--enable-smallbuild \
|
|
|
|
|
|
--disable-debug \
|
|
|
--disable-debug \
|
|
|
--enable-cryptography \
|
|
|
--enable-cryptography \
|
|
|
$(if $(CONFIG_PACKAGE_libdb47xx),--enable-cxx,--disable-cxx) |
|
|
$(if $(CONFIG_PACKAGE_libdb47xx),--enable-cxx,--disable-cxx) |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(BUILD_VARIANT),small) |
|
|
|
|
|
CONFIGURE_ARGS += --enable-smallbuild |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC) |
|
|
TARGET_CFLAGS += $(FPIC) |
|
|
|
|
|
|
|
|
define Build/Compile |
|
|
define Build/Compile |
|
@ -83,11 +129,21 @@ define Package/libdb47/install |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb-*.so $(1)/usr/lib/ |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb-*.so $(1)/usr/lib/ |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/libdb47-full/install |
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb-*.so $(1)/usr/lib/ |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
define Package/libdb47xx/install |
|
|
define Package/libdb47xx/install |
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb_cxx-*.so $(1)/usr/lib/ |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb_cxx-*.so $(1)/usr/lib/ |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/libdb47xx-full/install |
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb_cxx-*.so $(1)/usr/lib/ |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
define Build/InstallDev |
|
|
define Build/InstallDev |
|
|
$(INSTALL_DIR) $(1)/usr/include |
|
|
$(INSTALL_DIR) $(1)/usr/include |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/db.h $(1)/usr/include/ |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/db.h $(1)/usr/include/ |
|
@ -97,4 +153,6 @@ define Build/InstallDev |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libdb47)) |
|
|
$(eval $(call BuildPackage,libdb47)) |
|
|
|
|
|
$(eval $(call BuildPackage,libdb47-full)) |
|
|
$(eval $(call BuildPackage,libdb47xx)) |
|
|
$(eval $(call BuildPackage,libdb47xx)) |
|
|
|
|
|
$(eval $(call BuildPackage,libdb47xx-full)) |