Date: Mon, 6 Jan 2025 23:06:52 GMT From: Robert Clausecker <fuz@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: ab0c4cdc289f - main - devel/termbox2: Terminal rendering library for creating TUIs Message-ID: <202501062306.506N6qM5069930@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=ab0c4cdc289f91b36d2e2094bf64b7c13a7c0c4b commit ab0c4cdc289f91b36d2e2094bf64b7c13a7c0c4b Author: Älven <alster@vinterdalen.se> AuthorDate: 2024-12-30 20:54:34 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2025-01-06 23:06:13 +0000 devel/termbox2: Terminal rendering library for creating TUIs termbox2 is a terminal rendering library for creating TUIs. It is an alternative to the ubiquitous ncurses library. It ships with built-in support for popular terminals and can also fallback to terminfo if present. Compared to the original termbox, it retains a simple API and no dependencies beyond libc, and adds stricter error checking, more efficient escape sequence parsing, opt-in support for 32-bit color, extended grapheme clusters, code gen for built-in escape sequences, a test suite, and more. termbox2 is organized as a single file header library, though it is possible to compile it as a stand-alone shared or static library. WWW: https://github.com/termbox/termbox2 PR: 283751 --- devel/Makefile | 1 + devel/termbox2/Makefile | 34 ++++++++++++++++++++++++++++++++++ devel/termbox2/distinfo | 3 +++ devel/termbox2/pkg-descr | 10 ++++++++++ devel/termbox2/pkg-plist | 17 +++++++++++++++++ 5 files changed, 65 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index a1169437c800..6e64711b7d45 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -8234,6 +8234,7 @@ SUBDIR += tdl SUBDIR += template-glib SUBDIR += termbox + SUBDIR += termbox2 SUBDIR += termcolor SUBDIR += terminality SUBDIR += terraform-ls diff --git a/devel/termbox2/Makefile b/devel/termbox2/Makefile new file mode 100644 index 000000000000..2dacc5046518 --- /dev/null +++ b/devel/termbox2/Makefile @@ -0,0 +1,34 @@ +PORTNAME= termbox2 +DISTVERSIONPREFIX= v +DISTVERSION= 2.5.0 +CATEGORIES= devel + +MAINTAINER= alster@vinterdalen.se +COMMENT= Terminal rendering library for creating TUIs +WWW= https://github.com/termbox/termbox2/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= gmake +USE_GITHUB= yes +GH_ACCOUNT= termbox +USE_LDCONFIG= yes + +INSTALL_TARGET= install install_lib + +OPTIONS_DEFINE= DOCS EXAMPLES + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.2.0.0 + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/demo && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -name keyboard") + ${INSTALL_PROGRAM} ${WRKSRC}/demo/keyboard ${STAGEDIR}${EXAMPLESDIR}/ + +.include <bsd.port.mk> diff --git a/devel/termbox2/distinfo b/devel/termbox2/distinfo new file mode 100644 index 000000000000..2690a6d8d57e --- /dev/null +++ b/devel/termbox2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1735587865 +SHA256 (termbox-termbox2-v2.5.0_GH0.tar.gz) = 1d7a9811060e3673be417019007acbf4e2575734b6f95baaf6e8aed27f06c65a +SIZE (termbox-termbox2-v2.5.0_GH0.tar.gz) = 66122 diff --git a/devel/termbox2/pkg-descr b/devel/termbox2/pkg-descr new file mode 100644 index 000000000000..2dc04ee56cca --- /dev/null +++ b/devel/termbox2/pkg-descr @@ -0,0 +1,10 @@ +termbox2 is a terminal rendering library for creating TUIs. It is an alternative +to the ubiquitous ncurses library. It ships with built-in support for popular +terminals and can also fallback to terminfo if present. Compared to the original +termbox, it retains a simple API and no dependencies beyond libc, and adds +stricter error checking, more efficient escape sequence parsing, opt-in support +for 32-bit color, extended grapheme clusters, code gen for built-in escape +sequences, a test suite, and more. + +termbox2 is organized as a single file header library, though it is possible to +compile it as a stand-alone shared or static library. diff --git a/devel/termbox2/pkg-plist b/devel/termbox2/pkg-plist new file mode 100644 index 000000000000..d325405ff949 --- /dev/null +++ b/devel/termbox2/pkg-plist @@ -0,0 +1,17 @@ +include/termbox2.h +lib/libtermbox2.a +lib/libtermbox2.so +lib/libtermbox2.so.2 +lib/libtermbox2.so.2.0.0 +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.d +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.go +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.nim +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.php +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.rb +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.rs +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.zig +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/keyboard +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/keyboard.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/keyboard.gif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501062306.506N6qM5069930>