2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.libssh2.org
/download
16 PKG_MD5SUM
:=00aabd6e714a5f42a4fb82ace20db1dd
21 PKG_LICENSE_FILES
:=COPYING
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libssh2
29 URL
:=http
://www.libssh2.org
/
30 DEPENDS
:=+libopenssl
+zlib
31 MAINTAINER
:=Jiri Slachta
<slachta@cesnet.cz
>
34 define Package
/libssh2
/description
35 libssh2 is a client-side C library implementing the SSH2 protocol.
38 TARGET_CFLAGS
+= $(FPIC
)
41 --disable-examples-build \
42 --with-libssl-prefix
=$(STAGING_DIR
)/usr
44 define Build
/InstallDev
45 $(INSTALL_DIR
) $(1)/usr
/include
46 $(INSTALL_DIR
) $(1)/usr
/lib
47 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(1)/usr
/include/
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libssh2.so
* $(1)/usr
/lib
/
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libssh2.
pc $(1)/usr
/lib
/pkgconfig
/
53 define Package
/libssh2
/install
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libssh2.so
* $(1)/usr
/lib
/
58 $(eval
$(call BuildPackage
,libssh2
))