diff options
Diffstat (limited to 'editors/emacs21/Makefile.common')
-rw-r--r-- | editors/emacs21/Makefile.common | 9 |
1 files changed, 8 insertions, 1 deletions
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 |