blob: d7d942c9b4bcd8caa60a637851076224b69d0f9c (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# $NetBSD: options.mk,v 1.3 2010/11/14 12:09:22 tonnerre Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libthrift
PKG_SUPPORTED_OPTIONS= csharp java erlang python perl php ruby
.include "../../mk/bsd.options.mk"
PLIST_VARS+= perl erlang
.if !empty(PKG_OPTIONS:Mcsharp)
CONFIGURE_ARGS+= --with-csharp
CONFIGURE_ARGS+= --enable-gen-csharp
.include "../../lang/mono/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-csharp
CONFIGURE_ARGS+= --disable-gen-csharp
.endif
.if !empty(PKG_OPTIONS:Mjava)
CONFIGURE_ARGS+= --with-java
CONFIGURE_ARGS+= --enable-gen-java
.include "../../lang/openjdk7/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-java
CONFIGURE_ARGS+= --disable-gen-java
.endif
.if !empty(PKG_OPTIONS:Merlang)
CONFIGURE_ARGS+= --with-erlang
CONFIGURE_ARGS+= --enable-gen-erl
PLIST.erlang= yes
.include "../../lang/erlang/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-erlang
CONFIGURE_ARGS+= --disable-gen-erl
.endif
.if !empty(PKG_OPTIONS:Mpython)
CONFIGURE_ARGS+= --with-py
CONFIGURE_ARGS+= --enable-gen-py
.include "../../lang/python/extension.mk"
.else
CONFIGURE_ARGS+= --without-py
CONFIGURE_ARGS+= --disable-gen-py
.endif
.if !empty(PKG_OPTIONS:Mperl)
CONFIGURE_ARGS+= --with-perl
CONFIGURE_ARGS+= --enable-gen-perl
CONFIGURE_ENV+= PERL_PREFIX=${PREFIX}
MAKE_ENV+= INSTALLDIRS=vendor
PERL5_CONFIGURE= NO
USE_TOOLS+= perl
PLIST.perl= yes
#PERL5_PACKLIST= auto/Thrift/.packlist
.include "../../lang/perl5/module.mk"
.else
CONFIGURE_ARGS+= --without-perl
CONFIGURE_ARGS+= --disable-gen-perl
.endif
.if !empty(PKG_OPTIONS:Mphp)
CONFIGURE_ARGS+= --with-php
CONFIGURE_ARGS+= --with-php_extension
CONFIGURE_ARGS+= --enable-gen-php
.include "../../lang/php/ext.mk"
.else
CONFIGURE_ARGS+= --without-php
CONFIGURE_ARGS+= --without-php_extension
CONFIGURE_ARGS+= --disable-gen-php
.endif
.if !empty(PKG_OPTIONS:Mruby)
CONFIGURE_ARGS+= --with-ruby
CONFIGURE_ARGS+= --enable-gen-rb
.include "../../lang/ruby/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-ruby
CONFIGURE_ARGS+= --disable-gen-rb
.endif
|