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.

108 lines
2.8 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. POCO_LIBS={Foundation,XML,JSON,Net,Util,Crypto,NetSSL,Encodings}
  68. else
  69. CONFIGURE_ARGS += \
  70. --poquito \
  71. --minimal
  72. POCO_LIBS={Foundation,XML,JSON,Net,Util}
  73. endif
  74. define Package/poco/install
  75. $(INSTALL_DIR) $(1)/usr/lib
  76. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco$(POCO_LIBS).so* $(1)/usr/lib/
  77. endef
  78. define Package/poco-all/install
  79. $(INSTALL_DIR) $(1)/usr/lib
  80. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco$(POCO_LIBS).so* $(1)/usr/lib/
  81. endef
  82. define Build/InstallDev
  83. $(INSTALL_DIR) $(1)/usr/include
  84. $(CP) $(PKG_INSTALL_DIR)/usr/include/Poco $(1)/usr/include/
  85. $(INSTALL_DIR) $(1)/usr/lib
  86. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco$(POCO_LIBS).so* $(1)/usr/lib/
  87. endef
  88. $(eval $(call BuildPackage,poco))
  89. $(eval $(call BuildPackage,poco-all))