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.

55 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2014 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.4.3
  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:=071004c60c5d6f90354ad1b701013a0b
  14. PKG_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/libssh2
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=SSH2 library
  20. URL:=http://www.libssh2.org/
  21. DEPENDS:=+libopenssl +zlib
  22. MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
  23. endef
  24. define Package/libssh2/description
  25. libssh2 is a client-side C library implementing the SSH2 protocol.
  26. endef
  27. TARGET_CFLAGS += $(FPIC)
  28. CONFIGURE_ARGS += \
  29. --disable-examples-build \
  30. --with-libssl-prefix=$(STAGING_DIR)/usr
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)/usr/include
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libssh2.so* $(1)/usr/lib/
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libssh2.pc $(1)/usr/lib/pkgconfig/
  38. endef
  39. define Package/libssh2/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libssh2.so* $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,libssh2))