65 lines
2.1 KiB
Makefile
65 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.99 2020/06/05 12:49:04 jperkin Exp $
|
|
|
|
DISTNAME= emacs-28.0.50_2020-02-10
|
|
PKGVERSION= 28.0.50
|
|
PKGNAME= emacs28-${PKGVERSION}
|
|
PKGREVISION= 3
|
|
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"
|