| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.2 2016/12/31 14:16:14 wiz Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.3 2017/04/27 13:43:01 wiz Exp $ |
2 | # | | 2 | # |
3 | # used by editors/emacs25/Makefile | | 3 | # used by editors/emacs25/Makefile |
4 | # used by editors/emacs25-nox11/Makefile | | 4 | # used by editors/emacs25-nox11/Makefile |
5 | | | 5 | |
6 | .include "../../mk/bsd.prefs.mk" | | 6 | .include "../../mk/bsd.prefs.mk" |
7 | | | 7 | |
8 | DISTNAME= emacs-${EMACS_VERSION} | | 8 | DISTNAME= emacs-${EMACS_VERSION} |
9 | PKGNAME?= ${DISTNAME:S/emacs/emacs25/} | | 9 | PKGNAME?= ${DISTNAME:S/emacs/emacs25/} |
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= https://www.gnu.org/software/emacs/ | | 14 | HOMEPAGE= https://www.gnu.org/software/emacs/ |
| @@ -42,26 +42,28 @@ CHECK_INTERPRETER_SKIP= bin/grep-changel | | | @@ -42,26 +42,28 @@ CHECK_INTERPRETER_SKIP= bin/grep-changel |
42 | | | 42 | |
43 | MAKE_DIRS_PERMS+= ${VARBASE}/games/emacs ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE} | | 43 | MAKE_DIRS_PERMS+= ${VARBASE}/games/emacs ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE} |
44 | CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/snake-scores \ | | 44 | CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/snake-scores \ |
45 | ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE} | | 45 | ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE} |
46 | CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/tetris-scores \ | | 46 | CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/tetris-scores \ |
47 | ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE} | | 47 | ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE} |
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 | PRINT_PLIST_AWK+= { gsub(/${MACHINE_GNU_PLATFORM}/, "$${MACHINE_GNU_PLATFORM}"); } |
| | | 56 | |
55 | .if (${OPSYS} == "NetBSD") && \ | | 57 | .if (${OPSYS} == "NetBSD") && \ |
56 | !exists(/usr/lib/libgcc_s.so) && !exists(/usr/lib/libgcc.a) | | 58 | !exists(/usr/lib/libgcc_s.so) && !exists(/usr/lib/libgcc.a) |
57 | # NetBSD with native Clang doesn't provide libgcc, everything is in libc. | | 59 | # NetBSD with native Clang doesn't provide libgcc, everything is in libc. |
58 | pre-configure: fake-libgcc | | 60 | pre-configure: fake-libgcc |
59 | | | 61 | |
60 | .PHONY: fake-libgcc | | 62 | .PHONY: fake-libgcc |
61 | fake-libgcc: | | 63 | fake-libgcc: |
62 | ${AR} q ${BUILDLINK_DIR}/lib/libgcc.a | | 64 | ${AR} q ${BUILDLINK_DIR}/lib/libgcc.a |
63 | .endif | | 65 | .endif |
64 | | | 66 | |
65 | .if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h) | | 67 | .if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h) |
66 | CPPFLAGS+= -DTERMINFO | | 68 | CPPFLAGS+= -DTERMINFO |
67 | .elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD" | | 69 | .elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD" |