[package] db47: include C++ support in db47

[Florian: fixed missing dependency on CXX_DEPENDS]

Signed-off-by: Daniel Pocock <daniel@pocock.com.au>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33783 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2012-10-16 15:55:26 +00:00
parent 0ffd1af967
commit adc02e732c

View File

@ -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 <mike@flyn.org>
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))