ports/sysutils/mtm/files/patch-config.def.h
Kirill Ponomarev 7f3d1f7eb7 Add sysutils/mtm:
mtm is the Micro Terminal Multiplexer, a terminal multiplexer.

It has four major features/princples:
 - Simplicity: there are three commands (change focus, split, close). There are
   no modes, no dozens of commands, no crazy feature list.
 - Compatibility: mtm emulates a classic ANSI text terminal. That means it
   should work out of the box on essentially all terminfo/termcap-based systems
   (even pretty old ones), without needing to install a new termcap entry.
 - Size mtm is small. The entire project is around 1000 lines of code.
 - Stability: mtm is "finished" as it is now. You don't need to worry about it
   changing on you unexpectedly. The only changes that can happen at this point
   are:
    - Bug fixes.
    - Translation improvements.
    - Accessibility improvements.
    - Fixes to keep it working on modern OSes.

WWW: https://github.com/deadpixi/mtm

PR:		228152
Submitted by:	0mp@FreeBSD.org
Reviewed by:	tobik
2018-05-11 16:13:49 +00:00

20 lines
745 B
C

--- config.def.h.orig 2018-05-07 14:54:13 UTC
+++ config.def.h
@@ -38,7 +38,7 @@
/* The path for the wide-character curses library. */
#ifndef NCURSESW_INCLUDE_H
- #if defined(__APPLE__) || (defined(BSD) && !defined(__linux__))
+ #if defined(__APPLE__) || (defined(BSD) && !defined(__linux__)) || defined(__FreeBSD__)
#define NCURSESW_INCLUDE_H <curses.h>
#else
#define NCURSESW_INCLUDE_H <ncursesw/curses.h>
@@ -50,6 +50,8 @@
#ifndef FORKPTY_INCLUDE_H
#if defined(__APPLE__) || (defined(BSD) && !defined(__linux__))
#define FORKPTY_INCLUDE_H <util.h>
+ #elif defined(__FreeBSD__)
+ #define FORKPTY_INCLUDE_H <libutil.h>
#else
#define FORKPTY_INCLUDE_H <pty.h>
#endif