Index: head/devel/Makefile =================================================================== --- head/devel/Makefile +++ head/devel/Makefile @@ -1554,6 +1554,7 @@ SUBDIR += libtool SUBDIR += libtpl SUBDIR += libtrue + SUBDIR += libtsm SUBDIR += libtuntap SUBDIR += libublio SUBDIR += libudev-devd Index: head/devel/libtsm/Makefile =================================================================== --- head/devel/libtsm/Makefile +++ head/devel/libtsm/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= libtsm +DISTVERSION= 3 +CATEGORIES= devel +MASTER_SITES= http://freedesktop.org/software/kmscon/releases/ + +MAINTAINER= angus@agibson.me +COMMENT= Terminal-emulator state machine + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= gmake libtool tar:xz +GNU_CONFIGURE= yes +USE_LDCONFIG= yes +CONFIGURE_ARGS= --disable-debug --disable-static +CONFIGURE_ENV= PKG_CONFIG=/dev/null # disable tests +INSTALL_TARGET= install-strip + +PLIST_FILES= include/libtsm.h \ + lib/libtsm.so \ + lib/libtsm.so.3 \ + lib/libtsm.so.3.0.0 \ + libdata/pkgconfig/libtsm.pc + +.include Index: head/devel/libtsm/distinfo =================================================================== --- head/devel/libtsm/distinfo +++ head/devel/libtsm/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1497389678 +SHA256 (libtsm-3.tar.xz) = 114115d84a2bc1802683871ea2d70a16ddeec8d2f8cde89ebd2046d775e6cf07 +SIZE (libtsm-3.tar.xz) = 293264 Index: head/devel/libtsm/pkg-descr =================================================================== --- head/devel/libtsm/pkg-descr +++ head/devel/libtsm/pkg-descr @@ -0,0 +1,18 @@ +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 like xterm, gnome-terminal, konsole, etc. + +TSM itself does not provide any rendering nor window management. It is a simple +plain state machine without any external dependencies. It can be used to +implement terminal emulators, but also to implement other applications that +need to interpret terminal escape sequences. + +This library is very similar to libvte of the gnome project. However, libvte is +highly bound to GTK+, which makes it unsuitable for non-graphics projects that +need to parse escape sequences. Instead, TSM tries to restrict its API to +terminal emulation only. Furthermore, TSM does not try to establish a new +terminal emulation standard, but instead keeps compatibility as close to xterm +as possible. This is why the TERM variable can be set to xterm-color256 with +any TSM based terminal emulator. + +WWW: https://www.freedesktop.org/wiki/Software/kmscon/libtsm/