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-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. 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:=5
  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_HASH:=cd39c711023ff44c01d3c8ff0323eef7318660772b24f287556e6bf676a12535
  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. PROVIDES:=libdb47-full
  31. endef
  32. define Package/libdb47/description
  33. Berkeley DB library (4.7).
  34. endef
  35. define Package/libdb47xx
  36. SECTION:=libs
  37. CATEGORY:=Libraries
  38. DEPENDS:=+libdb47 $(CXX_DEPENDS)
  39. TITLE:=Berkeley DB library (4.7) for C++
  40. URL:=http://www.oracle.com/us/products/database/berkeley-db
  41. PROVIDES:=libdb47xx-full
  42. endef
  43. define Package/libdb47xx/description
  44. Berkeley DB library (4.7). C++ wrapper.
  45. endef
  46. CONFIGURE_PATH = build_unix
  47. CONFIGURE_CMD = ../dist/configure
  48. CONFIGURE_ARGS += \
  49. --enable-shared \
  50. --enable-static \
  51. --disable-java \
  52. --with-mutex=POSIX/pthreads/library \
  53. --disable-tcl \
  54. --disable-rpc \
  55. --enable-compat185 \
  56. --disable-debug \
  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))