Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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.3
  6. PKG_RELEASE:= 2
  7. PKG_HASH:= 2bb5d7c595059f990a8915c190169257328ffa828ced0c05b09bbe186092cacb
  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/87/
  14. PKG_OPTS:= dev
  15. include $(ADK_TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,LIBSSH,libssh,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  17. WRKBUILD= ${WRKDIR}/${PKG_NAME}-obj
  18. CONFIG_STYLE:= cmake
  19. CMAKE_FLAGS:= -DOPENSSL_INCLUDE_DIRS='$(STAGING_TARGET_DIR)/usr/include' \
  20. -DOPENSSL_LIBRARIES='-lcrypto -lssl -lz' \
  21. -DZLIB_INCLUDE_DIR='$(STAGING_TARGET_DIR)/usr/include' \
  22. -DZLIB_LIBRARY='$(STAGING_TARGET_DIR)/usr/lib'
  23. libssh-install:
  24. $(INSTALL_DIR) $(IDIR_LIBSSH)/usr/lib
  25. $(CP) $(WRKINST)/usr/lib/libssh*.so* \
  26. $(IDIR_LIBSSH)/usr/lib
  27. include ${ADK_TOPDIR}/mk/pkg-bottom.mk