2014-07-17 20:27:24 +00:00
|
|
|
#
|
2018-01-30 13:47:12 +00:00
|
|
|
# Copyright (C) 2015-2018 OpenWrt.org
|
2014-07-17 20:27:24 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libssh2
|
2018-01-30 13:47:12 +00:00
|
|
|
PKG_VERSION:=1.8.0
|
2018-02-24 10:45:16 +00:00
|
|
|
PKG_RELEASE:=2
|
2014-07-17 20:27:24 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2018-01-30 13:47:12 +00:00
|
|
|
PKG_SOURCE_URL:=https://www.libssh2.org/download
|
|
|
|
PKG_HASH:=39f34e2f6835f4b992cafe8625073a88e5a28ba78f83e8099610a7b3af4676d4
|
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
2014-07-17 20:27:24 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2014-08-10 07:25:44 +00:00
|
|
|
PKG_LICENSE:=BSD
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
2018-03-03 08:16:46 +00:00
|
|
|
PKG_CONFIG_DEPENDS:= \
|
|
|
|
CONFIG_LIBSSH2_MBEDTLS \
|
|
|
|
CONFIG_LIBSSH2_OPENSSL
|
|
|
|
|
2014-07-17 20:27:24 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libssh2
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=SSH2 library
|
2018-01-30 13:47:12 +00:00
|
|
|
URL:=https://www.libssh2.org/
|
2018-02-03 12:26:16 +00:00
|
|
|
DEPENDS:=+LIBSSH2_MBEDTLS:libmbedtls +LIBSSH2_OPENSSL:libopenssl +zlib
|
2016-05-31 18:22:37 +00:00
|
|
|
MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
|
2014-07-17 20:27:24 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libssh2/description
|
|
|
|
libssh2 is a client-side C library implementing the SSH2 protocol.
|
|
|
|
endef
|
|
|
|
|
2018-02-03 12:26:16 +00:00
|
|
|
define Package/libssh2/config
|
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
2014-07-17 20:27:24 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-examples-build \
|
2018-01-30 13:47:12 +00:00
|
|
|
--disable-silent-rules \
|
2018-02-03 12:26:16 +00:00
|
|
|
$(if $(CONFIG_LIBSSH2_MBEDTLS),--with-mbedtls --with-libmbedtls-prefix=$(STAGING_DIR)/usr) \
|
|
|
|
$(if $(CONFIG_LIBSSH2_OPENSSL),--with-openssl --with-libssl-prefix=$(STAGING_DIR)/usr) \
|
2018-01-30 13:47:12 +00:00
|
|
|
--with-libz-prefix=$(STAGING_DIR)/usr
|
2014-07-17 20:27:24 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2018-02-24 10:49:54 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
|
2014-07-17 20:27:24 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libssh2.so* $(1)/usr/lib/
|
2018-02-24 10:49:54 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libssh2.pc $(1)/usr/lib/pkgconfig/
|
2014-07-17 20:27:24 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libssh2/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libssh2.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libssh2))
|