summaryrefslogtreecommitdiff
path: root/package/libssh/Makefile
blob: 997e78895c3cb2a6e8507bab358f770af5c3de4b (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		libssh
PKG_VERSION:=		0.5.3
PKG_RELEASE:=		3
PKG_MD5SUM:=		9ad01838d3b89d98e900e0f6260a88cc
PKG_DESCR:=		SSH library
PKG_SECTION:=		libs
PKG_DEPENDS:=		libopenssl zlib
PKG_BUILDDEP:=		openssl zlib
PKG_URL:=		http://www.libssh.org/
PKG_SITES:=		http://www.libssh.org/files/0.5/
PKG_OPTS:=		dev

include $(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:=          manual

do-configure:
	(cd $(WRKBUILD) && PATH='${HOST_PATH}' \
		cmake -DCMAKE_SYSTEM_NAME=Linux \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DOPENSSL_ROOT_DIR='$(STAGING_TARGET_DIR)/usr' \
		-DZLIB_ROOT_DIR='$(STAGING_TARGET_DIR)/usr' $(WRKSRC)/)

libssh-install:
	$(INSTALL_DIR) $(IDIR_LIBSSH)/usr/lib
	$(CP) $(WRKINST)/usr/lib/libssh*.so* \
		$(IDIR_LIBSSH)/usr/lib

include ${TOPDIR}/mk/pkg-bottom.mk