summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-02-07 08:56:52 +0000
committerobache <obache@pkgsrc.org>2014-02-07 08:56:52 +0000
commitece62a8bb0a23e94d7642b276bfae34f03ded945 (patch)
treef2f5efb685b97e54804e64390c742e194ed8df7d /editors
parentba943cccddc289cd9d1731d009384d2a2b2a68ac (diff)
downloadpkgsrc-ece62a8bb0a23e94d7642b276bfae34f03ded945.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)