Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #
  2. # Copyright (C) 2016 Shuanglei Tao <tsl0922@gmail.com>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ttyd
  9. PKG_VERSION:=1.2.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_URL:=https://github.com/tsl0922/ttyd.git
  15. PKG_SOURCE_VERSION:=$(PKG_VERSION)
  16. PKG_LICENSE:=MIT
  17. PKG_LICENSE_FILES:=LICENSE
  18. CMAKE_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/ttyd
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=Command-line tool for sharing terminal over the web
  25. DEPENDS:=+libopenssl +libjson-c +libpthread +libwebsockets-openssl
  26. URL:=https://github.com/tsl0922/ttyd
  27. SUBMENU:=Terminal
  28. MAINTAINER:=Shuanglei Tao <tsl0922@gmail.com>
  29. endef
  30. define Package/ttyd/description
  31. ttyd is a command-line tool for sharing terminal over the web.
  32. endef
  33. define Package/ttyd/install
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttyd $(1)/usr/bin/
  36. endef
  37. $(eval $(call BuildPackage,ttyd))