Wed May 5 15:17:51 2010 UTC ()
Enable terminfo support for NetBSD if available.


(roy)
diff -r1.25 -r1.26 pkgsrc/editors/emacs/Makefile.common

cvs diff -r1.25 -r1.26 pkgsrc/editors/emacs/Makefile.common (expand / switch to unified diff)

--- pkgsrc/editors/emacs/Makefile.common 2010/02/21 12:26:36 1.25
+++ pkgsrc/editors/emacs/Makefile.common 2010/05/05 15:17:50 1.26
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.common,v 1.25 2010/02/21 12:26:36 wiz Exp $ 1# $NetBSD: Makefile.common,v 1.26 2010/05/05 15:17:50 roy Exp $
2# 2#
3# used by editors/emacs/Makefile 3# used by editors/emacs/Makefile
4# used by editors/emacs-nox11/Makefile 4# used by editors/emacs-nox11/Makefile
5 5
6DISTNAME= emacs-${EMACS_VERSION} 6DISTNAME= emacs-${EMACS_VERSION}
7CATEGORIES= editors 7CATEGORIES= editors
8MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} 8MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
9 9
10MAINTAINER= markd@NetBSD.org 10MAINTAINER= markd@NetBSD.org
11HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html 11HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html
12COMMENT= GNU editing macros (editor) 12COMMENT= GNU editing macros (editor)
13LICENSE= gnu-gpl-v3 13LICENSE= gnu-gpl-v3
14 14
@@ -48,25 +48,27 @@ CONF_FILES_PERMS+= /dev/null ${VARBASE}/ @@ -48,25 +48,27 @@ CONF_FILES_PERMS+= /dev/null ${VARBASE}/
48 48
49SPECIAL_PERMS+= libexec/emacs/${EMACS_VERSION}/${MACHINE_GNU_PLATFORM}/update-game-score ${SETGID_GAMES_PERMS} 49SPECIAL_PERMS+= libexec/emacs/${EMACS_VERSION}/${MACHINE_GNU_PLATFORM}/update-game-score ${SETGID_GAMES_PERMS}
50 50
51# build PATH in the dumped emacs is not a problem 51# build PATH in the dumped emacs is not a problem
52CHECK_WRKREF_SKIP+= bin/emacs 52CHECK_WRKREF_SKIP+= bin/emacs
53CHECK_WRKREF_SKIP+= bin/emacs-${EMACS_VERSION} 53CHECK_WRKREF_SKIP+= bin/emacs-${EMACS_VERSION}
54 54
55.include "../../mk/bsd.prefs.mk" 55.include "../../mk/bsd.prefs.mk"
56 56
57.if (${OPSYS} == "DragonFly") && exists(/usr/lib/crtn.o) 57.if (${OPSYS} == "DragonFly") && exists(/usr/lib/crtn.o)
58CPPFLAGS+= -DDFLY_CRT_USRLIB 58CPPFLAGS+= -DDFLY_CRT_USRLIB
59.endif 59.endif
60 60
61.if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD" 61.if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h)
 62CPPFLAGS+= -DTERMINFO
 63.elif ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD"
62.include "../../mk/curses.buildlink3.mk" 64.include "../../mk/curses.buildlink3.mk"
63.else 65.else
64.include "../../mk/termcap.buildlink3.mk" 66.include "../../mk/termcap.buildlink3.mk"
65.endif 67.endif
66 68
67.include "../../mk/oss.buildlink3.mk" 69.include "../../mk/oss.buildlink3.mk"
68 70
69post-extract: 71post-extract:
70 cp ${.CURDIR}/../../editors/emacs/files/site-init.el ${WRKSRC}/lisp 72 cp ${.CURDIR}/../../editors/emacs/files/site-init.el ${WRKSRC}/lisp
71 cp ${FILESDIR}/dragonfly.h ${WRKSRC}/src/s 73 cp ${FILESDIR}/dragonfly.h ${WRKSRC}/src/s
72 ${CHMOD} -R go-w ${WRKSRC} 74 ${CHMOD} -R go-w ${WRKSRC}