Index: head/devel/Makefile =================================================================== --- head/devel/Makefile +++ head/devel/Makefile @@ -6444,6 +6444,7 @@ SUBDIR += tclxml SUBDIR += tdl SUBDIR += template-glib + SUBDIR += termbox SUBDIR += terminality SUBDIR += tevent SUBDIR += tevent1 Index: head/devel/termbox/Makefile =================================================================== --- head/devel/termbox/Makefile +++ head/devel/termbox/Makefile @@ -0,0 +1,29 @@ +# Created by: Adam Saponara +# $FreeBSD$ + +PORTNAME= termbox +DISTVERSIONPREFIX= v +DISTVERSION= 1.1.2 +CATEGORIES= devel + +MAINTAINER= as@php.net +COMMENT= Legacy-free alternative to ncurses + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= waf +USE_GITHUB= yes +GH_ACCOUNT= nsf +USE_LDCONFIG= yes + +PLIST_FILES= include/termbox.h \ + lib/libtermbox.so.1.0.0 \ + lib/libtermbox.so.1 \ + lib/libtermbox.so \ + lib/libtermbox.a + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtermbox.so.1.0.0 + +.include Index: head/devel/termbox/distinfo =================================================================== --- head/devel/termbox/distinfo +++ head/devel/termbox/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1568276632 +SHA256 (nsf-termbox-v1.1.2_GH0.tar.gz) = 61c9940b42b3ac44bf0cba67eacba75e3c02088b8c695149528c77def04d69b1 +SIZE (nsf-termbox-v1.1.2_GH0.tar.gz) = 119673 Index: head/devel/termbox/pkg-descr =================================================================== --- head/devel/termbox/pkg-descr +++ head/devel/termbox/pkg-descr @@ -0,0 +1,20 @@ +Termbox is a library that provides minimalistic API which allows the +programmer to write text-based user interfaces. + +It is based on a very simple abstraction. The main idea is viewing +terminals as a table of fixed-size cells and input being a stream of +structured messages. Would be fair to say that the model is inspired +by windows console API. The abstraction itself is not perfect and it +may create problems in certain areas. The most sensitive ones are +copy & pasting and wide characters (mostly Chinese, Japanese, Korean +(CJK) characters). When it comes to copy & pasting, the notion of +cells is not really compatible with the idea of text. And CJK runes +often require more than one cell to display them nicely. Despite the +mentioned flaws, using such a simple model brings benefits in a form +of simplicity. And KISS principle is important. + +At this point one should realize, that CLI (command-line interfaces) +aren't really a thing termbox is aimed at. But rather +pseudo-graphical user interfaces. + +WWW: https://github.com/nsf/termbox