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.

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