blob: ca1cee6b937aff7af75ae41f3a22596ad8b5a43a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# $NetBSD: options.mk,v 1.12 2015/08/01 19:10:15 tonio Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.weechat
PKG_SUPPORTED_OPTIONS= gnutls python lua wide-curses perl ruby
PKG_SUGGESTED_OPTIONS= gnutls
.include "../../mk/bsd.options.mk"
PLIST_VARS+= lua plugin python perl ruby
.if !empty(PKG_OPTIONS:Mgnutls)
.include "../../security/gnutls/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mwide-curses)
.include "../../devel/ncursesw/buildlink3.mk"
.else
.include "../../devel/ncurses/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mpython)
.include "../../lang/python/extension.mk"
CMAKE_ARGS+= -DENABLE_PYTHON:BOOL=ON
PLIST.python= yes
.else
CMAKE_ARGS+= -DENABLE_PYTHON:BOOL=OFF
.endif
.if !empty(PKG_OPTIONS:Mlua)
LUA_VERSIONS_INCOMPATIBLE= 52
.include "../../lang/lua/buildlink3.mk"
CMAKE_ARGS+= -DENABLE_LUA:BOOL=ON
PLIST.lua= yes
.else
CMAKE_ARGS+= -DENABLE_LUA:BOOL=OFF
.endif
.if !empty(PKG_OPTIONS:Mperl)
.include "../../lang/perl5/buildlink3.mk"
CMAKE_ARGS+= -DENABLE_PERL:BOOL=ON
USE_TOOLS+= perl
PLIST.perl= yes
.else
CMAKE_ARGS+= -DENABLE_PERL:BOOL=OFF
.endif
.if !empty(PKG_OPTIONS:Mruby)
.include "../../lang/ruby/buildlink3.mk"
CMAKE_ARGS+= -DENABLE_RUBY:BOOL=ON
PLIST.ruby= yes
BUILDLINK_INCDIRS.${RUBY_BASE}+= ${RUBY_INC}
BUILDLINK_INCDIRS.${RUBY_BASE}+= ${RUBY_ARCHINC}
.else
CMAKE_ARGS+= -DENABLE_RUBY:BOOL=OFF
.endif
.if !empty(PKG_OPTIONS:Mpython) || \
!empty(PKG_OPTIONS:Mlua)
PLIST.plugin= yes
.endif
|