summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorroy <roy@pkgsrc.org>2010-05-05 15:17:50 +0000
committerroy <roy@pkgsrc.org>2010-05-05 15:17:50 +0000
commitc95c007ad2f324935d5157f0d4464462de52c0b0 (patch)
tree644ee944eab69d7cb1c706b5a5ef7c26078158ad /editors
parentb2562b664b4cacb1253f34c30c8e92d387b5c310 (diff)
downloadpkgsrc-c95c007ad2f324935d5157f0d4464462de52c0b0.tar.gz
Enable terminfo support for NetBSD if available.
Diffstat (limited to 'editors')
-rw-r--r--editors/emacs/Makefile.common6
1 files changed, 4 insertions, 2 deletions
diff --git a/editors/emacs/Makefile.common b/editors/emacs/Makefile.common
index a7972ad3a77..db089b2e017 100644
--- a/editors/emacs/Makefile.common
+++ b/editors/emacs/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.25 2010/02/21 12:26:36 wiz Exp $
+# $NetBSD: Makefile.common,v 1.26 2010/05/05 15:17:50 roy Exp $
#
# used by editors/emacs/Makefile
# used by editors/emacs-nox11/Makefile
@@ -58,7 +58,9 @@ CHECK_WRKREF_SKIP+= bin/emacs-${EMACS_VERSION}
CPPFLAGS+= -DDFLY_CRT_USRLIB
.endif
-.if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD"
+.if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h)
+CPPFLAGS+= -DTERMINFO
+.elif ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD"
.include "../../mk/curses.buildlink3.mk"
.else
.include "../../mk/termcap.buildlink3.mk"