summaryrefslogtreecommitdiff
path: root/editors/emacs-snapshot/options.mk
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2009-06-05 02:57:53 +0000
committerminskim <minskim@pkgsrc.org>2009-06-05 02:57:53 +0000
commitf7b706de5b5b3ce82589063ec1decd3c9d7deb66 (patch)
treede30bf5b312ff9f438e654b16a4368113c8aa0ca /editors/emacs-snapshot/options.mk
parent6f9aae2a5cf3129b48b35bd6498327ab74d6ca83 (diff)
downloadpkgsrc-f7b706de5b5b3ce82589063ec1decd3c9d7deb66.tar.gz
Import the development version of emacs (23.0.94).
This package is based on emacs-current in pkgsrc-wip, which was originally packaged by OBATA Akio.
Diffstat (limited to 'editors/emacs-snapshot/options.mk')
-rw-r--r--editors/emacs-snapshot/options.mk137
1 files changed, 137 insertions, 0 deletions
diff --git a/editors/emacs-snapshot/options.mk b/editors/emacs-snapshot/options.mk
new file mode 100644
index 00000000000..655aff00423
--- /dev/null
+++ b/editors/emacs-snapshot/options.mk
@@ -0,0 +1,137 @@
+# $NetBSD: options.mk,v 1.1.1.1 2009/06/05 02:57:57 minskim Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.emacs
+PKG_SUPPORTED_OPTIONS= dbus xft2 svg
+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
+PKG_SUGGESTED_OPTIONS= x11 xft2
+
+.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 SVG
+###
+. if !empty(PKG_OPTIONS:Msvg)
+.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
+
+###
+### Default to using the Xaw X11 toolkit if none is specified.
+###
+.if !empty(PKG_OPTIONS:Mx11)
+. if empty(PKG_OPTIONS:Mgtk) && empty(PKG_OPTIONS:Mmotif) && empty(PKG_OPTIONS:Mxaw)
+PKG_OPTIONS+= xaw
+. 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
+
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../graphics/libungif/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)
+.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
+. 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