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.

86 lines
2.4 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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(_PKG_VERSION)
  22. PKG_MAINTAINER:=Jean-Michel Julien <jean-michel.julien@trilliantinc.com>
  23. PKG_LICENSE:=BSL-1.0
  24. PKG_LICENSE_FILES:=LICENSE
  25. PKG_CPE_ID:=cpe:/a:pocoproject:poco
  26. include $(INCLUDE_DIR)/package.mk
  27. include $(INCLUDE_DIR)/cmake.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. VARIANT:=minimal
  35. endef
  36. define Package/poco/description
  37. POrtable COmponents, a modern and powerful open source C++ class libraries
  38. and frameworks for building network and internet-based applications that
  39. run on desktop, server and embedded systems.
  40. endef
  41. define Package/poco-all
  42. $(call Package/poco)
  43. SECTION:=libs
  44. CATEGORY:=Libraries
  45. TITLE+=(Complete Edition)
  46. DEPENDS+=+libopenssl +libmariadb +libpq +unixodbc
  47. VARIANT:=all
  48. endef
  49. define Package/poco-all/description
  50. POrtable COmponents, a modern and powerful open source C++ class libraries
  51. and frameworks for building network and internet-based applications that
  52. run on desktop, server and embedded systems. The Complete Edition contains
  53. all libraries.
  54. endef
  55. define Package/poco/install
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco*.so* $(1)/usr/lib/
  58. endef
  59. define Package/poco-all/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco*.so* $(1)/usr/lib/
  62. endef
  63. define Build/InstallDev
  64. $(INSTALL_DIR) $(1)/usr/include
  65. $(CP) $(PKG_INSTALL_DIR)/usr/include/Poco $(1)/usr/include/
  66. $(INSTALL_DIR) $(1)/usr/lib
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco*.so* $(1)/usr/lib/
  68. endef
  69. $(eval $(call BuildPackage,poco))
  70. $(eval $(call BuildPackage,poco-all))