(editor/emacs-snapshot) New replacement package, but almost the same as emacs-git

This commit is contained in:
Makoto Fujiwara (CF-SX3) 2019-12-10 06:24:19 +09:00
parent a92068e50b
commit 64a50d4ec2
13 changed files with 4724 additions and 0 deletions

13
emacs-snapshot/DESCR Normal file
View File

@ -0,0 +1,13 @@
GNU Emacs is a self-documenting, customizable, extensible real-time
display editor.
Users new to Emacs will be able to use basic features fairly rapidly
by studying the tutorial and using the self-documentation features.
Emacs also has an extensive interactive manual browser. It is easily
extensible since its editing commands are written in Lisp.
GNU Emacs's many special packages handle mail reading (RMail) and
sending (Mail), outline editing (Outline), compiling (Compile),
running subshells within Emacs windows (Shell), running a Lisp
read-eval-print loop (Lisp-Interaction-Mode), automated psychotherapy
(Doctor :-) and many more.

64
emacs-snapshot/Makefile Normal file
View File

@ -0,0 +1,64 @@
# $NetBSD: Makefile,v 1.74 2015/04/24 01:19:04 makoto Exp $
DISTNAME= emacs-27.0.50_2019-11-11
PKGVERSION= 27.0.50
MASTER_SITES= https://alpha.gnu.org/gnu/emacs/pretest/windows/emacs-27/
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-27.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}
# For wip special, following gives symbol names when back trace is shown.
CFLAGS+= -g
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/bsd.pkg.mk"

3993
emacs-snapshot/PLIST Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
@comment $NetBSD: PLIST.cocoa,v 1.4 2009/10/11 10:44:34 thomasklausner Exp $
Applications/Emacs.app/Contents/Info.plist
Applications/Emacs.app/Contents/MacOS/Emacs
Applications/Emacs.app/Contents/PkgInfo
Applications/Emacs.app/Contents/Resources/Credits.html
Applications/Emacs.app/Contents/Resources/Emacs.icns
Applications/Emacs.app/Contents/Resources/English.lproj/InfoPlist.strings
Applications/Emacs.app/Contents/Resources/document.icns

View File

@ -0,0 +1,6 @@
@comment $NetBSD: PLIST.gnustep,v 1.4 2009/10/11 11:18:13 thomasklausner Exp $
share/GNUstep/Local/Applications/Emacs.app/Emacs
share/GNUstep/Local/Applications/Emacs.app/Resources/Emacs.desktop
share/GNUstep/Local/Applications/Emacs.app/Resources/Info-gnustep.plist
share/GNUstep/Local/Applications/Emacs.app/Resources/emacstiff
share/GNUstep/Local/Applications/Emacs.app/library_paths.openapp

1
emacs-snapshot/TODO Normal file
View File

@ -0,0 +1 @@
* GNUStep support is not tested.

View File

@ -0,0 +1,15 @@
# $NetBSD: buildlink3.mk,v 1.1 2013/05/07 12:04:59 makoto Exp $
BUILDLINK_TREE+= emacs
.if !defined(EMACS_BUILDLINK3_MK)
EMACS_BUILDLINK3_MK:=
.include "../../editors/emacs/modules.mk"
BUILDLINK_API_DEPENDS.emacs+= ${_EMACS_REQD}
BUILDLINK_PKGSRCDIR.emacs?= ${_EMACS_PKGDIR}
BUILDLINK_CONTENTS_FILTER.emacs= ${EGREP} '.*\.el$$|.*\.elc$$'
.endif # EMACS_BUILDLINK3_MK
BUILDLINK_TREE+= -emacs

7
emacs-snapshot/distinfo Normal file
View File

@ -0,0 +1,7 @@
$NetBSD$
SHA1 (emacs-27.0.50_2019-11-11.tar.gz) = dcab50736f6ce5d61b7dd9fb6faf069b3c2c2f85
RMD160 (emacs-27.0.50_2019-11-11.tar.gz) = e9b89e149c0e5a3e4f05a1a841d9cf9ae95d4eb9
SHA512 (emacs-27.0.50_2019-11-11.tar.gz) = 05c2c4cee8b1f610bb72b5aaa915cd641d4229d218c7ab6694cec19039e01636c4306d5b0a4267607118724e43f7279447d46359275a9e958bd907e07d8c46f8
Size (emacs-27.0.50_2019-11-11.tar.gz) = 64412985 bytes
SHA1 (patch-configure.ac) = c9731094e059ac80d25e5a32894404a14be64433

