Needed to avoid error in case xxd is not installed:
[ 16%] Generating html.h from index.html
/bin/sh: 1: CMAKE_XXD-NOTFOUND: not found
CMakeFiles/ttyd.dir/build.make:61: recipe for target 'html.h' failed
make[6]: *** [html.h] Error 127
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 773c19afad
)
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
#
|
|
# Copyright (C) 2016 Shuanglei Tao <tsl0922@gmail.com>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ttyd
|
|
PKG_VERSION:=1.4.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/tsl0922/ttyd/tar.gz/$(PKG_VERSION)?
|
|
PKG_SOURCE_VERSION=$(PKG_VERSION)
|
|
PKG_HASH=757a9b5b5dd3de801d7db8fab6035d97ea144b02a51c78bdab28a8e07bcf05d6
|
|
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_BUILD_DEPENDS:=vim/host
|
|
CMAKE_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/ttyd
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=Command-line tool for sharing terminal over the web
|
|
DEPENDS:=+libopenssl +libjson-c +libpthread +libwebsockets-full
|
|
URL:=https://github.com/tsl0922/ttyd
|
|
SUBMENU:=Terminal
|
|
MAINTAINER:=Shuanglei Tao <tsl0922@gmail.com>
|
|
endef
|
|
|
|
define Package/ttyd/description
|
|
ttyd is a command-line tool for sharing terminal over the web.
|
|
endef
|
|
|
|
define Package/ttyd/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttyd $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,ttyd))
|