diff mbox series

[1/1] package: add libtsm

Message ID 20210406022940.14488-1-pluhuxc@163.com
State New
Headers show
Series [1/1] package: add libtsm | expand

Commit Message

pluhuxc@163.com April 6, 2021, 2:29 a.m. UTC
From: luhui <pluhuxc@163.com>

Signed-off-by: luhui <pluhuxc@163.com>
---
 package/Config.in          |  1 +
 package/libtsm/Config.in   | 10 ++++++++++
 package/libtsm/libtsm.hash |  4 ++++
 package/libtsm/libtsm.mk   | 14 ++++++++++++++
 4 files changed, 29 insertions(+)
 create mode 100644 package/libtsm/Config.in
 create mode 100644 package/libtsm/libtsm.hash
 create mode 100644 package/libtsm/libtsm.mk
diff mbox series

Patch

diff --git a/package/Config.in b/package/Config.in
index 1269bc7b51..ca86e3dd2e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1932,6 +1932,7 @@  menu "Other"
 	source "package/libtasn1/Config.in"
 	source "package/libtommath/Config.in"
 	source "package/libtpl/Config.in"
+	source "package/libtsm/Config.in"
 	source "package/libubox/Config.in"
 	source "package/libuci/Config.in"
 	source "package/libunwind/Config.in"
diff --git a/package/libtsm/Config.in b/package/libtsm/Config.in
new file mode 100644
index 0000000000..03217dbc69
--- /dev/null
+++ b/package/libtsm/Config.in
@@ -0,0 +1,10 @@ 
+config BR2_PACKAGE_LIBTSM
+	bool "libtsm"
+	select BR2_PACKAGE_LIBXKBCOMMON
+	help
+	  TSM is a state machine for DEC VT100-VT520
+	  compatible terminal emulators. It tries to
+	  support all common standards while keeping
+	  compatibility to existing emulators.
+
+	  https://github.com/Aetf/libtsm
diff --git a/package/libtsm/libtsm.hash b/package/libtsm/libtsm.hash
new file mode 100644
index 0000000000..0b6c01b1a0
--- /dev/null
+++ b/package/libtsm/libtsm.hash
@@ -0,0 +1,4 @@ 
+sha256 7bab5ac3b5709a3f0c9d43207e8be5651402034d31c96e58140423fce55eb6c9  libtsm-4.0.1.tar.gz
+sha256 a9bdde5616ecdd1e980b44f360600ee8783b1f99b8cc83a2beb163a0a390e861  LICENSE_htable
+sha256 47b3a15b5259545b866f33c302d485fe414c65917de179b33f411c2f8722c7da  COPYING
+sha256 3d2f828a7b462939e5278ec83c7663a9ebe50851fc64883a4f544ed04f12fe03  external/wcwidth/LICENSE.txt
diff --git a/package/libtsm/libtsm.mk b/package/libtsm/libtsm.mk
new file mode 100644
index 0000000000..2ed567f6f0
--- /dev/null
+++ b/package/libtsm/libtsm.mk
@@ -0,0 +1,14 @@ 
+################################################################################
+#
+# libtsm
+#
+################################################################################
+
+LIBTSM_VERSION = 4.0.1
+LIBTSM_SITE = $(call github,Aetf,libtsm,v$(LIBTSM_VERSION))
+LIBTSM_INSTALL_STAGING = YES
+LIBTSM_SUPPORTS_IN_SOURCE_BUILD = NO
+LIBTSM_LICENSE = BSD-2-Clause, MIT, LGPL-2.1+, ISC
+LIBTSM_LICENSE_FILES = COPYING LICENSE_htable external/wcwidth/LICENSE.txt
+
+$(eval $(cmake-package))