View File

@ -0,0 +1,4 @@
;; $NetBSD: site-init.el,v 1.1 2013/03/15 14:09:50 makoto Exp $
(autoload 'send-pr "/usr/share/gnats/send-pr.el"
"Command to create and send a problem report." t)

353
emacs-snapshot/modules.mk Normal file
View File

@ -0,0 +1,353 @@
# $NetBSD: modules.mk,v 1.1 2013/10/22 13:01:48 makoto Exp $
#
# This Makefile fragment handles Emacs Lisp Packages (== ELPs).
#
# Note to users:
#
# * Users choose one favourite Emacs version.
#
# * Emacs Lisp files are installed...
# GNU emacs
# -> ${PREFIX}/share/emacs/site-lisp/foo/...
# XEmacs
# ->${PREFIX}/lib/xemacs/site-packages/lisp/foo/...
#
# * You can't install an ELP for both Emacs and XEmacs
# simultaneously.
#
# * XEmacs package's names are prefix'ed by "xemacs-".
#
# Note to package developers:
#
# * XEmacs package's names are prefix'ed by "xemacs-".
#
# This is to make sure ELPs for XEmacs keep their own dependency
# tree (for example, if an ELP "bar" depends on another ELP "foo",
# "xemacs-bar" depends on "xemacs-foo". "foo" (installed for GNU
# Emacs) is useless for "xemacs-bar" in this case.).
#
# Make sure too that "foo" and "xemacs-foo" conflict each other,
# since they can share some files. (Making all ELPs separately
# installable for GNU Emacs/XEmacs might be possible.)
#
# * Assume each ELP supports all Emacs versions by default. If the
# ELP supports only certain Emacs versions, define EMACS_VERSIONS
# _ACCEPTED explicitly before including mk/emacs.mk.
#
# Variables for users:
#
# EMACS_TYPE
# Description:
# The user's favourite Emacs version. The default
# value is set in mk/defaults/mk.conf.
# Possible values:
# emacs25, emacs25nox, emacs21, emacs21nox, emacs20,
# xemacs215, xemacs215nox, xemacs214, xemacs214nox
# Default value:
# emacs25
#
# Variables ELPs can provide:
#
# EMACS_MODULES
# Description:
# List of Emacs LISP modules that the current ELP
# needs at run-time.
# Possible values:
# base, leim
# Default value:
# <undefined>
#
# EMACS_VERSIONS_ACCEPTED
# Description:
# Versions the ELP accepts (supports).
# Possible values:
# emacs25, emacs25nox, emacs21, emacs21nox, emacs20,
# xemacs215, xemacs215nox, xemacs214, xemacs214nox
# Default value:
# emacs25, emacs25nox, emacs21, emacs21nox, emacs20,
# xemacs215, xemacs215nox, xemacs214, xemacs214nox
#
# EMACS_BUILDLINK
# Description:
# Whether create buildlink directory of *.el / *.elc
# files. ELPs which include other ELP's buildlink3.mk
# must define this value.
# Possible values:
# <defined>, <undefined>
# Default value:
# <undefined>
#
# Variables provided for ELPs:
#
# EMACS_BIN
# Description:
# Path to Emacs executable.
# Possible values:
# ${PREFIX}/bin/emacs, ${PREFIX}/bin/xemacs
#
# EMACS_ETCPREFIX
# Description:
# Path to the directory misc. files should be
# installed into. ELPs should append a short
# name as a subdirectory.
# Possible values:
# ${PREFIX}/share
# ${PREFIX}/lib/xemacs/site-packages/etc
#
# EMACS_FLAVOR
# Description:
# GNU Emacs (emacs) or XEmacs (xemacs).
# Possible values:
# emacs, xemacs
#
# EMACS_INFOPREFIX
# Description:
# Path to the directory Info files should be
# installed into. Unlike EMACS_ETCPREFIX or
# EMACS_LISPPREFIX, subdirectory is not needed.
# Possible values:
# ${PREFIX}/${PKGINFODIR}
# ${PREFIX}/lib/xemacs/site-packages/info
#
# EMACS_LISPPREFIX
# Description:
# installed into. ELPs should append a short name
# as a subdirectory.
# Possible values:
# ${PREFIX}/share/emacs/site-lisp
# ${PREFIX}/lib/xemacs/site-packages/lisp
#
# EMACS_PKGNAME_PREFIX
# Description:
# The prefix of PKGNAME and DEPENDS lines. All ELPs
# must honour this!
# Possible values:
# "", "xemacs-"
#
# EMACS_VERSION_MAJOR
# Description:
# Emacs major version.
# Possible values:
# 20, 21, 22, 23, 24, 25, <integers more than that in the future>
#
# EMACS_VERSION_MINOR
# Description:
# Emacs minor version.
# Possible values:
# <integer>
#
# EMACS_VERSION_MICRO
# Description:
# Emacs micro version.
# Possible values:
# <integer>
#
# Variables provided in ELPs' PLIST:
#
# EMACS_ETCPREFIX
# Description:
# Same as the one in Makefile, except that
# ${PREFIX} is omitted in PLIST.
# Possible values:
# share
# lib/xemacs/site-packages/etc
#
# EMACS_INFOPREFIX
# Description:
# Same as the one in Makefile, except that
# ${PREFIX} is omitted in PLIST.
# Possible values:
# ${PKGINFODIR}
# lib/xemacs/site-packages/info
#
# EMACS_LISPPREFIX
# Description:
# Same as the one in Makefile, except that
# ${PREFIX} is omitted in PLIST.
# Possible values:
# share/emacs/site-lisp
# lib/xemacs/site-packages/lisp
#
# EMACS_VERSION
# Description:
# XXX
# Possible values:
# XXX
#
# FOR_{emacs25,emacs21,emacs21nox,emacs20,xemacs215,xemacs215nox,xemacs214,xemacs214nox}
# FOR_{emacs,xemacs}
# FOR_{emacs_x,emacs_nox}
# NOTFOR_{emacs25,emacs21,emacs21nox,emacs20,xemacs215,xemacs215nox,xemacs214,xemacs214nox}
# NOTFOR_{emacs,xemacs}
# NOTFOR_{emacs_x,emacs_nox}
# Description:
# These macros will become either an empty string or
# "@comment" depending on the Emacs version; when
# "emacs21" is used, ${FOR_emacs} and ${FOR_emacs21}
# become "" (empty), and other macros become
# "@comment"; this means that only the PLIST lines
# prefixed by ${FOR_emacs} and ${FOR_emacs21} are
# valid.
#
# NOTFOR_* is the opposite of FOR_*.
# Possible values:
# "", "@comment"
#
# FOR_emacs_no_byte_compile
# Description:
# For .elc file of .el file marked as "no-byte-compile: t"
# Possible values:
# "", "@comment"
.if !defined(EMACS_MK)
EMACS_MK= # defined
_VARGROUPS+= emacs
_USER_VARS.emacs= EMACS_TYPE
_PKG_VARS.emacs= EMACS_MODULES EMACS_VERSIONS_ACCEPTED
_SYS_VARS.emacs= EMACS_BIN EMACS_ETCPREFIX EMACS_FLAVOR \
EMACS_INFOPREFIX EMACS_LISPPREFIX \
EMACS_PKGNAME_PREFIX \
EMACS_VERSION_MAJOR EMACS_VERSION_MINOR \
EMACS_VERSION_MICRO
_DEF_VARS.emacs= _EMACS_TYPE _EMACS_PKGBASE
BUILD_DEFS+= ${_USER_VARS.emacs}
BUILD_DEFS_EFFECTS+= ${_SYS_VARS.emacs}
.include "../../mk/bsd.prefs.mk"
#
# Constants
#
_EMACS_VERSIONS_ALL= \
emacs20 emacs21 emacs21nox emacs25 emacs26 emacs27\
xemacs214 xemacs214nox xemacs215 xemacs215nox
_EMACS_PKGDIR_MAP= \
emacs20@../../editors/emacs20 \
emacs21@../../editors/emacs21 \
emacs21nox@../../editors/emacs21-nox11 \
emacs25@../../editors/emacs25 \
emacs25nox@../../editors/emacs25-nox11 \
emacs26@../../editors/emacs26 \
emacs27@../../wip/emacs-git \
xemacs214@../../editors/xemacs \
xemacs214nox@../../editors/xemacs-nox11 \
xemacs215@../../editors/xemacs-current \
xemacs215nox@../../editors/xemacs-current-nox11
_EMACS_ETCDIR.emacs= share
_EMACS_INFODIR.emacs= ${PKGINFODIR}
_EMACS_LISPDIR.emacs= share/emacs/site-lisp
_EMACS_PKGNAME_PREFIX.emacs=
_EMACS_CONFLICTS.emacs= xemacs-${PKGBASE}-[0-9]*
_EMACS_ETCDIR.xemacs= lib/xemacs/site-packages/etc
_EMACS_INFODIR.xemacs= lib/xemacs/site-packages/info
_EMACS_LISPDIR.xemacs= lib/xemacs/site-packages/lisp
_EMACS_PKGNAME_PREFIX.xemacs= xemacs-
_EMACS_CONFLICTS.xemacs= ${PKGBASE:C|^xemacs-||}-[0-9]*
#
# Version decision
#
# 1. Pick up an emacs version.
#
# add a dependency to the version;
#
# 2. Check if a given package can be used for the emacs version.
#
# if (package accepts the emacs version)
# nothing to do;
# else
# abort;
#
_EMACS_TYPE= ${EMACS_TYPE}
EMACS_VERSIONS_ACCEPTED?= ${_EMACS_VERSIONS_ALL}
.if empty(EMACS_VERSIONS_ACCEPTED:M${_EMACS_TYPE})
PKG_FAIL_REASON+= "Accepted versions are: ${EMACS_VERSIONS_ACCEPTED}"
PKG_FAIL_REASON+= "No valid Emacs version installed found"
.endif
_EMACS_PKGDIR= ${_EMACS_PKGDIR_MAP:M${_EMACS_TYPE}@*:C|${_EMACS_TYPE}@||}
.include "${_EMACS_PKGDIR}/version.mk"
#
# Dependencies and conflicts
#
DEPENDS+= ${_EMACS_REQD}:${_EMACS_PKGDIR}
CONFLICTS+= ${_EMACS_CONFLICTS.${_EMACS_FLAVOR}}
EMACS_MODULES?=
.for _mod_ in ${EMACS_MODULES}
. if !empty(_EMACS_PKGDEP.${_mod_})
DEPENDS+= ${_EMACS_PKGDEP.${_mod_}}
. endif
.endfor
#
# Macros for packages
#
EMACS_FLAVOR= ${_EMACS_FLAVOR}
EMACS_BIN= ${PREFIX}/bin/${_EMACS_FLAVOR}
EMACS_VERSION_MAJOR= ${_EMACS_VERSION_MAJOR}
EMACS_VERSION_MINOR= ${_EMACS_VERSION_MINOR}
EMACS_VERSION_MICRO= ${_EMACS_VERSION_MICRO}
EMACS_ETCPREFIX= ${PREFIX}/${_EMACS_ETCDIR.${_EMACS_FLAVOR}}
EMACS_INFOPREFIX= ${PREFIX}/${_EMACS_INFODIR.${_EMACS_FLAVOR}}
EMACS_LISPPREFIX= ${PREFIX}/${_EMACS_LISPDIR.${_EMACS_FLAVOR}}
EMACS_PKGNAME_PREFIX= ${_EMACS_PKGNAME_PREFIX.${_EMACS_FLAVOR}}
GNU_CONFIGURE_INFODIR?= ${EMACS_INFOPREFIX}
_EMACS_PLIST_SUBST=
.for e in ${_EMACS_VERSIONS_ALL} emacs xemacs
. if "${e}" == ${EMACS_FLAVOR} || "${e}" == ${_EMACS_TYPE}
_EMACS_PLIST_SUBST+= FOR_${e}="" NOTFOR_${e}="@comment "
. else
_EMACS_PLIST_SUBST+= FOR_${e}="@comment " NOTFOR_${e}=""
. endif
.endfor
.if empty(EMACS_TYPE:M*nox)
_EMACS_PLIST_SUBST+= FOR_emacs_x="" NOTFOR_emacs_x="@comment "
_EMACS_PLIST_SUBST+= FOR_emacs_nox="@comment " NOTFOR_emacs_nox=""
.else
_EMACS_PLIST_SUBST+= FOR_emacs_x="@comment " NOTFOR_emacs_x=""
_EMACS_PLIST_SUBST+= FOR_emacs_nox="" NOTFOR_emacs_nox="@comment "
.endif
_EMACS_PLIST_SUBST+= EMACS_FLAVOR=${EMACS_FLAVOR:Q}
_EMACS_PLIST_SUBST+= EMACS_VERSION=${_EMACS_VERSION_MAJOR:Q}.${_EMACS_VERSION_MINOR:Q}
_EMACS_PLIST_SUBST+= EMACS_ETCPREFIX=${EMACS_ETCPREFIX:C|^${PREFIX}/||}
_EMACS_PLIST_SUBST+= EMACS_INFOPREFIX=${EMACS_INFOPREFIX:C|^${PREFIX}/||}
_EMACS_PLIST_SUBST+= EMACS_LISPPREFIX=${EMACS_LISPPREFIX:C|^${PREFIX}/||}
_EMACS_PLIST_SUBST+= FOR_emacs_no_byte_compile="${${EMACS_VERSION_MAJOR}>22:?@comment :}"
PLIST_SUBST+= ${_EMACS_PLIST_SUBST}
PRINT_PLIST_AWK+= { gsub(/${EMACS_LISPPREFIX:S|${PREFIX}/||:S|/|\\/|g}/, \
"$${EMACS_LISPPREFIX}"); \
print; next; }
#
# Build environment (buildlink3)
#
.if defined(EMACS_BUILDLINK)
_EMACS_DIR= ${BUILDLINK_DIR}/share/emacs
. if ${EMACS_TYPE} == emacs27
ALL_ENV+= EMACSLOADPATH=${_EMACS_DIR}/${_EMACS_VERSION_MAJOR}.${_EMACS_VERSION_MINOR}.${_EMACS_VERSION_MICRO}/lisp:${_EMACS_DIR}/site-lisp
. else
ALL_ENV+= EMACSLOADPATH=${_EMACS_DIR}/${_EMACS_VERSION_MAJOR}.${_EMACS_VERSION_MINOR}/lisp:${_EMACS_DIR}/site-lisp
. endif
.include "${_EMACS_PKGDIR}/buildlink3.mk"
.endif
.endif # EMACS_MK

