2013-02-12 05:47:31 +01:00
|
|
|
# $NetBSD: options.mk,v 1.8 2013/02/12 04:47:31 minskim Exp $
|
2009-06-05 04:57:53 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.emacs
|
2013-02-12 05:47:31 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= dbus gconf gnutls imagemagick svg xft2
|
2009-06-05 04:57:53 +02:00
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS+= window-system
|
|
|
|
PKG_OPTIONS_GROUP.window-system= x11 nextstep
|
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS+= toolkit
|
|
|
|
PKG_OPTIONS_GROUP.toolkit= gtk motif xaw
|
2013-02-12 05:47:31 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS= dbus gconf gnutls imagemagick svg x11 xaw xft2
|
2009-06-05 04:57:53 +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
|
|
|
|
|
2013-02-12 05:47:31 +01:00
|
|
|
###
|
|
|
|
### Support gconf
|
|
|
|
###
|
|
|
|
. if !empty(PKG_OPTIONS:Mgconf) && empty(PKG_OPTIONS:Mnextstep)
|
|
|
|
.include "../../devel/gconfmm/buildlink3.mk"
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --without-gconf
|
|
|
|
. endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Support gnutls
|
|
|
|
###
|
|
|
|
. if !empty(PKG_OPTIONS:Mgnutls)
|
|
|
|
.include "../../security/gnutls/buildlink3.mk"
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --without-gnutls
|
|
|
|
. endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Support ImageMagick
|
|
|
|
###
|
|
|
|
. if !empty(PKG_OPTIONS:Mimagemagick)
|
|
|
|
.include "../../graphics/ImageMagick/buildlink3.mk"
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --without-imagemagic
|
|
|
|
. endif
|
|
|
|
|
2009-06-05 04:57:53 +02:00
|
|
|
###
|
|
|
|
### Support SVG
|
|
|
|
###
|
2010-06-08 00:44:01 +02:00
|
|
|
. if !empty(PKG_OPTIONS:Msvg) && empty(PKG_OPTIONS:Mnextstep)
|
2009-06-05 04:57:53 +02:00
|
|
|
.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:Mgtk) || !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
|
|
|
|
|
|
|
|
###
|
Update emacs-snapshot to 23.1.91.20100111.
Changes:
* .dir-locals.el (change-log-mode): Restore bug-reference-mode.
* info/dir: Add Semantic.
* info/dir: Add EDT entry.
* .dir-locals.el (bug-reference-url-format): Change to debbugs.gnu.org.
* elisp package updates: edt, cedet, chart, eieio, files-x, font-setting,
hfy-cmap, htmlfontify, mule-conf, ucs-normalize, mpc, imap, tramp,
levents, lucid, sym-comp, org, js, and subword.
2010-01-18 20:34:20 +01:00
|
|
|
### Default to using the GTK toolkit if none is specified.
|
2009-06-05 04:57:53 +02:00
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mx11)
|
|
|
|
. if empty(PKG_OPTIONS:Mgtk) && empty(PKG_OPTIONS:Mmotif) && empty(PKG_OPTIONS:Mxaw)
|
Update emacs-snapshot to 23.1.91.20100111.
Changes:
* .dir-locals.el (change-log-mode): Restore bug-reference-mode.
* info/dir: Add Semantic.
* info/dir: Add EDT entry.
* .dir-locals.el (bug-reference-url-format): Change to debbugs.gnu.org.
* elisp package updates: edt, cedet, chart, eieio, files-x, font-setting,
hfy-cmap, htmlfontify, mule-conf, ucs-normalize, mpc, imap, tramp,
levents, lucid, sym-comp, org, js, and subword.
2010-01-18 20:34:20 +01:00
|
|
|
PKG_OPTIONS+= gtk
|
2009-06-05 04:57:53 +02:00
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Support drawing pretty X11 widgets.
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mx11)
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-x
|
|
|
|
CONFIGURE_ARGS+= --with-xpm
|
|
|
|
CONFIGURE_ARGS+= --with-jpeg
|
|
|
|
CONFIGURE_ARGS+= --with-tiff
|
|
|
|
CONFIGURE_ARGS+= --with-gif
|
|
|
|
CONFIGURE_ARGS+= --with-png
|
|
|
|
|
2010-12-23 12:44:24 +01:00
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
2009-06-05 04:57:53 +02:00
|
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
2011-03-09 17:28:20 +01:00
|
|
|
.include "../../mk/giflib.buildlink3.mk"
|
2009-06-05 04:57:53 +02:00
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
|
|
.include "../../x11/libSM/buildlink3.mk"
|
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
2010-02-19 20:04:11 +01:00
|
|
|
.include "../../x11/libXrender/buildlink3.mk"
|
2009-06-05 04:57:53 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
### 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-otf --without-m17n-flt
|
|
|
|
. endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Support using GTK X11 widgets.
|
|
|
|
###
|
|
|
|
. if !empty(PKG_OPTIONS:Mgtk)
|
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-x-toolkit=gtk
|
|
|
|
|
|
|
|
###
|
|
|
|
### 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
|
2011-10-09 16:02:06 +02:00
|
|
|
CHECK_WRKREF_SKIP+= share/GNUstep/Local/Applications/Emacs.app/Emacs
|
2009-06-05 04:57:53 +02:00
|
|
|
. 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
|