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.

58 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2015 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.6.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.libssh2.org/download
  13. PKG_MD5SUM:=00aabd6e714a5f42a4fb82ace20db1dd
  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:=http://www.libssh2.org/
  23. DEPENDS:=+libopenssl +zlib
  24. MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
  25. endef
  26. define Package/libssh2/description
  27. libssh2 is a client-side C library implementing the SSH2 protocol.
  28. endef
  29. TARGET_CFLAGS += $(FPIC)
  30. CONFIGURE_ARGS += \
  31. --disable-examples-build \
  32. --with-libssl-prefix=$(STAGING_DIR)/usr
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libssh2.so* $(1)/usr/lib/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libssh2.pc $(1)/usr/lib/pkgconfig/
  40. endef
  41. define Package/libssh2/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libssh2.so* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libssh2))