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.

105 lines
2.7 KiB

  1. #
  2. # Copyright (C) 2007-2016 OpenWrt.org
  3. # Copyright (C) 2017 Daniel Engberg <daniel.engberg.lists@pyret.net>
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=poco
  10. PKG_RELEASE:=2
  11. PKG_VERSION:=1.9.0
  12. ifeq ($(BUILD_VARIANT),all)
  13. _PKG_VERSION:=${PKG_VERSION}-all
  14. PKG_HASH:=b6e33898588e74337efec4e8d8b9b277bb653b08318a79215f9aa4a3ff1ea9fd
  15. else
  16. _PKG_VERSION:=${PKG_VERSION}
  17. PKG_HASH:=a0a5a03d87c585f1a43def33bfc52c0c34a528e43a7b13bc83841a7c00adde39
  18. endif
  19. PKG_SOURCE:=$(PKG_NAME)-$(_PKG_VERSION).tar.bz2
  20. PKG_SOURCE_URL:=https://pocoproject.org/releases/$(PKG_NAME)-$(PKG_VERSION)
  21. PKG_LICENSE:=BSL-1.0
  22. PKG_LICENSE_FILES:=LICENSE
  23. PKG_CPE_ID:=cpe:/a:pocoproject:poco
  24. PKG_BUILD_PARALLEL:=1
  25. PKG_INSTALL:=1
  26. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(_PKG_VERSION)
  27. include $(INCLUDE_DIR)/package.mk
  28. define Package/poco
  29. SECTION:=libs
  30. CATEGORY:=Libraries
  31. TITLE:=Poco C++ libraries
  32. URL:=https://www.pocoproject.org/
  33. DEPENDS:=+libstdcpp +libpthread +librt @!arc
  34. MAINTAINER:=Jean-Michel Julien <jean-michel.julien@trilliantinc.com>
  35. VARIANT:=minimal
  36. endef
  37. define Package/poco/description
  38. POrtable COmponents, a modern and powerful open source C++ class libraries
  39. and frameworks for building network and internet-based applications that
  40. run on desktop, server and embedded systems.
  41. endef
  42. define Package/poco-all
  43. $(call Package/poco)
  44. SECTION:=libs
  45. CATEGORY:=Libraries
  46. TITLE+=(Complete Edition)
  47. DEPENDS+=+libopenssl
  48. VARIANT:=all
  49. endef
  50. define Package/poco-all/description
  51. POrtable COmponents, a modern and powerful open source C++ class libraries
  52. and frameworks for building network and internet-based applications that
  53. run on desktop, server and embedded systems. The Complete Edition contains
  54. all libraries.
  55. endef
  56. CONFIGURE_ARGS += \
  57. --config=Linux \
  58. --no-tests \
  59. --no-samples \
  60. --no-fpenvironment \
  61. --no-sharedmemory \
  62. --no-wstring \
  63. --shared
  64. ifeq ($(BUILD_VARIANT),all)
  65. CONFIGURE_ARGS += \
  66. --typical
  67. else
  68. CONFIGURE_ARGS += \
  69. --poquito \
  70. --minimal
  71. endif
  72. define Package/poco/install
  73. $(INSTALL_DIR) $(1)/usr/lib
  74. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco{Foundation,XML,JSON,Net,Util}.so* $(1)/usr/lib/
  75. endef
  76. define Package/poco-all/install
  77. $(INSTALL_DIR) $(1)/usr/lib
  78. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco{Foundation,XML,JSON,Net,Util,Crypto,NetSSL,Encodings}.so* $(1)/usr/lib/
  79. endef
  80. define Build/InstallDev
  81. $(INSTALL_DIR) $(1)/usr/include
  82. $(CP) $(PKG_INSTALL_DIR)/usr/include/Poco $(1)/usr/include/
  83. $(INSTALL_DIR) $(1)/usr/lib
  84. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco{Foundation,XML,JSON,Net,Util}.so* $(1)/usr/lib/
  85. endef
  86. $(eval $(call BuildPackage,poco))
  87. $(eval $(call BuildPackage,poco-all))