1
0

Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:= SSH library
  9. PKG_SECTION:= libs
  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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
  16. include $(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:= manual
  20. do-configure:
  21. (cd $(WRKBUILD) && PATH='${HOST_PATH}' \
  22. cmake -DCMAKE_SYSTEM_NAME=Linux \
  23. -DCMAKE_INSTALL_PREFIX=/usr \
  24. -DOPENSSL_ROOT_DIR='$(STAGING_TARGET_DIR)/usr' \
  25. -DZLIB_ROOT_DIR='$(STAGING_TARGET_DIR)/usr' $(WRKSRC)/)
  26. libssh-install:
  27. $(INSTALL_DIR) $(IDIR_LIBSSH)/usr/lib
  28. $(CP) $(WRKINST)/usr/lib/libssh*.so* \
  29. $(IDIR_LIBSSH)/usr/lib
  30. include ${TOPDIR}/mk/pkg-bottom.mk