| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.16 2016/02/25 12:22:40 jperkin Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.17 2016/11/11 10:54:41 maya Exp $ |
2 | # | | 2 | # |
3 | # used by editors/emacs21/Makefile | | 3 | # used by editors/emacs21/Makefile |
4 | # used by editors/emacs21-nox11/Makefile | | 4 | # used by editors/emacs21-nox11/Makefile |
5 | | | 5 | |
6 | DISTNAME= emacs-${EMACSVERSION}a | | 6 | DISTNAME= emacs-${EMACSVERSION}a |
7 | PKGNAME?= emacs21-${EMACSVERSION}a | | 7 | PKGNAME?= emacs21-${EMACSVERSION}a |
8 | | | 8 | |
9 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | | 9 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@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 | | | 13 | |
14 | CONFLICTS= mule-[0-9]* | | 14 | CONFLICTS= mule-[0-9]* |
| @@ -29,39 +29,30 @@ PLIST_SUBST+= EMACSVERSION=${EMACSVERSIO | | | @@ -29,39 +29,30 @@ PLIST_SUBST+= EMACSVERSION=${EMACSVERSIO |
29 | MAKEFLAGS+= EMACSLOADPATH=${WRKSRC}/lisp | | 29 | MAKEFLAGS+= EMACSLOADPATH=${WRKSRC}/lisp |
30 | | | 30 | |
31 | # build PATH in the dumped emacs is not a problem | | 31 | # build PATH in the dumped emacs is not a problem |
32 | CHECK_WRKREF_SKIP+= bin/emacs | | 32 | CHECK_WRKREF_SKIP+= bin/emacs |
33 | CHECK_WRKREF_SKIP+= bin/emacs-${EMACSVERSION} | | 33 | CHECK_WRKREF_SKIP+= bin/emacs-${EMACSVERSION} |
34 | | | 34 | |
35 | CONFIGURE_ARGS+= --srcdir=${WRKSRC:Q} | | 35 | CONFIGURE_ARGS+= --srcdir=${WRKSRC:Q} |
36 | INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} | | 36 | INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} |
37 | INSTALL_MAKE_FLAGS+= mandir=${DESTDIR}${PREFIX}/${PKGMANDIR} | | 37 | INSTALL_MAKE_FLAGS+= mandir=${DESTDIR}${PREFIX}/${PKGMANDIR} |
38 | INSTALL_MAKE_FLAGS+= infodir=${DESTDIR}${PREFIX}/${PKGINFODIR} | | 38 | INSTALL_MAKE_FLAGS+= infodir=${DESTDIR}${PREFIX}/${PKGINFODIR} |
39 | | | 39 | |
40 | .include "../../mk/bsd.prefs.mk" | | 40 | .include "../../mk/bsd.prefs.mk" |
41 | | | 41 | |
42 | # This matches NetBSD <1.7 releases and 1.6A-1.6P, where ld is <2.13.2.1. | | | |
43 | .if (${OPSYS} == "NetBSD" && \ | | | |
44 | (empty(OS_VERSION:M1.[0-5]*) && \ | | | |
45 | empty(OS_VERSION:M1.6_*) && \ | | | |
46 | empty(OS_VERSION:M1.6) && \ | | | |
47 | empty(OS_VERSION:M1.6.[0-9]*) && \ | | | |
48 | empty(OS_VERSION:M1.6[A-P]*))) || \ | | | |
49 | ${OPSYS} == "DragonFly" | | | |
50 | # If using GNU ld 2.13.2.1 or later, avoid creating combined reloc | | 42 | # If using GNU ld 2.13.2.1 or later, avoid creating combined reloc |
51 | # sections and .data reloc sections, both of which Emacs can't handle | | 43 | # sections and .data reloc sections, both of which Emacs can't handle |
52 | # properly. Analyzed by Stephen Ma. | | 44 | # properly. Analyzed by Stephen Ma. |
53 | LDFLAGS+= -Wl,-z,nocombreloc | | 45 | LDFLAGS+= -Wl,-z,nocombreloc |
54 | .endif | | | |
55 | | | 46 | |
56 | # Use terminfo on NetBSD-6. | | 47 | # Use terminfo on NetBSD-6. |
57 | # We cannot use terminfo.*.mk as emacs WILL force a link to termcap, | | 48 | # We cannot use terminfo.*.mk as emacs WILL force a link to termcap, |
58 | # but this is fine for us. | | 49 | # but this is fine for us. |
59 | .if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h) | | 50 | .if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h) |
60 | CPPFLAGS+= -DTERMINFO | | 51 | CPPFLAGS+= -DTERMINFO |
61 | .endif | | 52 | .endif |
62 | | | 53 | |
63 | .if (${OPSYS} == "DragonFly") && exists(/usr/lib/crtn.o) | | 54 | .if (${OPSYS} == "DragonFly") && exists(/usr/lib/crtn.o) |
64 | CPPFLAGS+= -DDFLY_CRT_USRLIB | | 55 | CPPFLAGS+= -DDFLY_CRT_USRLIB |
65 | .endif | | 56 | .endif |
66 | | | 57 | |
67 | PLIST_VARS+= fns.el | | 58 | PLIST_VARS+= fns.el |