2018-03-30 20:28:32 +02:00
|
|
|
# $NetBSD: options.mk,v 1.4 2018/03/30 18:28:32 chuck Exp $
|
Import emacs25-25.1 as editors/emacs25.
GNU Emacs is an extensible, customizable editor textand more. At its
core is an interpreter for Emacs Lisp, a dialect of the Lisp
programming language with extensions to support text editing. The
features of GNU Emacs include:
- Content-sensitive editing modes, including syntax coloring, for a
wide variety of file types including plain text, source code, and
HTML.
- Complete built-in documentation, including a tutorial for new users.
- Support for many languages and their scripts, including all scripts,
Russian, Greek, Japanese, Chinese, Korean, Thai, Vietnamese, Lao,
Ethiopian, and some Indian scripts.
- Highly customizable, using Emacs Lisp code or a graphical
customization interface.
- A large number of extensions that add other functionality, including
a project planner, mail and news reader, debugger interface,
calendar, and more. Many of these extensions are distributed with
GNU Emacs; others are available separately.
This package contains Emacs version 25.
2016-09-18 15:36:18 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.emacs
|
|
|
|
PKG_SUPPORTED_OPTIONS= dbus xft2 svg xml gnutls
|
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS+= window-system
|
|
|
|
PKG_OPTIONS_GROUP.window-system= x11 nextstep
|
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS+= toolkit
|
|
|
|
PKG_OPTIONS_GROUP.toolkit= gtk2 gtk3 motif xaw
|
|
|
|
PKG_SUGGESTED_OPTIONS.Darwin= nextstep
|
|
|
|
PKG_SUGGESTED_OPTIONS.*= x11
|
Update to 25.2
* Add xml to default options to enable internel web browser, eww
Changelog:
* Changes in Emacs 25.2
This is mainly a bug-fix release, but there are some other changes.
** 'find-library', 'help-function-def' and 'help-variable-def' now run
'find-function-after-hook'.
** New basic face 'fixed-pitch-serif', for a fixed-width font with serifs.
The 'Info-quoted' and 'tex-verbatim' faces inherit from it by default.
** New variable 'use-default-font-for-symbols', for backward compatibility.
This variable allows you to get back pre-Emacs 25 behavior where the
font for displaying symbol and punctuation characters was always
selected according to your fontset setup. By default, Emacs 25 tries
to use the default face's font for such characters, if it supports
them, disregarding the fontsets. Set this variable to nil to disable
this and get back the old behavior.
** 'electric-quote-mode' is no longer suppressed in a buffer whose
coding system cannot represent curved quote characters.
Instead, users can deal with the unrepresentable characters in the
usual way when they save the buffer.
** New variable 'inhibit-compacting-font-caches'.
Set this variable to a non-nil value to speed up display of characters
using large fonts, at the price of a larger memory footprint.
** The version number of CC Mode has been changed from 5.33 to
5.32.99, although the software itself hasn't changed. This aims to
reduce confusion with the standalone CC Mode 5.33 (available from
http://cc-mode.sourceforge.net), which is a more mature version than
the one included in Emacs 25.2.
2017-04-27 15:27:57 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS+= dbus svg xft2 xml
|
Import emacs25-25.1 as editors/emacs25.
GNU Emacs is an extensible, customizable editor textand more. At its
core is an interpreter for Emacs Lisp, a dialect of the Lisp
programming language with extensions to support text editing. The
features of GNU Emacs include:
- Content-sensitive editing modes, including syntax coloring, for a
wide variety of file types including plain text, source code, and
HTML.
- Complete built-in documentation, including a tutorial for new users.
- Support for many languages and their scripts, including all scripts,
Russian, Greek, Japanese, Chinese, Korean, Thai, Vietnamese, Lao,
Ethiopian, and some Indian scripts.
- Highly customizable, using Emacs Lisp code or a graphical
customization interface.
- A large number of extensions that add other functionality, including
a project planner, mail and news reader, debugger interface,
calendar, and more. Many of these extensions are distributed with
GNU Emacs; others are available separately.
This package contains Emacs version 25.
2016-09-18 15:36:18 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
###
|
|
|
|
### 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)
|
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
.include "../../security/gnutls/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gnutls
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Support SVG
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Msvg) && empty(PKG_OPTIONS:Mnextstep)
|
|
|
|
.include "../../graphics/librsvg/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-rsvg
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Any of the "toolkit" options with no window-system option implies "x11"
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mgtk2) || !empty(PKG_OPTIONS:Mgtk3) || !empty(PKG_OPTIONS:Mmotif) || !empty(PKG_OPTIONS:Mxaw) || !empty(PKG_OPTIONS:Mxft2)
|
|
|
|
. if empty(PKG_OPTIONS:Mx11) && empty(PKG_OPTIONS:Mnextstep)
|
|
|
|
PKG_OPTIONS+= x11
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Default to using GTK if none is specified.
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mx11)
|
|
|
|
. if empty(PKG_OPTIONS:Mgtk2) && empty(PKG_OPTIONS:Mgtk3) && empty(PKG_OPTIONS:Mmotif) && empty(PKG_OPTIONS:Mxaw)
|
|
|
|
PKG_OPTIONS+= gtk3
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Support drawing pretty X11 widgets.
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mx11)
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-x
|
2018-03-30 20:28:32 +02:00
|
|
|
CONFIGURE_ARGS+= --without-ns
|
Import emacs25-25.1 as editors/emacs25.
GNU Emacs is an extensible, customizable editor textand more. At its
core is an interpreter for Emacs Lisp, a dialect of the Lisp
programming language with extensions to support text editing. The
features of GNU Emacs include:
- Content-sensitive editing modes, including syntax coloring, for a
wide variety of file types including plain text, source code, and
HTML.
- Complete built-in documentation, including a tutorial for new users.
- Support for many languages and their scripts, including all scripts,
Russian, Greek, Japanese, Chinese, Korean, Thai, Vietnamese, Lao,
Ethiopian, and some Indian scripts.
- Highly customizable, using Emacs Lisp code or a graphical
customization interface.
- A large number of extensions that add other functionality, including
a project planner, mail and news reader, debugger interface,
calendar, and more. Many of these extensions are distributed with
GNU Emacs; others are available separately.
This package contains Emacs version 25.
2016-09-18 15:36:18 +02:00
|
|
|
CONFIGURE_ARGS+= --with-xpm
|
|
|
|
CONFIGURE_ARGS+= --with-jpeg
|
|
|
|
CONFIGURE_ARGS+= --with-tiff
|
|
|
|
CONFIGURE_ARGS+= --with-gif
|
|
|
|
CONFIGURE_ARGS+= --with-png
|
|
|
|
|
|
|
|
.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/libXpm/buildlink3.mk"
|
|
|
|
|
|
|
|
###
|
|
|
|
### Enable font backend
|
|
|
|
###
|
|
|
|
. if !empty(PKG_OPTIONS:Mxft2)
|
2017-02-14 10:07:37 +01:00
|
|
|
USE_TOOLS+= pkg-config
|
Import emacs25-25.1 as editors/emacs25.
GNU Emacs is an extensible, customizable editor textand more. At its
core is an interpreter for Emacs Lisp, a dialect of the Lisp
programming language with extensions to support text editing. The
features of GNU Emacs include:
- Content-sensitive editing modes, including syntax coloring, for a
wide variety of file types including plain text, source code, and
HTML.
- Complete built-in documentation, including a tutorial for new users.
- Support for many languages and their scripts, including all scripts,
Russian, Greek, Japanese, Chinese, Korean, Thai, Vietnamese, Lao,
Ethiopian, and some Indian scripts.
- Highly customizable, using Emacs Lisp code or a graphical
customization interface.
- A large number of extensions that add other functionality, including
a project planner, mail and news reader, debugger interface,
calendar, and more. Many of these extensions are distributed with
GNU Emacs; others are available separately.
This package contains Emacs version 25.
2016-09-18 15:36:18 +02:00
|
|
|
.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-otf --without-m17n-flt
|
|
|
|
. endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Support using GTK3 X11 widgets.
|
|
|
|
###
|
|
|
|
. if !empty(PKG_OPTIONS:Mgtk3)
|
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
.include "../../x11/gtk3/buildlink3.mk"
|
|
|
|
.include "../../graphics/adwaita-icon-theme/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-x-toolkit=gtk3
|
|
|
|
|
|
|
|
###
|
|
|
|
### Support using GTK2 X11 widgets.
|
|
|
|
###
|
|
|
|
. elif !empty(PKG_OPTIONS:Mgtk2)
|
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-x-toolkit=gtk2
|
|
|
|
|
|
|
|
###
|
|
|
|
### Support using Motif X11 widgets.
|
|
|
|
###
|
|
|
|
. elif !empty(PKG_OPTIONS:Mmotif)
|
|
|
|
.include "../../mk/motif.buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-x-toolkit=motif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Support using Xaw (Lucid) X11 widgets.
|
|
|
|
###
|
|
|
|
. elif !empty(PKG_OPTIONS:Mxaw)
|
|
|
|
.include "../../mk/xaw.buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-x-toolkit=athena
|
|
|
|
. endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Support using NextStep (Cocoa or GNUstep) windowing system
|
|
|
|
###
|
|
|
|
.elif !empty(PKG_OPTIONS:Mnextstep)
|
|
|
|
. if exists(/System/Library/Frameworks/Cocoa.framework)
|
|
|
|
APPLICATIONS_DIR= Applications
|
|
|
|
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
|
|
|
|
PLIST_SRC+= PLIST.gnustep
|
|
|
|
. endif
|
|
|
|
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
|
|
|
|
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
|