head 1.13; access; symbols pkgsrc-2023Q4:1.13.0.26 pkgsrc-2023Q4-base:1.13 pkgsrc-2023Q3:1.13.0.24 pkgsrc-2023Q3-base:1.13 pkgsrc-2023Q2:1.13.0.22 pkgsrc-2023Q2-base:1.13 pkgsrc-2023Q1:1.13.0.20 pkgsrc-2023Q1-base:1.13 pkgsrc-2022Q4:1.13.0.18 pkgsrc-2022Q4-base:1.13 pkgsrc-2022Q3:1.13.0.16 pkgsrc-2022Q3-base:1.13 pkgsrc-2022Q2:1.13.0.14 pkgsrc-2022Q2-base:1.13 pkgsrc-2022Q1:1.13.0.12 pkgsrc-2022Q1-base:1.13 pkgsrc-2021Q4:1.13.0.10 pkgsrc-2021Q4-base:1.13 pkgsrc-2021Q3:1.13.0.8 pkgsrc-2021Q3-base:1.13 pkgsrc-2021Q2:1.13.0.6 pkgsrc-2021Q2-base:1.13 pkgsrc-2021Q1:1.13.0.4 pkgsrc-2021Q1-base:1.13 pkgsrc-2020Q4:1.13.0.2 pkgsrc-2020Q4-base:1.13 pkgsrc-2020Q3:1.12.0.10 pkgsrc-2020Q3-base:1.12 pkgsrc-2020Q2:1.12.0.8 pkgsrc-2020Q2-base:1.12 pkgsrc-2020Q1:1.12.0.4 pkgsrc-2020Q1-base:1.12 pkgsrc-2019Q4:1.12.0.6 pkgsrc-2019Q4-base:1.12 pkgsrc-2019Q3:1.12.0.2 pkgsrc-2019Q3-base:1.12 pkgsrc-2019Q2:1.6.0.2 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.4.0.2 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.3.0.4 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.2 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.1.0.2 pkgsrc-2018Q2-base:1.1; locks; strict; comment @# @; 1.13 date 2020.10.19.14.37.17; author mef; state Exp; branches; next 1.12; commitid i78QfcKWdseHswsC; 1.12 date 2019.09.05.13.04.55; author ryoon; state Exp; branches; next 1.11; commitid StN1aP3EjAV48PBB; 1.11 date 2019.09.04.15.14.03; author ryoon; state Exp; branches; next 1.10; commitid tMz4MWCU6wtpRHBB; 1.10 date 2019.09.04.14.00.20; author ryoon; state Exp; branches; next 1.9; commitid nJeZCzj7fiFUsHBB; 1.9 date 2019.09.03.16.35.54; author gdt; state Exp; branches; next 1.8; commitid VbfggWafRoswlABB; 1.8 date 2019.09.01.00.42.54; author markd; state Exp; branches; next 1.7; commitid PJBHLa785BR59fBB; 1.7 date 2019.08.31.05.07.35; author markd; state Exp; branches; next 1.6; commitid vwvnkLWbSxM2E8BB; 1.6 date 2019.06.03.01.21.49; author chuck; state Exp; branches; next 1.5; commitid NWZqCM1xn2G0fGpB; 1.5 date 2019.04.14.07.03.20; author wiz; state Exp; branches; next 1.4; commitid by8ozGrr2cvXKhjB; 1.4 date 2019.02.04.10.38.53; author tron; state Exp; branches; next 1.3; commitid slWZYVRNgMfP9raB; 1.3 date 2018.07.15.15.21.28; author mef; state Exp; branches; next 1.2; commitid ze1yge9tBLZwhfKA; 1.2 date 2018.07.03.11.24.08; author mef; state Exp; branches; next 1.1; commitid Bre0o7uJSVttmGIA; 1.1 date 2018.06.20.11.04.19; author mef; state Exp; branches; next ; commitid SiXLE7jVxfhAF0HA; desc @@ 1.13 log @(editors/emacs26) Add imagemagick for default configuration @ text @# $NetBSD: options.mk,v 1.12 2019/09/05 13:04:55 ryoon Exp $ ### Set options PKG_OPTIONS_VAR= PKG_OPTIONS.emacs PKG_SUPPORTED_OPTIONS= dbus gconf gnutls imagemagick svg xaw3d xft2 xml # 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. # svg is omitted because it is rarely needed and either very # heavyweight or unmaintained. PKG_SUGGESTED_OPTIONS= dbus gconf gnutls gtk3 xaw3d xft2 xml x11 imagemagick .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) ### ### on OSX the configure script will select the "nextstep" window system ### unless you explicitly tell it not to. this should not impact other ### platforms. ### CONFIGURE_ARGS+= --without-ns ### ### 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/ImageMagick6/buildlink3.mk" # DEPENDS+= py[0-9]*-wand-[0-9]*:../../graphics/py-wand . else CONFIGURE_ARGS+= --without-imagemagick . 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 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 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) @ 1.12 log @MesaLib is buildlinked indirectly from libepoxy now. Remove it @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.11 2019/09/04 15:14:03 ryoon Exp $ d25 1 a25 1 PKG_SUGGESTED_OPTIONS= dbus gconf gnutls gtk3 xaw3d xft2 xml x11 d96 1 a96 1 .include "../../graphics/ImageMagick/buildlink3.mk" @ 1.11 log @Reduce per-package inclusion of x11/libXdamage And graphics/MesaLib includes x11/libXdamage/buildlink3.mk and remove it from editors/emacs26. @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.10 2019/09/04 14:00:20 ryoon Exp $ a129 1 .include "../../graphics/MesaLib/buildlink3.mk" @ 1.10 log @Fix build with gtk2 or gtk3 options @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.9 2019/09/03 16:35:54 gdt Exp $ a130 1 .include "../../x11/libXdamage/buildlink3.mk" a134 1 .include "../../x11/libXdamage/buildlink3.mk" @ 1.9 log @emacs26: Drop svg from default options svg requires librsvg, which either requires rust, which has been the cause of failures on pkgbuild and is very large, or results in using unmaintained software (librsvg-c). On pkgsrc-users, no one reported actually using svg support in emacs. @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.8 2019/09/01 00:42:54 markd Exp $ d130 2 d136 1 @ 1.8 log @emacs26: undo last Was a transient issue with the new MesaLib/buildlink3.mk. @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.7 2019/08/31 05:07:35 markd Exp $ d23 3 a25 1 PKG_SUGGESTED_OPTIONS= dbus gconf gnutls gtk3 svg xaw3d xft2 xml x11 @ 1.7 log @emacs26: gtk2 and gtk3 options (at least) need libXdamage. @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.6 2019/06/03 01:21:49 chuck Exp $ a153 1 .include "../../x11/libXdamage/buildlink3.mk" @ 1.6 log @add "--without-ns" to x11 configs for OSX on OSX the configure script will select the "nextstep" window system unless you explicitly tell it not to: % bmake configure |& egrep 'PKG_OPTIONS.emacs|What window system should Emacs use' PKG_OPTIONS.emacs = x11 What window system should Emacs use? nextstep % leaving pkgsrc in a bad state where it thinks it built an x11 version, but instead emacs built a nextstep version. add "--without-ns" to the x11 config option for OSX. this should not impact other platforms. (this diff corresponds to the change i did in options.mk 1.4 for editors/emacs25) @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.5 2019/04/14 07:03:20 wiz Exp $ d154 1 @ 1.5 log @emacs26: update to 26.2. Emacs 26.2 has a wide variety of new features, including: Emacs modules can now be built outside of the Emacs tree source. Emacs is now compliant with the latest version 11.0 of the Unicode Standard. In Dired, the 'Z' command on a directory name compresses all of its files. @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.4 2019/02/04 10:38:53 tron Exp $ d65 7 @ 1.4 log @editors/emacs26: Fix building with GTK+ 2 toolkit Previously the "gtk" and "gtk2" options weren't checked properly and the package was built using the GTK+ 3 toolkit instead. @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.3 2018/07/15 15:21:28 mef Exp $ a159 1 NS_APPBINDIR= nextstep/Emacs.app/Contents/MacOS a165 1 NS_APPBINDIR= nextstep/Emacs.app @ 1.3 log @(Editors/emacs26) Default options adjustment, drop ImageMagick and set gtk3. 1. ImageMagick is listed as buildlink3, but configure stage says no. Drop from the default options for now. (need py-wand and ImageMagick 6 ?) 2. gtk/gtk3 logic was not the same as emacs-25.x. Default was gtk2. Now default is gtk3 (the same as emacs-25). Option gtk and gtk2 have the same effect now. Thanks tsutsui@@ for information @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.2 2018/07/03 11:24:08 mef Exp $ d20 2 a21 2 # gtk is default in the logic below (even not included in SUGGESTED_= # gconf, gtk and xft2 will be ignored for nextstep even shown as selected. d116 3 a118 1 . if (empty(PKG_OPTIONS:Mxaw) && empty(PKG_OPTIONS:Mlucid) && empty(PKG_OPTIONS:Mmotif)) @ 1.2 log @(editors/emacs26/options.mk) correct typo, and adjust indent on comment lines. @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.1 2018/06/20 11:04:19 mef Exp $ d15 1 a15 1 # --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2, d18 2 a19 1 PKG_OPTIONS_GROUP.toolkit= gtk motif xaw lucid d23 1 a23 1 PKG_SUGGESTED_OPTIONS= dbus gconf gnutls imagemagick svg xaw3d xft2 xml x11 d84 1 a84 1 ### Support ImageMagick d88 1 d117 1 a117 1 # defaults to gtk d119 3 a121 3 .include "../../x11/gtk2/buildlink3.mk" CONFIGURE_ARGS+= --with-x-toolkit=gtk . elif !empty(PKG_OPTIONS:Mgtk) d124 1 a124 1 CONFIGURE_ARGS+= --with-x-toolkit=gtk @ 1.1 log @editors/emacs26: import emacs26-26.1 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 26. @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.35 2015/04/24 01:23:24 makoto Exp $ d20 1 a20 1 # gconf, gtk and xft2 will be ingnored for nextstep even shown as selected. d85 1 a85 1 .if !empty(PKG_OPTIONS:Mimagemagick) d87 1 a87 1 .else d89 1 a89 1 .endif @