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.

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