Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= libssh
  5. PKG_VERSION:= 0.6.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 66cf16e77f60913b4d54f18c92cdbf71
  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 $(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:= manual
  19. do-configure:
  20. (cd $(WRKBUILD) && PATH='${HOST_PATH}' \
  21. cmake -DCMAKE_SYSTEM_NAME=Linux \
  22. -DCMAKE_INSTALL_PREFIX=/usr \
  23. -DOPENSSL_ROOT_DIR='$(STAGING_TARGET_DIR)/usr' \
  24. -DZLIB_ROOT_DIR='$(STAGING_TARGET_DIR)/usr' $(WRKSRC)/)
  25. libssh-install:
  26. $(INSTALL_DIR) $(IDIR_LIBSSH)/usr/lib
  27. $(CP) $(WRKINST)/usr/lib/libssh*.so* \
  28. $(IDIR_LIBSSH)/usr/lib
  29. include ${TOPDIR}/mk/pkg-bottom.mk