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.

109 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_VERSION:=1.11.0
  11. PKG_RELEASE:=$(AUTORELEASE)
  12. ifeq ($(BUILD_VARIANT),all)
  13. _PKG_VERSION:=${PKG_VERSION}-all
  14. PKG_HASH:=b08cf73926fa92a6c8f3c712e8fb217d5d0c2fa5248ec0281f251fe1e925d2f1
  15. else
  16. _PKG_VERSION:=${PKG_VERSION}
  17. PKG_HASH:=06ddc4934ff0a11be425d697f861c15b43b77b610e3642a2f85d0c34d7425ea4
  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_MAINTAINER:=Jean-Michel Julien <jean-michel.julien@trilliantinc.com>
  22. PKG_LICENSE:=BSL-1.0
  23. PKG_LICENSE_FILES:=LICENSE
  24. PKG_CPE_ID:=cpe:/a:pocoproject:poco
  25. PKG_BUILD_DEPENDS:=postgresql
  26. PKG_BUILD_PARALLEL:=1
  27. PKG_INSTALL:=1
  28. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(_PKG_VERSION)
  29. include $(INCLUDE_DIR)/package.mk
  30. define Package/poco
  31. SECTION:=libs
  32. CATEGORY:=Libraries
  33. TITLE:=Poco C++ libraries
  34. URL:=https://www.pocoproject.org/
  35. DEPENDS:=+libstdcpp +libpthread +librt @!arc
  36. VARIANT:=minimal
  37. endef
  38. define Package/poco/description
  39. POrtable COmponents, a modern and powerful open source C++ class libraries
  40. and frameworks for building network and internet-based applications that
  41. run on desktop, server and embedded systems.
  42. endef
  43. define Package/poco-all
  44. $(call Package/poco)
  45. SECTION:=libs
  46. CATEGORY:=Libraries
  47. TITLE+=(Complete Edition)
  48. DEPENDS+=+libopenssl
  49. VARIANT:=all
  50. endef
  51. define Package/poco-all/description
  52. POrtable COmponents, a modern and powerful open source C++ class libraries
  53. and frameworks for building network and internet-based applications that
  54. run on desktop, server and embedded systems. The Complete Edition contains
  55. all libraries.
  56. endef
  57. CONFIGURE_ARGS += \
  58. --config=Linux \
  59. --no-tests \
  60. --no-samples \
  61. --no-fpenvironment \
  62. --no-sharedmemory \
  63. --no-wstring \
  64. --shared
  65. ifeq ($(BUILD_VARIANT),all)
  66. CONFIGURE_ARGS += \
  67. --typical
  68. POCO_LIBS={Foundation,XML,JSON,Net,Util,Crypto,NetSSL,Encodings}
  69. else
  70. CONFIGURE_ARGS += \
  71. --poquito \
  72. --minimal
  73. POCO_LIBS={Foundation,XML,JSON,Net,Util}
  74. endif
  75. define Package/poco/install
  76. $(INSTALL_DIR) $(1)/usr/lib
  77. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco$(POCO_LIBS).so* $(1)/usr/lib/
  78. endef
  79. define Package/poco-all/install
  80. $(INSTALL_DIR) $(1)/usr/lib
  81. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco$(POCO_LIBS).so* $(1)/usr/lib/
  82. endef
  83. define Build/InstallDev
  84. $(INSTALL_DIR) $(1)/usr/include
  85. $(CP) $(PKG_INSTALL_DIR)/usr/include/Poco $(1)/usr/include/
  86. $(INSTALL_DIR) $(1)/usr/lib
  87. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco$(POCO_LIBS).so* $(1)/usr/lib/
  88. endef
  89. $(eval $(call BuildPackage,poco))
  90. $(eval $(call BuildPackage,poco-all))