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.

67 lines
1.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_VERSION:=1.9.0
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=https://pocoproject.org/releases/$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_HASH:=a0a5a03d87c585f1a43def33bfc52c0c34a528e43a7b13bc83841a7c00adde39
  15. PKG_LICENSE:=BSL-1.0
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_CPE_ID:=cpe:/a:pocoproject:poco
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/poco
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=Poco C++ libraries
  25. URL:=https://www.pocoproject.org/
  26. DEPENDS:=+libstdcpp +libpthread +librt @!arc
  27. MAINTAINER:=Jean-Michel Julien <jean-michel.julien@trilliantinc.com>
  28. endef
  29. define Package/poco/description
  30. POrtable COmponents, a modern and powerful open source C++ class libraries
  31. and frameworks for building network and internet-based applications that
  32. run on desktop, server and embedded systems.
  33. endef
  34. CONFIGURE_ARGS += \
  35. --config=Linux \
  36. --no-tests \
  37. --no-samples \
  38. --no-fpenvironment \
  39. --no-sharedmemory \
  40. --no-wstring \
  41. --poquito \
  42. --minimal \
  43. --shared
  44. define Package/poco/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco{Foundation,XML,JSON,Net,Util}.so* $(1)/usr/lib/
  47. endef
  48. define Build/InstallDev
  49. $(INSTALL_DIR) $(1)/usr/include
  50. $(CP) $(PKG_INSTALL_DIR)/usr/include/Poco $(1)/usr/include/
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libPoco{Foundation,XML,JSON,Net,Util}.so* $(1)/usr/lib/
  53. endef
  54. $(eval $(call BuildPackage,poco))