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.

99 lines
2.4 KiB

  1. #
  2. # Copyright (C) 2009-2015 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. BASE_VERSION:=4.7.25
  9. PKG_NAME:=db47
  10. PKG_VERSION:=$(BASE_VERSION).4.NC
  11. PKG_RELEASE:=7
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/db-$(BASE_VERSION).NC
  13. PKG_SOURCE:=db-$(BASE_VERSION).NC.tar.gz
  14. PKG_SOURCE_URL:=http://download.oracle.com/berkeley-db/
  15. PKG_HASH:=cd39c711023ff44c01d3c8ff0323eef7318660772b24f287556e6bf676a12535
  16. PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
  17. PKG_LICENSE:=Sleepycat
  18. PKG_LICENSE_FILES:=LICENSE
  19. PKG_BUILD_DEPENDS:=libxml2
  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. TITLE:=Berkeley DB library (4.7)
  28. URL:=http://www.oracle.com/us/products/database/berkeley-db
  29. PROVIDES:=libdb47-full
  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 +libstdcpp
  38. TITLE:=Berkeley DB library (4.7) for C++
  39. URL:=http://www.oracle.com/us/products/database/berkeley-db
  40. PROVIDES:=libdb47xx-full
  41. endef
  42. define Package/libdb47xx/description
  43. Berkeley DB library (4.7). C++ wrapper.
  44. endef
  45. CONFIGURE_PATH = build_unix
  46. CONFIGURE_CMD = ../dist/configure
  47. CONFIGURE_ARGS += \
  48. --enable-shared \
  49. --enable-static \
  50. --disable-java \
  51. --with-mutex=POSIX/pthreads/library \
  52. --disable-tcl \
  53. --disable-rpc \
  54. --enable-compat185 \
  55. --disable-debug \
  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))