2 # Copyright (C) 2012 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
:=071004c60c5d6f90354ad1b701013a0b
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/libssh2
26 URL
:=http
://www.libssh2.org
/
27 DEPENDS
:=+libopenssl
+zlib
30 define Package
/libssh2
/description
31 libssh2 is a client-side C library implementing the SSH2 protocol.
34 TARGET_CFLAGS
+= $(FPIC
)
37 --disable-examples-build \
38 --with-libssl-prefix
=$(STAGING_DIR
)/usr
40 define Build
/InstallDev
41 $(INSTALL_DIR
) $(1)/usr
/include
42 $(INSTALL_DIR
) $(1)/usr
/lib
43 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(1)/usr
/include/
45 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libssh2.so
* $(1)/usr
/lib
/
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libssh2.
pc $(1)/usr
/lib
/pkgconfig
/
49 define Package
/libssh2
/install
50 $(INSTALL_DIR
) $(1)/usr
/lib
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libssh2.so
* $(1)/usr
/lib
/
54 $(eval
$(call BuildPackage
,libssh2
))