Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #
  2. # Copyright (C) 2015-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libssh2
  9. PKG_VERSION:=1.8.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://www.libssh2.org/download
  13. PKG_HASH:=40b517f35b1bb869d0075b15125c7a015557f53a5a3a6a8bffb89b69fd70f159
  14. PKG_INSTALL:=1
  15. PKG_LICENSE:=BSD
  16. PKG_LICENSE_FILES:=COPYING
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libssh2
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=SSH2 library
  22. URL:=https://www.libssh2.org/
  23. DEPENDS:=+libopenssl +zlib
  24. MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
  25. endef
  26. define Package/libssh2/description
  27. libssh2 is a client-side C library implementing the SSH2 protocol.
  28. endef
  29. CONFIGURE_ARGS += \
  30. --disable-examples-build \
  31. --with-libssl-prefix=$(STAGING_DIR)/usr \
  32. --with-libz-prefix=$(STAGING_DIR)/usr \
  33. --with-openssl
  34. define Build/InstallDev
  35. $(INSTALL_DIR) $(1)/usr/include
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libssh2.so* $(1)/usr/lib/
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libssh2.pc $(1)/usr/lib/pkgconfig/
  41. endef
  42. define Package/libssh2/install
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libssh2.so* $(1)/usr/lib/
  45. endef
  46. $(eval $(call BuildPackage,libssh2))