Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #
  2. # Copyright (C) 2015-2016 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.7.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:=b01662a210e94cccf2f76094db7dac5c
  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 <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. 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))