Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.7.7
  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:=17783e30f5ef9c852544ac0e9d1fd316c4804317026059a9d6aad798b61c77f8
  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))