summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2002-02-23 09:02:41 +0000
committernobutaka <nobutaka@FreeBSD.org>2002-02-23 09:02:41 +0000
commite1574a96c33f7831401ffffb85baedd6f7f96ff1 (patch)
treedfcf8ef4e9e4e2bd5b4213969295b91e1b77c3c8
parentaec1910ab1cb214085a6e9d6994fa95ec9ef81b1 (diff)
downloadFreeBSD-ports-e1574a96c33f7831401ffffb85baedd6f7f96ff1.zip
FreeBSD-ports-e1574a96c33f7831401ffffb85baedd6f7f96ff1.tar.gz
Link libncurses to avoid segfaults when emacs is executed with -nw option
and TERM=kterm-color. Submitted by: Mori Kouji <mori@tri.asanuma.co.jp>
-rw-r--r--editors/emacs21/Makefile2
-rw-r--r--editors/emacs21/files/patch-src:s:freebsd.h14
2 files changed, 15 insertions, 1 deletions
diff --git a/editors/emacs21/Makefile b/editors/emacs21/Makefile
index d222493..6cbb096 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 0000000..2eb9ea8
--- /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
OpenPOWER on IntegriCloud