blob: c464eb3d1c464deaf284aef582165f1dadf4311c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= libssh
PKG_VERSION:= 8ec46cbd42c2af7b7e1a06e3b3087e97526b558e
PKG_RELEASE:= 1
PKG_DESCR:= secure shell library
PKG_SECTION:= libs/net
PKG_DEPENDS:= zlib
PKG_BUILDDEP:= cmake-host zlib
PKG_URL:= http://www.libssh.org/
PKG_SITES:= git://git.libssh.org/projects/libssh.git
PKG_OPTS:= dev
PKG_CHOICES_LIBSSH:= WITH_LIBRESSL WITH_OPENSSL
PKGCD_WITH_LIBRESSL:= use libressl for crypto
PKGCS_WITH_LIBRESSL:= libressl
PKGCB_WITH_LIBRESSL:= libressl
PKGCD_WITH_OPENSSL:= use openssl for crypto
PKGCS_WITH_OPENSSL:= libopenssl
PKGCB_WITH_OPENSSL:= openssl
include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBSSH,libssh,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
WRKBUILD= $(WRKDIR)/$(PKG_NAME)-obj
CONFIG_STYLE:= cmake
CMAKE_FLAGS:= -DOPENSSL_INCLUDE_DIRS='$(STAGING_TARGET_DIR)/usr/include' \
-DOPENSSL_LIBRARIES='-lcrypto -lssl -lz' \
-DZLIB_INCLUDE_DIR='$(STAGING_TARGET_DIR)/usr/include' \
-DZLIB_LIBRARY='$(STAGING_TARGET_DIR)/usr/lib' \
-DWITH_GSSAPI=off \
-DWITH_EXAMPLES=off
libssh-install:
$(INSTALL_DIR) $(IDIR_LIBSSH)/usr/lib
$(CP) $(WRKINST)/usr/lib/libssh*.so* \
$(IDIR_LIBSSH)/usr/lib
include $(ADK_TOPDIR)/mk/pkg-bottom.mk
|