cf4c3eb102
Thrift is a software framework for scalable cross-language services development. It combines a software stack with a code generation engine to build services that work efficiently and seamlessly between C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Smalltalk, and OCaml.
70 lines
1.5 KiB
Makefile
70 lines
1.5 KiB
Makefile
# $NetBSD: options.mk,v 1.1.1.1 2010/05/01 02:49:10 tonnerre Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.libthrift
|
|
PKG_SUPPORTED_OPTIONS= csharp java erlang python perl ruby
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
PLIST_VARS+= perl
|
|
|
|
.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
|
|
|
|
.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
|
|
USE_TOOLS+= perl
|
|
PLIST.perl= yes
|
|
|
|
.include "../../lang/perl5/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --without-perl
|
|
CONFIGURE_ARGS+= --disable-gen-perl
|
|
.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
|