summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorschmonz <schmonz>2014-02-15 03:37:27 +0000
committerschmonz <schmonz>2014-02-15 03:37:27 +0000
commit20e54cfc8cbf9c5a26656e3680e5fbdf54e2b0aa (patch)
treeef2802a4c3801897e0beec9f5b4f1987653e30a9 /editors
parent1517d38e50095813eb74d240a6607701a3488341 (diff)
downloadpkgsrc-20e54cfc8cbf9c5a26656e3680e5fbdf54e2b0aa.tar.gz
Add an option to link with perl, and make the ruby option specify
which interpreter we mean (to avoid getting a system Ruby by mistake). Approved by morr@.
Diffstat (limited to 'editors')
-rw-r--r--editors/vim-share/options.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/editors/vim-share/options.mk b/editors/vim-share/options.mk
index 4261a81e79d..7a653300543 100644
--- a/editors/vim-share/options.mk
+++ b/editors/vim-share/options.mk
@@ -1,6 +1,6 @@
-# $NetBSD: options.mk,v 1.2 2012/08/27 22:10:34 morr Exp $
+# $NetBSD: options.mk,v 1.3 2014/02/15 03:37:27 schmonz Exp $
-PKG_SUPPORTED_OPTIONS+= ruby python
+PKG_SUPPORTED_OPTIONS+= ruby python perl
PKG_OPTIONS_VAR= PKG_OPTIONS.vim
.include "../../mk/bsd.options.mk"
@@ -8,6 +8,7 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.vim
.if !empty(PKG_OPTIONS:Mruby)
.include "../../lang/ruby/buildlink3.mk"
CONFIGURE_ARGS+= --enable-rubyinterp
+CONFIGURE_ENV+= vi_cv_path_ruby=${RUBY}
.endif
.if !empty(PKG_OPTIONS:Mpython)
@@ -15,3 +16,9 @@ CONFIGURE_ARGS+= --enable-rubyinterp
CONFIGURE_ARGS+= --enable-pythoninterp
CONFIGURE_ENV+= vi_cv_path_python=${PYTHONBIN}
.endif
+
+.if !empty(PKG_OPTIONS:Mperl)
+.include "../../lang/perl5/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-perlinterp
+CONFIGURE_ENV+= vi_cv_path_perl=${PERL5}
+.endif