| @@ -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 | |
6 | DISTNAME= emacs-${EMACS_VERSION} | | 6 | DISTNAME= emacs-${EMACS_VERSION} |
7 | CATEGORIES= editors | | 7 | CATEGORIES= editors |
8 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | | 8 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} |
9 | | | 9 | |
10 | MAINTAINER= markd@NetBSD.org | | 10 | MAINTAINER= markd@NetBSD.org |
11 | HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html | | 11 | HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html |
12 | COMMENT= GNU editing macros (editor) | | 12 | COMMENT= GNU editing macros (editor) |
13 | LICENSE= gnu-gpl-v3 | | 13 | LICENSE= 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 | |
49 | SPECIAL_PERMS+= libexec/emacs/${EMACS_VERSION}/${MACHINE_GNU_PLATFORM}/update-game-score ${SETGID_GAMES_PERMS} | | 49 | SPECIAL_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 |
52 | CHECK_WRKREF_SKIP+= bin/emacs | | 52 | CHECK_WRKREF_SKIP+= bin/emacs |
53 | CHECK_WRKREF_SKIP+= bin/emacs-${EMACS_VERSION} | | 53 | CHECK_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) |
58 | CPPFLAGS+= -DDFLY_CRT_USRLIB | | 58 | CPPFLAGS+= -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) |
| | | 62 | CPPFLAGS+= -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 | |
69 | post-extract: | | 71 | post-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} |