summaryrefslogtreecommitdiff
path: root/editors/emacs21
diff options
context:
space:
mode:
authorroy <roy>2010-05-05 14:26:36 +0000
committerroy <roy>2010-05-05 14:26:36 +0000
commit5303bc4860bb0b3777c03393fe989720f7de708f (patch)
treed506514be8fd36ead98a173d75346f4fd318ca45 /editors/emacs21
parentdac2e99547760e92ad9e9cb841d53e1ce07ad9ff (diff)
downloadpkgsrc-5303bc4860bb0b3777c03393fe989720f7de708f.tar.gz
Define TERMINFO for building on NetBSD-6 for the terminfo interface.
Diffstat (limited to 'editors/emacs21')
-rw-r--r--editors/emacs21/Makefile4
-rw-r--r--editors/emacs21/Makefile.common9
2 files changed, 10 insertions, 3 deletions
diff --git a/editors/emacs21/Makefile b/editors/emacs21/Makefile
index e238c39a260..78f005890ad 100644
--- a/editors/emacs21/Makefile
+++ b/editors/emacs21/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2010/01/24 13:26:10 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2010/05/05 14:26:36 roy Exp $
-PKGREVISION= 17
+PKGREVISION= 18
CATEGORIES= editors
COMMENT= GNU editing macros (editor)
diff --git a/editors/emacs21/Makefile.common b/editors/emacs21/Makefile.common
index a3956fdb720..05fe8442901 100644
--- a/editors/emacs21/Makefile.common
+++ b/editors/emacs21/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.6 2009/04/30 17:22:06 hasso Exp $
+# $NetBSD: Makefile.common,v 1.7 2010/05/05 14:26:36 roy Exp $
DISTNAME= emacs-${EMACSVERSION}a
@@ -45,6 +45,13 @@ CONFIGURE_ARGS+= --srcdir=${WRKSRC:Q}
LDFLAGS+= -Wl,-z,nocombreloc
.endif
+# Use terminfo on NetBSD-6.
+# We cannot use terminfo.*.mk as emacs WILL force a link to termcap,
+# but this is fine for us.
+.if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h)
+CPPFLAGS+= -DTERMINFO
+.endif
+
.if (${OPSYS} == "DragonFly") && exists(/usr/lib/crtn.o)
CPPFLAGS+= -DDFLY_CRT_USRLIB
.endif