From e1574a96c33f7831401ffffb85baedd6f7f96ff1 Mon Sep 17 00:00:00 2001 From: nobutaka Date: Sat, 23 Feb 2002 09:02:41 +0000 Subject: Link libncurses to avoid segfaults when emacs is executed with -nw option and TERM=kterm-color. Submitted by: Mori Kouji --- editors/emacs21/Makefile | 2 +- editors/emacs21/files/patch-src:s:freebsd.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 editors/emacs21/files/patch-src:s:freebsd.h (limited to 'editors') diff --git a/editors/emacs21/Makefile b/editors/emacs21/Makefile index d2224932a3c..6cbb0961c5c 100644 --- a/editors/emacs21/Makefile +++ b/editors/emacs21/Makefile @@ -7,7 +7,7 @@ PORTNAME= emacs PORTVERSION= 21.1 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= editors ipv6 MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/editors/emacs21/files/patch-src:s:freebsd.h b/editors/emacs21/files/patch-src:s:freebsd.h new file mode 100644 index 00000000000..2eb9ea8823e --- /dev/null +++ b/editors/emacs21/files/patch-src:s:freebsd.h @@ -0,0 +1,14 @@ +--- src/s/freebsd.h.orig Tue Feb 20 19:52:17 2001 ++++ src/s/freebsd.h Mon Feb 18 11:51:50 2002 +@@ -68,6 +68,11 @@ + #define LIBS_SYSTEM -lutil + #if __FreeBSD_version < 400000 + #define LIBS_TERMCAP -ltermcap ++#else ++#ifdef HAVE_LIBNCURSES ++#define TERMINFO ++#define LIBS_TERMCAP -lncurses ++#endif + #endif + + #define SYSV_SYSTEM_DIR -- cgit