summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2011-11-22 14:09:49 +0000
committergdt <gdt@pkgsrc.org>2011-11-22 14:09:49 +0000
commitf6d5d40df821d07238772bcc0c2bbb9ebb4823d7 (patch)
tree06d2d9a26c1198eef9236b8569717f9f41d56335 /www
parent28a0df99388f38e2721e05f35f6a8400f5124986 (diff)
downloadpkgsrc-f6d5d40df821d07238772bcc0c2bbb9ebb4823d7.tar.gz
Add option to link with python.
From reed@ and Mayuresh on pkgsrc-users.
Diffstat (limited to 'www')
-rw-r--r--www/elinks/options.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/www/elinks/options.mk b/www/elinks/options.mk
index 0ddf30227cc..a155b6acf88 100644
--- a/www/elinks/options.mk
+++ b/www/elinks/options.mk
@@ -1,10 +1,11 @@
-# $NetBSD: options.mk,v 1.11 2010/04/01 09:32:13 obache Exp $
+# $NetBSD: options.mk,v 1.12 2011/11/22 14:09:49 gdt Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.elinks
PKG_SUPPORTED_OPTIONS+= bittorrent nntp javascript finger gopher
PKG_SUPPORTED_OPTIONS+= inet6 x11 elinks-exmode expat
PKG_SUPPORTED_OPTIONS+= elinks-html-highlight elinks-root-exec
PKG_SUPPORTED_OPTIONS+= kerberos
+PKG_SUPPORTED_OPTIONS+= python
PKG_OPTIONS_GROUP.tls= gnutls ssl
PKG_OPTIONS_GROUP.malloc= boehm-gc elinks-fastmem
PKG_OPTIONS_REQUIRED_GROUPS= tls
@@ -134,3 +135,10 @@ CONFIGURE_ARGS+= --with-gssapi
.else
CONFIGURE_ARGS+= --without-gssapi
.endif
+
+.if !empty(PKG_OPTIONS:Mpython)
+.include "../../lang/python/pyversion.mk"
+CONFIGURE_ARGS+= --with-python=${PYTHONBIN}
+.else
+CONFIGURE_ARGS+= --without-python
+.endif