233
emacs-snapshot/options.mk Normal file
View File

@ -0,0 +1,233 @@
# $NetBSD$
### Set options
PKG_OPTIONS_VAR= PKG_OPTIONS.emacs
PKG_SUPPORTED_OPTIONS= dbus gconf gnutls imagemagick jansson svg xaw3d xft2 xml
PKG_SUGGESTED_OPTIONS= jansson
# xaw3d is only valid with tookit = xaw
PKG_OPTIONS_OPTIONAL_GROUPS+= window-system
PKG_OPTIONS_GROUP.window-system= x11 nextstep
# tempted to have 'nox11' :-)
PKG_OPTIONS_OPTIONAL_GROUPS+= toolkit
PKG_SUGGESTED_OPTIONS.Darwin= nextstep
# --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk2,
# gtk3, lucid or athena, motif, no)
# gtk in next line implies gtk2, xaw = athena = lucid
PKG_OPTIONS_GROUP.toolkit= gtk gtk2 gtk3 motif xaw lucid
# gtk2 and gtk has the same effect
# gtk3 is default in the logic below (even not included in SUGGESTED_=
# gconf, gtk* and xft2 will be ignored for nextstep even shown as selected.
PKG_SUGGESTED_OPTIONS= dbus gconf gnutls gtk3 xaw3d xft2 xml x11
.include "../../mk/bsd.options.mk"
### --- Check window-system independent options first
###
### Support D-BUS
###
.if !empty(PKG_OPTIONS:Mdbus)
. include "../../sysutils/dbus/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-dbus
.endif
###
### Support XML2
###
.if !empty(PKG_OPTIONS:Mxml)
USE_TOOLS+= pkg-config
BUILDLINK_API_DEPENDS.libxml2+= libxml2>=2.6.17
.include "../../textproc/libxml2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-xml2
.endif
###
### Support gnutls
###
.if !empty(PKG_OPTIONS:Mgnutls)
.include "../../security/gnutls/buildlink3.mk"
.include "../../security/p11-kit/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-gnutls
.endif
###
### Check non nextstep (implies x11) options ---------------------
###
### x11 is selected (as SUGGESTED above)
###
.if !empty(PKG_OPTIONS:Mx11)
###
### Support SVG
###
. if !empty(PKG_OPTIONS:Msvg)
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/librsvg/buildlink3.mk"
. else
CONFIGURE_ARGS+= --without-rsvg
. endif
###
### Support gconf
###
. if !empty(PKG_OPTIONS:Mgconf)
.include "../../devel/gconfmm/buildlink3.mk"
. else
CONFIGURE_ARGS+= --without-gconf
. endif
###
### Support ImageMagick (not recognized for now, sorry)
###
. if !empty(PKG_OPTIONS:Mimagemagick)
.include "../../graphics/ImageMagick/buildlink3.mk"
# DEPENDS+= py[0-9]*-wand-[0-9]*:../../graphics/py-wand
. else
CONFIGURE_ARGS+= --without-imagemagick
. endif
###
### Support jansson (JSON library)
###
. if !empty(PKG_OPTIONS:Mjansson)
.include "../../textproc/jansson/buildlink3.mk"
. else
CONFIGURE_ARGS+= --without-json
. endif
###
### Support Xaw3d (This is only valid with Lucid Toolkit)
###
. if !empty(PKG_OPTIONS:Mxaw3d)
.include "../../x11/libXaw3d/buildlink3.mk"
. else
CONFIGURE_ARGS+= --without-xaw3d
. endif
### Enable font backend
###
. if !empty(PKG_OPTIONS:Mxft2)
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/libotf/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../devel/m17n-lib/buildlink3.mk"
. else
CONFIGURE_ARGS+= --without-xft --without-libotf --without-m17n-flt
. endif
###
### Toolkit selection
###
. if (empty(PKG_OPTIONS:Mxaw) && empty(PKG_OPTIONS:Mlucid) && \
empty(PKG_OPTIONS:Mgtk) && empty(PKG_OPTIONS:Mgtk2) && \
empty(PKG_OPTIONS:Mmotif))
# defaults to gtk3
USE_TOOLS+= pkg-config
.include "../../x11/gtk3/buildlink3.mk"
CONFIGURE_ARGS+= --with-x-toolkit=gtk3
. elif !empty(PKG_OPTIONS:Mgtk2) || !empty(PKG_OPTIONS:Mgtk)
USE_TOOLS+= pkg-config
.include "../../x11/gtk2/buildlink3.mk"
CONFIGURE_ARGS+= --with-x-toolkit=gtk2
. elif !empty(PKG_OPTIONS:Mxaw)
.include "../../mk/xaw.buildlink3.mk"
CONFIGURE_ARGS+= --with-x-toolkit=athena
. elif !empty(PKG_OPTIONS:Mlucid)
.include "../../mk/xaw.buildlink3.mk"
CONFIGURE_ARGS+= --with-x-toolkit=athena
. elif !empty(PKG_OPTIONS:Mmotif)
.include "../../mk/motif.buildlink3.mk"
CONFIGURE_ARGS+= --with-x-toolkit=motif
. endif
###
### End of Check non nextstep (implies x11) options ---------------------
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../graphics/giflib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXrender/buildlink3.mk"
###
### Support using NextStep (Cocoa or GNUstep) windowing system
###
# If you check the variable system-configuration-options after Emacs is
# built, you may see many x11 related configurations. But if you have
# --without-x there, all other x11 related configurations were ignored.
#
.elif !empty(PKG_OPTIONS:Mnextstep)
. if exists(/System/Library/Frameworks/Cocoa.framework)
APPLICATIONS_DIR= Applications
NS_APPBINDIR= nextstep/Emacs.app/Contents/MacOS
PLIST_SRC+= PLIST.cocoa
CHECK_WRKREF_SKIP+= Applications/Emacs.app/Contents/MacOS/Emacs
. else
.include "../../x11/gnustep-gui/buildlink3.mk"
MAKE_FILE= Makefile
APPLICATIONS_DIR= share/GNUstep/Local/Applications
NS_APPBINDIR= nextstep/Emacs.app
PLIST_SRC+= PLIST.gnustep
CHECK_WRKREF_SKIP+= share/GNUstep/Local/Applications/Emacs.app/Emacs
. endif
# more args for nextstep
CONFIGURE_ARGS+= --without-x
CONFIGURE_ARGS+= --with-ns
CONFIGURE_ARGS+= --disable-ns-self-contained
INSTALLATION_DIRS+= ${APPLICATIONS_DIR}
USE_TOOLS+= pax
post-install:
cd ${WRKSRC}/nextstep && \
pax -rw -pp -pm Emacs.app ${DESTDIR}${PREFIX}/${APPLICATIONS_DIR}
.else # no window system
#.if empty(PKG_OPTIONS:Mx11)
CONFIGURE_ARGS+= --without-x
CONFIGURE_ARGS+= --without-xpm
CONFIGURE_ARGS+= --without-jpeg
CONFIGURE_ARGS+= --without-tiff
CONFIGURE_ARGS+= --without-gif
CONFIGURE_ARGS+= --without-png
.endif
# Local Variables:
# mode: outline-minor
# outline-regexp: "\\(.[ \t]*\\(if\\|endif\\|else\\|elif\\|include.*options\\|PKG_SUGGES\\)\\)\\|### .\\|# Local"
# End:
### How To Test (or the possible combinations) -- watch the result of 'make configure'
# Set PKG_OPTIONS.emacs= result
# ---------- ----------------------------------------------------------
# (none) .. x11 gtk svg gconf xft2 dbus gnutls imagemagick
# xaw .. x11 lucid svg gconf xaw3d xft2 dbus gnutls imagemagick
# lucid .. x11 lucid svg gconf xaw3d xft2 dbus gnutls imagemagick
# motif .. x11 motif svg gconf xft2 dbus gnutls imagemagick
# -x11 nextstep .. nextstep
# -xft2 .. x11 gtk svg gconf dbus gnutls imagemagick
# -gnutls .. x11 gtk svg gconf xft2 dbus imagemagick
# -gnutls -imagemagick -dbus
# .. x11 gtk svg gconf xft2
# -x11 -svg -gconf -xaw3d -xft2
# .. nox11 dbus gnutls xml2
# -x11 .. nox11 dbus gnutls imagemagick
# .. nox11 but several x11 libraries built and not used
### Window system options and result matrix
# x11 | YES none NO
# nextstep |
# -------- +----- -------- -------
# YES | -- NextStep NextStep
# none | X11 X11 (no Window)
# NO | X11 X11 (no Window)

View File

@ -0,0 +1,17 @@
$NetBSD$
Do not inject X11 LDFLAGS, pkgsrc handles that.
Fixes PR pkg/53688.
--- configure.ac.orig 2019-05-13 12:01:24.181647930 +0000
+++ configure.ac
@@ -1551,7 +1551,8 @@ ac_link="$ac_link $LD_SWITCH_SYSTEM"
## LD_SWITCH_SYSTEM_TEMACS.
case "$opsys" in
netbsd|openbsd)
- LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
+### This is handled by pkgsrc.
+# LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
esac
C_SWITCH_MACHINE=

10
emacs-snapshot/version.mk Normal file
View File

@ -0,0 +1,10 @@
# $NetBSD: version.mk,v 1.9 2014/10/04 09:10:32 makoto Exp $
_EMACS_FLAVOR= emacs
_EMACS_REQD= emacs27>=27
_EMACS_PKGDEP.base=
_EMACS_PKGDEP.leim=
_EMACS_VERSION_MAJOR= 27
_EMACS_VERSION_MINOR= 0
_EMACS_VERSION_MICRO= 50