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.

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