From: Florian Fainelli Date: Tue, 16 Oct 2012 15:55:26 +0000 (+0000) Subject: db47: include C++ support in db47 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=726d0b9602342dfbc30e2439f4ea03749fa7d12b;p=openwrt%2Fsvn-archive%2Fpackages.git db47: include C++ support in db47 [Florian: fixed missing dependency on CXX_DEPENDS] Signed-off-by: Daniel Pocock SVN-Revision: 33783 --- diff --git a/libs/db47/Makefile b/libs/db47/Makefile index 4eda902e0..73e322333 100644 --- a/libs/db47/Makefile +++ b/libs/db47/Makefile @@ -1,11 +1,12 @@ # -# Copyright (C) 2009-2010 OpenWrt.org +# Copyright (C) 2009-2012 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/uclibc++.mk PKG_NAME:=db47 PKG_VERSION:=4.7.25.NC @@ -35,6 +36,19 @@ define Package/libdb47/description Berkeley DB library (4.7). endef +define Package/libdb47xx + SECTION:=libs + CATEGORY:=Libraries + DEPENDS:=+libdb47 $(CXX_DEPENDS) + TITLE:=Berkeley DB library (4.7) for C++ + URL:=http://www.sleepycat.com/products/db.shtml + MAINTAINER:=W. Michael Petullo +endef + +define Package/libdb47xx/description + Berkeley DB library (4.7). C++ wrapper. +endef + define Build/Configure (cd $(PKG_BUILD_DIR)/build_unix; rm -f config.cache; \ $(TARGET_CONFIGURE_OPTS) \ @@ -63,7 +77,7 @@ define Build/Configure --enable-shared \ --enable-static \ --disable-java \ - --disable-cxx \ + --enable-cxx \ --with-mutex=UNIX/fcntl \ --disable-tcl \ --disable-rpc \ @@ -88,11 +102,19 @@ define Package/libdb47/install $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb-*.so $(1)/usr/lib/ endef +define Package/libdb47xx/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb_cxx-*.so $(1)/usr/lib/ +endef + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/db.h $(1)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/db_cxx.h $(1)/usr/include/ $(INSTALL_DIR) $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb*.{a,so} $(1)/usr/lib endef $(eval $(call BuildPackage,libdb47)) +$(eval $(call BuildPackage,libdb47xx)) +