summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorobache <obache>2014-02-07 08:56:52 +0000
committerobache <obache>2014-02-07 08:56:52 +0000
commitd6f375e06b08db4008006346fcf26997a6afb7e9 (patch)
treef2f5efb685b97e54804e64390c742e194ed8df7d /editors
parent62d8bebabcfa827cea0af7282e5bfe148a6ab810 (diff)
downloadpkgsrc-d6f375e06b08db4008006346fcf26997a6afb7e9.tar.gz
Add xml and gnutls option, requested by Danie Roux via PR pkg/48382.
Diffstat (limited to 'editors')
-rw-r--r--editors/emacs24/options.mk25
1 files changed, 23 insertions, 2 deletions
diff --git a/editors/emacs24/options.mk b/editors/emacs24/options.mk
index 6e26e0ee951..0c5b1aa1edb 100644
--- a/editors/emacs24/options.mk
+++ b/editors/emacs24/options.mk
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.3 2013/12/31 16:50:19 wiz Exp $
+# $NetBSD: options.mk,v 1.4 2014/02/07 08:56:52 obache Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.emacs
-PKG_SUPPORTED_OPTIONS= dbus xft2 svg
+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
@@ -20,6 +20,27 @@ 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)