| @@ -1,88 +1,86 @@ | | | @@ -1,88 +1,86 @@ |
1 | # $NetBSD: Makefile.common,v 1.2 2013/02/23 23:53:18 dholland Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.3 2013/02/24 01:25:30 dholland Exp $ |
2 | # | | 2 | # |
3 | # used by editors/emacs22/Makefile | | 3 | # used by editors/emacs22/Makefile |
4 | # used by editors/emacs22-nox11/Makefile | | 4 | # used by editors/emacs22-nox11/Makefile |
5 | | | 5 | |
6 | COMMENT?= GNU editing macros (editor) | | 6 | COMMENT?= GNU editing macros (editor) |
7 | | | 7 | |
8 | DISTNAME= emacs-22.3 | | 8 | DISTNAME= emacs-22.3 |
9 | PKGNAME?= ${DISTNAME:S/emacs/emacs22/} | | 9 | PKGNAME?= ${DISTNAME:S/emacs/emacs22/} |
10 | CATEGORIES= editors | | 10 | CATEGORIES= editors |
11 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | | 11 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} |
12 | | | 12 | |
13 | MAINTAINER= pkgsrc-users@NetBSD.org | | 13 | MAINTAINER= pkgsrc-users@NetBSD.org |
14 | HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html | | 14 | HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html |
15 | LICENSE= gnu-gpl-v3 | | 15 | LICENSE= gnu-gpl-v3 |
16 | | | 16 | |
17 | CONFLICTS+= elisp-manual-[0-9]* | | 17 | CONFLICTS+= elisp-manual-[0-9]* |
18 | CONFLICTS+= emacs-[0-9]* | | | |
19 | CONFLICTS+= emacs-nox11-[0-9]* | | | |
20 | CONFLICTS+= mule-[0-9]* | | 18 | CONFLICTS+= mule-[0-9]* |
21 | | | 19 | |
22 | USE_TOOLS+= gmake gzip mktemp:run perl:run pkg-config | | 20 | USE_TOOLS+= gmake gzip mktemp:run perl:run pkg-config |
23 | GNU_CONFIGURE= yes | | 21 | GNU_CONFIGURE= yes |
24 | INFO_FILES= yes | | 22 | INFO_FILES= yes |
25 | | | 23 | |
26 | SETGIDGAME= yes | | 24 | SETGIDGAME= yes |
27 | | | 25 | |
28 | .include "options.mk" | | 26 | .include "options.mk" |
29 | | | 27 | |
30 | MAKEFLAGS+= EMACSLOADPATH=${WRKSRC}/lisp | | 28 | MAKEFLAGS+= EMACSLOADPATH=${WRKSRC}/lisp |
31 | | | 29 | |
32 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} | | 30 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} |
33 | CONFIGURE_ENV+= GAMEOWN=${GAMEOWN:Q} | | 31 | CONFIGURE_ENV+= GAMEOWN=${GAMEOWN:Q} |
34 | | | 32 | |
35 | BUILD_DEFS+= VARBASE | | 33 | BUILD_DEFS+= VARBASE |
36 | BUILD_DEFS+= GAMEDATAMODE | | 34 | BUILD_DEFS+= GAMEDATAMODE |
37 | | | 35 | |
38 | # build PATH in the dumped emacs is not a problem | | 36 | # build PATH in the dumped emacs is not a problem |
39 | CHECK_WRKREF_SKIP+= bin/emacs | | 37 | CHECK_WRKREF_SKIP+= bin/emacs |
40 | CHECK_WRKREF_SKIP+= bin/emacs-[0-9]* | | 38 | CHECK_WRKREF_SKIP+= bin/emacs-[0-9]* |
41 | | | 39 | |
42 | REPLACE_PERL= lib-src/grep-changelog | | 40 | REPLACE_PERL= lib-src/grep-changelog |
43 | | | 41 | |
44 | SUBST_CLASSES+= test_equal | | 42 | SUBST_CLASSES+= test_equal |
45 | SUBST_STAGE.test_equal= pre-configure | | 43 | SUBST_STAGE.test_equal= pre-configure |
46 | SUBST_MESSAGE.test_equal= Fixing bashisms in test(1) usage. | | 44 | SUBST_MESSAGE.test_equal= Fixing bashisms in test(1) usage. |
47 | SUBST_FILES.test_equal= mac/make-package | | 45 | SUBST_FILES.test_equal= mac/make-package |
48 | SUBST_SED.test_equal= -e 's/ == / = /g' | | 46 | SUBST_SED.test_equal= -e 's/ == / = /g' |
49 | | | 47 | |
50 | MAKE_DIRS_PERMS+= ${VARBASE}/games/emacs \ | | 48 | MAKE_DIRS_PERMS+= ${VARBASE}/games/emacs \ |
51 | ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE:Q} | | 49 | ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE:Q} |
52 | CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/snake-scores \ | | 50 | CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/snake-scores \ |
53 | ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE:Q} | | 51 | ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE:Q} |
54 | CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/tetris-scores \ | | 52 | CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/tetris-scores \ |
55 | ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE:Q} | | 53 | ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE:Q} |
56 | SPECIAL_PERMS+= libexec/emacs/${PKGVERSION_NOREV}/${MACHINE_GNU_PLATFORM}/update-game-score ${SETGID_GAMES_PERMS} | | 54 | SPECIAL_PERMS+= libexec/emacs/${PKGVERSION_NOREV}/${MACHINE_GNU_PLATFORM}/update-game-score ${SETGID_GAMES_PERMS} |
57 | | | 55 | |
58 | .if (${OPSYS} == "DragonFly") && exists(/usr/lib/crtn.o) | | 56 | .if (${OPSYS} == "DragonFly") && exists(/usr/lib/crtn.o) |
59 | CPPFLAGS+= -DDFLY_CRT_USRLIB | | 57 | CPPFLAGS+= -DDFLY_CRT_USRLIB |
60 | .endif | | 58 | .endif |
61 | | | 59 | |
62 | .include "../../mk/compiler.mk" | | 60 | .include "../../mk/compiler.mk" |
63 | | | 61 | |
64 | # "emacs" uses the C pre-processor to generate makefiles. The C pre-processor | | 62 | # "emacs" uses the C pre-processor to generate makefiles. The C pre-processor |
65 | # of newer GCC version is designed to break this by purpose. We work around | | 63 | # of newer GCC version is designed to break this by purpose. We work around |
66 | # that using the traditional mode to generate makefiles. | | 64 | # that using the traditional mode to generate makefiles. |
67 | .if !empty(CC_VERSION:Mgcc-[4-9].*) | | 65 | .if !empty(CC_VERSION:Mgcc-[4-9].*) |
68 | CPP+= -P | | 66 | CPP+= -P |
69 | CONFIGURE_ENV+= CPP=${CPP:Q} | | 67 | CONFIGURE_ENV+= CPP=${CPP:Q} |
70 | .endif | | 68 | .endif |
71 | | | 69 | |
72 | post-extract: | | 70 | post-extract: |
73 | cp ${FILESDIR}/site-init.el ${WRKSRC}/lisp | | 71 | cp ${FILESDIR}/site-init.el ${WRKSRC}/lisp |
74 | cp ${FILESDIR}/dragonfly.h ${WRKSRC}/src/s | | 72 | cp ${FILESDIR}/dragonfly.h ${WRKSRC}/src/s |
75 | ${CHMOD} -R go-w ${WRKSRC} | | 73 | ${CHMOD} -R go-w ${WRKSRC} |
76 | | | 74 | |
77 | # These dirs are installed by tar-copy and can sometimes come out mode | | 75 | # These dirs are installed by tar-copy and can sometimes come out mode |
78 | # 754, which if PKG_DEVELOPER is set causes the build to fail. | | 76 | # 754, which if PKG_DEVELOPER is set causes the build to fail. |
79 | post-install: | | 77 | post-install: |
80 | .for file in leim leim/ja-dic leim/quail | | 78 | .for file in leim leim/ja-dic leim/quail |
81 | ${CHMOD} 755 ${DESTDIR}${PREFIX}/share/emacs/${PKGVERSION_NOREV}/${file} | | 79 | ${CHMOD} 755 ${DESTDIR}${PREFIX}/share/emacs/${PKGVERSION_NOREV}/${file} |
82 | .endfor | | 80 | .endfor |
83 | | | 81 | |
84 | | | 82 | |
85 | .include "../../mk/oss.buildlink3.mk" | | 83 | .include "../../mk/oss.buildlink3.mk" |
86 | .include "../../mk/termcap.buildlink3.mk" | | 84 | .include "../../mk/termcap.buildlink3.mk" |
87 | | | 85 | |
88 | .include "../../mk/bsd.pkg.mk" | | 86 | .include "../../mk/bsd.pkg.mk" |