Thu Apr 27 13:43:01 2017 UTC ()
Add PRINT_PLIST_AWK for easier updates.


(wiz)
diff -r1.2 -r1.3 pkgsrc/editors/emacs25/Makefile.common

cvs diff -r1.2 -r1.3 pkgsrc/editors/emacs25/Makefile.common (expand / switch to unified diff)

--- pkgsrc/editors/emacs25/Makefile.common 2016/12/31 14:16:14 1.2
+++ pkgsrc/editors/emacs25/Makefile.common 2017/04/27 13:43:01 1.3
@@ -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
8DISTNAME= emacs-${EMACS_VERSION} 8DISTNAME= emacs-${EMACS_VERSION}
9PKGNAME?= ${DISTNAME:S/emacs/emacs25/} 9PKGNAME?= ${DISTNAME:S/emacs/emacs25/}
10CATEGORIES= editors 10CATEGORIES= editors
11MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} 11MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
12 12
13MAINTAINER= pkgsrc-users@NetBSD.org 13MAINTAINER= pkgsrc-users@NetBSD.org
14HOMEPAGE= https://www.gnu.org/software/emacs/ 14HOMEPAGE= 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
43MAKE_DIRS_PERMS+= ${VARBASE}/games/emacs ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE} 43MAKE_DIRS_PERMS+= ${VARBASE}/games/emacs ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
44CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/snake-scores \ 44CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/snake-scores \
45 ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE} 45 ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
46CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/tetris-scores \ 46CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/tetris-scores \
47 ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE} 47 ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
48 48
49SPECIAL_PERMS+= libexec/emacs/${EMACS_VERSION}/${MACHINE_GNU_PLATFORM}/update-game-score ${SETGID_GAMES_PERMS} 49SPECIAL_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
52CHECK_WRKREF_SKIP+= bin/emacs 52CHECK_WRKREF_SKIP+= bin/emacs
53CHECK_WRKREF_SKIP+= bin/emacs-${EMACS_VERSION} 53CHECK_WRKREF_SKIP+= bin/emacs-${EMACS_VERSION}
54 54
 55PRINT_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.
58pre-configure: fake-libgcc 60pre-configure: fake-libgcc
59 61
60.PHONY: fake-libgcc 62.PHONY: fake-libgcc
61fake-libgcc: 63fake-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)
66CPPFLAGS+= -DTERMINFO 68CPPFLAGS+= -DTERMINFO
67.elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD" 69.elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD"