From 1f1e82881d41686b2bb9b2a1b1f4437d4ec4d7c6 Mon Sep 17 00:00:00 2001 From: roy Date: Wed, 5 May 2010 14:26:36 +0000 Subject: Define TERMINFO for building on NetBSD-6 for the terminfo interface. --- editors/emacs21/Makefile | 4 ++-- editors/emacs21/Makefile.common | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'editors/emacs21') 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 -- cgit v1.2.3