summaryrefslogtreecommitdiff
path: root/editors/xemacs
diff options
context:
space:
mode:
authorhauke <hauke>2012-04-25 11:56:42 +0000
committerhauke <hauke>2012-04-25 11:56:42 +0000
commitd41d425dd52cbcde66c049922c3a6937f7fbd9e7 (patch)
tree88ff4d75383ca1a13a92911a18717e6f7ac3cecd /editors/xemacs
parent3f34754c0e8c5e3b5868be13c4d0df15f0d91589 (diff)
downloadpkgsrc-d41d425dd52cbcde66c049922c3a6937f7fbd9e7.tar.gz
Like emacs21, #define TERMINFO for NetBSD >= 6.
Fixes PR lib/46366 - thanks to dholland for the hint.
Diffstat (limited to 'editors/xemacs')
-rw-r--r--editors/xemacs/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/editors/xemacs/Makefile b/editors/xemacs/Makefile
index f515ecf305f..1950794f7ad 100644
--- a/editors/xemacs/Makefile
+++ b/editors/xemacs/Makefile
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.101 2012/02/06 12:40:05 wiz Exp $
+# $NetBSD: Makefile,v 1.102 2012/04/25 11:56:42 hauke Exp $
PKGNAME?= ${DISTNAME}
COMMENT?= XEmacs text editor version 21
DISTNAME= xemacs-21.4.22
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_XEMACS:=${DISTNAME:C/[.][^.]*$//}/}
@@ -39,6 +39,13 @@ CONFIGURE_ARGS+= --with-mule=yes
CONFIGURE_ARGS+= --with-msw=no
CFLAGS+= -Dunix
+# Use terminfo on NetBSD-6 and newer.
+# We cannot use terminfo.*.mk as XEmacs enforces a link to termcap,
+# but this is fine for us.
+.if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h)
+CPPFLAGS+= -DTERMINFO
+.endif
+
.if ${X11_TYPE} != "modular"
INFOPATH= ${PREFIX}/${PKGINFODIR}:${X11BASE}/${PKGINFODIR}:${LOCALBASE}/${PKGINFODIR}
.else