Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= libssh
  5. PKG_VERSION:= 0.6.4
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 7e3205e2e95bf35b23b83a6485a7d59abe7c7546d01b728f691cf0c374216b52
  8. PKG_DESCR:= secure shell library
  9. PKG_SECTION:= libs/net
  10. PKG_DEPENDS:= libopenssl zlib
  11. PKG_BUILDDEP:= cmake-host openssl zlib
  12. PKG_URL:= http://www.libssh.org/
  13. PKG_SITES:= https://red.libssh.org/attachments/download/107/
  14. PKG_OPTS:= dev
  15. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,LIBSSH,libssh,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
  18. WRKBUILD= $(WRKDIR)/$(PKG_NAME)-obj
  19. CONFIG_STYLE:= cmake
  20. CMAKE_FLAGS:= -DOPENSSL_INCLUDE_DIRS='$(STAGING_TARGET_DIR)/usr/include' \
  21. -DOPENSSL_LIBRARIES='-lcrypto -lssl -lz' \
  22. -DZLIB_INCLUDE_DIR='$(STAGING_TARGET_DIR)/usr/include' \
  23. -DZLIB_LIBRARY='$(STAGING_TARGET_DIR)/usr/lib'
  24. libssh-install:
  25. $(INSTALL_DIR) $(IDIR_LIBSSH)/usr/lib
  26. $(CP) $(WRKINST)/usr/lib/libssh*.so* \
  27. $(IDIR_LIBSSH)/usr/lib
  28. include $(ADK_TOPDIR)/mk/pkg-bottom.mk