summaryrefslogtreecommitdiff
path: root/editors/emacs/Makefile.common
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
commit802930af5457c6d817874d38c30fa6a2597be29c (patch)
tree644ee944eab69d7cb1c706b5a5ef7c26078158ad /editors/emacs/Makefile.common
parenta67c4d51cb06e081738e3c72b427af7dd8fdad4f (diff)
downloadpkgsrc-802930af5457c6d817874d38c30fa6a2597be29c.tar.gz
Enable terminfo support for NetBSD if available.
Diffstat (limited to 'editors/emacs/Makefile.common')
-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"