public inbox for buildroot@busybox.net
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/ftxui: new package
@ 2026-01-17 17:30 Gilles Talis
  2026-03-07 22:45 ` Julien Olivain via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Gilles Talis @ 2026-01-17 17:30 UTC (permalink / raw)
  To: buildroot; +Cc: Gilles Talis

FTXUI is a simple cross-platform C++ library for terminal based user interfaces

Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
---
Package verified with check-package:
43 lines processed
0 warnings generated

and
test-pkg -a:
35 builds, 3 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed
---
 DEVELOPERS               |  1 +
 package/Config.in        |  1 +
 package/ftxui/Config.in  | 14 ++++++++++++++
 package/ftxui/ftxui.hash |  3 +++
 package/ftxui/ftxui.mk   | 26 ++++++++++++++++++++++++++
 5 files changed, 45 insertions(+)
 create mode 100644 package/ftxui/Config.in
 create mode 100644 package/ftxui/ftxui.hash
 create mode 100644 package/ftxui/ftxui.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 9ed4bdb0a0..15bde8dfd8 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1256,6 +1256,7 @@ F:	package/cctz/
 F:	package/clpeak/
 F:	package/faad2/
 F:	package/fdk-aac/
+F:	package/ftxui/
 F:	package/httping/
 F:	package/iozone/
 F:	package/leptonica/
diff --git a/package/Config.in b/package/Config.in
index 6ce16bce0a..008a805464 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2300,6 +2300,7 @@ menu "Text and terminal handling"
 	source "package/fcft/Config.in"
 	source "package/fmt/Config.in"
 	source "package/fstrcmp/Config.in"
+	source "package/ftxui/Config.in"
 	source "package/icu/Config.in"
 	source "package/inih/Config.in"
 	source "package/libcli/Config.in"
diff --git a/package/ftxui/Config.in b/package/ftxui/Config.in
new file mode 100644
index 0000000000..88cd77e42e
--- /dev/null
+++ b/package/ftxui/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_FTXUI
+	bool "ftxui"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_USE_WCHAR # std::wstring()
+	help
+	  FTXUI is a simple cross-platform C++ library
+	  for terminal based user interfaces
+
+	  https://arthursonzogni.github.io/FTXUI/
+
+comment "ftxui needs a toolchain w/ C++, wchar and threads"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
+		!BR2_USE_WCHAR
diff --git a/package/ftxui/ftxui.hash b/package/ftxui/ftxui.hash
new file mode 100644
index 0000000000..38cd89ccce
--- /dev/null
+++ b/package/ftxui/ftxui.hash
@@ -0,0 +1,3 @@
+# locally computed
+sha256  45819c1e54914783d4a1ca5633885035d74146778a1f74e1213cdb7b76340e71  source.tar.gz
+sha256  0224d97639ad37047d719a5ed5c0acc98de1c58ae63be0c27183dcad1328fc61  LICENSE
diff --git a/package/ftxui/ftxui.mk b/package/ftxui/ftxui.mk
new file mode 100644
index 0000000000..4cd5a0dd95
--- /dev/null
+++ b/package/ftxui/ftxui.mk
@@ -0,0 +1,26 @@
+################################################################################
+#
+# ftxui
+#
+################################################################################
+
+FTXUI_VERSION = 6.1.9
+FTXUI_SOURCE = source.tar.gz
+FTXUI_SITE = $(call github,ArthurSonzogni,FTXUI,v$(FTXUI_VERSION))
+FTXUI_LICENSE = MIT
+FTXUI_LICENSE_FILES = LICENSE
+
+FTXUI_INSTALL_STAGING = YES
+
+FTXUI_CONF_OPTS = \
+	-DFTXUI_BUILD_DOCS=OFF \
+	-DFTXUI_BUILD_EXAMPLES=OFF \
+	-DFTXUI_BUILD_TESTS=OFF \
+	-DFTXUI_BUILD_TESTS_FUZZER=OFF \
+	-DFTXUI_CLANG_TIDY=OFF \
+	-DFTXUI_DEV_WARNINGS=OFF \
+	-DFTXUI_ENABLE_COVERAGE=OFF \
+	-DFTXUI_ENABLE_INSTALL=ON \
+	-DFTXUI_QUIET=OFF
+
+$(eval $(cmake-package))
-- 
2.48.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH] package/ftxui: new package
  2026-01-17 17:30 [Buildroot] [PATCH] package/ftxui: new package Gilles Talis
@ 2026-03-07 22:45 ` Julien Olivain via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Julien Olivain via buildroot @ 2026-03-07 22:45 UTC (permalink / raw)
  To: Gilles Talis; +Cc: buildroot

On 17/01/2026 18:30, Gilles Talis wrote:
> FTXUI is a simple cross-platform C++ library for terminal based user 
> interfaces
> 
> Signed-off-by: Gilles Talis <gilles.talis@gmail.com>

Applied to master, thanks.

For info, I removed the "FTXUI_SOURCE = source.tar.gz". Since it has
no distinct version, this would have introduced issues in download
caches later. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/f983411b57a0be2c34b0b03a33a3750fa5b77c95

Best regards,

Julien.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-07 22:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-17 17:30 [Buildroot] [PATCH] package/ftxui: new package Gilles Talis
2026-03-07 22:45 ` Julien Olivain via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox