You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.3 KiB

  1. #
  2. # Copyright (C) 2009-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/uclibc++.mk
  9. PKG_NAME:=db47
  10. PKG_VERSION:=4.7.25.NC
  11. PKG_RELEASE:=6
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/db-$(PKG_VERSION)
  13. PKG_SOURCE:=db-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=http://download.oracle.com/berkeley-db/
  15. PKG_MD5SUM:=073ab7f20d24b3872a51ca762f5090e7
  16. PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
  17. PKG_LICENSE:=BSD-2c
  18. PKG_LICENSE_FILES:=LICENSE
  19. PKG_FIXUP:=autoreconf
  20. PKG_LIBTOOL_PATHS:=. build_unix
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libdb47
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. DEPENDS:=+libxml2
  27. TITLE:=Berkeley DB library (4.7)
  28. URL:=http://www.sleepycat.com/products/db.shtml
  29. endef
  30. define Package/libdb47/description
  31. Berkeley DB library (4.7).
  32. endef
  33. define Package/libdb47xx
  34. SECTION:=libs
  35. CATEGORY:=Libraries
  36. DEPENDS:=+libdb47 $(CXX_DEPENDS)
  37. TITLE:=Berkeley DB library (4.7) for C++
  38. URL:=http://www.sleepycat.com/products/db.shtml
  39. endef
  40. define Package/libdb47xx/description
  41. Berkeley DB library (4.7). C++ wrapper.
  42. endef
  43. CONFIGURE_PATH = build_unix
  44. CONFIGURE_CMD = ../dist/configure
  45. CONFIGURE_ARGS += \
  46. --enable-shared \
  47. --enable-static \
  48. --disable-java \
  49. --with-mutex=UNIX/fcntl \
  50. --disable-tcl \
  51. --disable-rpc \
  52. --enable-compat185 \
  53. --enable-smallbuild \
  54. --disable-debug \
  55. --enable-cryptography \
  56. $(if $(CONFIG_PACKAGE_libdb47xx),--enable-cxx,--disable-cxx)
  57. TARGET_CFLAGS += $(FPIC)
  58. define Build/Compile
  59. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/build_unix \
  60. DESTDIR="$(PKG_INSTALL_DIR)" all
  61. $(MAKE) -C $(PKG_BUILD_DIR)/build_unix \
  62. DESTDIR="$(PKG_INSTALL_DIR)" install
  63. endef
  64. define Package/libdb47/install
  65. $(INSTALL_DIR) $(1)/usr/lib
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb-*.so $(1)/usr/lib/
  67. endef
  68. define Package/libdb47xx/install
  69. $(INSTALL_DIR) $(1)/usr/lib
  70. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb_cxx-*.so $(1)/usr/lib/
  71. endef
  72. define Build/InstallDev
  73. $(INSTALL_DIR) $(1)/usr/include
  74. $(CP) $(PKG_INSTALL_DIR)/usr/include/db.h $(1)/usr/include/
  75. $(CP) $(PKG_INSTALL_DIR)/usr/include/db_cxx.h $(1)/usr/include/
  76. $(INSTALL_DIR) $(1)/usr/lib/
  77. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb*.{a,so} $(1)/usr/lib
  78. endef
  79. $(eval $(call BuildPackage,libdb47))
  80. $(eval $(call BuildPackage,libdb47xx))