| @@ -1,19 +1,20 @@ | | | @@ -1,19 +1,20 @@ |
1 | # $NetBSD: Makefile.common,v 1.2 2012/10/03 11:43:33 asau Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.3 2013/02/17 06:07:25 dholland Exp $ |
2 | # | | 2 | # |
3 | # used by editors/emacs24/Makefile | | 3 | # used by editors/emacs24/Makefile |
4 | # used by editors/emacs24-nox11/Makefile | | 4 | # used by editors/emacs24-nox11/Makefile |
5 | | | 5 | |
6 | DISTNAME= emacs-${EMACS_VERSION} | | 6 | DISTNAME= emacs-${EMACS_VERSION} |
| | | 7 | PKGNAME?= ${DISTNAME:S/emacs/emacs24/} |
7 | CATEGORIES= editors | | 8 | CATEGORIES= editors |
8 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | | 9 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} |
9 | | | 10 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 11 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html | | 12 | HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html |
12 | COMMENT= GNU editing macros (editor) | | 13 | COMMENT= GNU editing macros (editor) |
13 | LICENSE= gnu-gpl-v3 | | 14 | LICENSE= gnu-gpl-v3 |
14 | | | 15 | |
15 | WRKSRC= ${WRKDIR}/${DISTNAME:S/b$//} | | 16 | WRKSRC= ${WRKDIR}/${DISTNAME:S/b$//} |
16 | MAKE_JOBS_SAFE= no | | 17 | MAKE_JOBS_SAFE= no |
17 | | | 18 | |
18 | CONFLICTS+= emacs-nox11-[0-9]* | | 19 | CONFLICTS+= emacs-nox11-[0-9]* |
19 | | | 20 | |
| @@ -62,17 +63,17 @@ CFLAGS+= -fno-pie | | | @@ -62,17 +63,17 @@ CFLAGS+= -fno-pie |
62 | .endif | | 63 | .endif |
63 | | | 64 | |
64 | .if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h) | | 65 | .if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h) |
65 | CPPFLAGS+= -DTERMINFO | | 66 | CPPFLAGS+= -DTERMINFO |
66 | .elif ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD" | | 67 | .elif ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD" |
67 | .include "../../mk/curses.buildlink3.mk" | | 68 | .include "../../mk/curses.buildlink3.mk" |
68 | .else | | 69 | .else |
69 | .include "../../mk/termcap.buildlink3.mk" | | 70 | .include "../../mk/termcap.buildlink3.mk" |
70 | .endif | | 71 | .endif |
71 | | | 72 | |
72 | .include "../../mk/oss.buildlink3.mk" | | 73 | .include "../../mk/oss.buildlink3.mk" |
73 | | | 74 | |
74 | post-extract: | | 75 | post-extract: |
75 | cp ${.CURDIR}/../../editors/emacs/files/site-init.el ${WRKSRC}/lisp | | 76 | cp ${.CURDIR}/../../editors/emacs23/files/site-init.el ${WRKSRC}/lisp |
76 | cp ${FILESDIR}/dragonfly.h ${WRKSRC}/src/s | | 77 | cp ${FILESDIR}/dragonfly.h ${WRKSRC}/src/s |
77 | ${CHMOD} -R go-w ${WRKSRC} | | 78 | ${CHMOD} -R go-w ${WRKSRC} |
78 | ${CHMOD} ugo+rx ${WRKSRC}/leim/ja-dic ${WRKSRC}/leim/quail | | 79 | ${CHMOD} ugo+rx ${WRKSRC}/leim/ja-dic ${WRKSRC}/leim/quail |