blob: 78556a522e9604fccd5dd8a9c24cca0544840c79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# $NetBSD: Makefile.common,v 1.7 2006/03/30 03:44:43 jlam Exp $
MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
MAINTAINER= markd@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html
CONFLICTS= mule-[0-9]*
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
PATCHDIR= ${.CURDIR}/../../editors/emacs/patches
FILESDIR= ${.CURDIR}/../../editors/emacs/files
DISTINFO_FILE= ${.CURDIR}/../../editors/emacs/distinfo
PLIST_SRC= ${.CURDIR}/../../editors/emacs/PLIST
# needed for 21.4a, can probably go away on next update
EMACSVERSION= 21.4
WRKSRC= ${WRKDIR}/emacs-${EMACSVERSION}
PLIST_SUBST+= EMACSVERSION=${EMACSVERSION:Q}
MAKEFLAGS+= EMACSLOADPATH=${WRKSRC}/lisp
# build PATH in the dumped emacs is not a problem
CHECK_WRKREF_SKIP+= ${PREFIX}/bin/emacs
CHECK_WRKREF_SKIP+= ${PREFIX}/bin/emacs-${EMACSVERSION}
.include "../../mk/bsd.prefs.mk"
# This matches NetBSD <1.7 releases and 1.6A-1.6P, where ld is <2.13.2.1.
.if (${OPSYS} == "NetBSD" && \
(empty(OS_VERSION:M1.[0-5]*) && \
empty(OS_VERSION:M1.6_*) && \
empty(OS_VERSION:M1.6) && \
empty(OS_VERSION:M1.6.[0-9]*) && \
empty(OS_VERSION:M1.6[A-P]*))) || \
${OPSYS} == "DragonFly"
# If using GNU ld 2.13.2.1 or later, avoid creating combined reloc
# sections and .data reloc sections, both of which Emacs can't handle
# properly. Analyzed by Stephen Ma.
LDFLAGS+= -Wl,-z,nocombreloc
.endif
.if ${OPSYS} == "Darwin"
PLIST_SUBST+= FNS_EL="@comment "
PLIST_SUBST+= DOCTAIL=""
.else
PLIST_SUBST+= FNS_EL=""
PLIST_SUBST+= DOCTAIL="-${EMACSVERSION}.1"
.endif
# Disable W^X.
.if ${OPSYS} == "OpenBSD"
LDFLAGS+= -Z
.endif
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-3.*)
CFLAGS+= -fno-zero-initialized-in-bss
.endif
INFO_FILES= # PLIST
REPLACE_PERL= lib-src/grep-changelog
post-extract:
${CP} ${FILESDIR}/site-init.el ${WRKSRC}/lisp
${CP} ${FILESDIR}/amd64.h ${WRKSRC}/src/m
${CP} ${FILESDIR}/powermac.h ${WRKSRC}/src/m
${CP} ${FILESDIR}/darwin.h ${WRKSRC}/src/s
${CP} ${FILESDIR}/unexmacosx.c ${WRKSRC}/src
${CP} ${FILESDIR}/sh3el.h ${WRKSRC}/src/m
pre-install:
@${FIND} ${WRKSRC} -type f -name "*.orig" -print | ${XARGS} ${RM} -f
post-install:
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/emacs
|