blob: 768c8ef6282b4d3986d9e61e265aa9d7dd2bafd5 (
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
|
# $NetBSD: Makefile,v 1.100 2020/08/17 20:18:32 leot Exp $
DISTNAME= emacs-28.0.50_2020-02-10
PKGVERSION= 28.0.50
PKGNAME= emacs28-${PKGVERSION}
PKGREVISION= 4
MASTER_SITES= https://alpha.gnu.org/gnu/emacs/pretest/windows/emacs-28/
CATEGORIES= editors
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.gnu.org/software/emacs/
COMMENT= GNU editing macros (development version)
LICENSE= gnu-gpl-v3
WRKSRC= ${WRKDIR}/emacs-28.0.50
GNU_CONFIGURE= yes
INFO_FILES= yes
USE_TOOLS+= autoconf automake gm4 gmake gsed gzip makeinfo
# for example, Mac OS X 10.6.1 has 2.61 which fails
AUTOCONF_REQD= 2.65
# NetBSD has 4.8
TEXINFO_REQD= 4.13
CONFIGURE_ARGS+= --srcdir=${WRKSRC}
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ENV+= GAMEOWN=${GAMES_USER}
USE_GAMESGROUP= yes
BUILD_DEFS+= VARBASE
BUILD_DEFS+= GAMEDATAMODE
PLIST_SRC+= PLIST
MAKE_DIRS_PERMS+= ${VARBASE}/games/emacs ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/snake-scores \
${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/tetris-scores \
${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
.include "options.mk"
# build PATH in the dumped emacs is not a problem
CHECK_WRKREF_SKIP+= bin/emacs
CHECK_WRKREF_SKIP+= bin/emacs-${PKGVERSION_NOREV}
CHECK_WRKREF_SKIP+= libexec/emacs/${PKGVERSION_NOREV}/${MACHINE_GNU_PLATFORM}/emacs.pdmp
CHECK_WRKREF_SKIP+= libexec/emacs/${PKGVERSION}/${MACHINE_GNU_PLATFORM}/emacs.pdmp
PRINT_PLIST_AWK+= { gsub(/${PKGVERSION_NOREV}/, "$${PKGVERSION}"); \
gsub(/${MACHINE_GNU_PLATFORM}/, "$${MACHINE_GNU_PLATFORM}"); \
print; next; }
post-extract:
# set auto-load for send-pr library
cp ${FILESDIR}/site-init.el ${WRKSRC}/lisp
pre-configure:
(cd ${WRKSRC}; ${PKGSRC_SETENV} ${CONFIGURE_ENV} ${CONFIG_SHELL} ./autogen.sh)
.include "../../fonts/harfbuzz/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/libimagequant/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|