ttyd: Add dependency for vim
authorRosen Penev <rosenp@gmail.com>
Wed, 10 Apr 2019 21:55:37 +0000 (14:55 -0700)
committerEneas U de Queiroz <cotequeiroz@gmail.com>
Sat, 24 Aug 2019 18:51:36 +0000 (15:51 -0300)
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 773c19afad0723bc2ba49b36e8172776e2eaf207)

utils/ttyd/Makefile

index e029097c5658adc99350f06b8e6c65f622fdf13a..4613934e11e566ef3515347a40d7098dae7ac9c7 100644 (file)
@@ -12,7 +12,6 @@ PKG_VERSION:=1.4.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_URL:=https://codeload.github.com/tsl0922/ttyd/tar.gz/$(PKG_VERSION)?
 PKG_SOURCE_VERSION=$(PKG_VERSION)
 PKG_HASH=757a9b5b5dd3de801d7db8fab6035d97ea144b02a51c78bdab28a8e07bcf05d6
@@ -20,6 +19,7 @@ PKG_HASH=757a9b5b5dd3de801d7db8fab6035d97ea144b02a51c78bdab28a8e07bcf05d6
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
+PKG_BUILD_DEPENDS:=vim/host
 CMAKE_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk