summaryrefslogtreecommitdiff
path: root/package/libssh/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-26 14:48:12 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-27 11:02:49 +0200
commitd407054b3772ec636e9d38248667c7f2baecd1d7 (patch)
treef927d98a3e649cf5b296087294934f1a9fabd62e /package/libssh/Makefile
parent98b697047a66771154ccc0995fc4868dd52a95e6 (diff)
convert to cmake style
Diffstat (limited to 'package/libssh/Makefile')
-rw-r--r--package/libssh/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/package/libssh/Makefile b/package/libssh/Makefile
index ace6737ff..c421eeef3 100644
--- a/package/libssh/Makefile
+++ b/package/libssh/Makefile
@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= libssh
PKG_VERSION:= 0.6.3
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 66cf16e77f60913b4d54f18c92cdbf71
PKG_DESCR:= secure shell library
PKG_SECTION:= libs/net
@@ -20,14 +20,11 @@ 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:= 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)/)
+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'
libssh-install:
$(INSTALL_DIR) $(IDIR_LIBSSH)/usr/lib