Sun Nov 14 12:09:22 2010 UTC ()
PHP has grown a new flag; disable building the PHP extension as well if we
disable PHP. This fixes the build with PHP disabled.


(tonnerre)
diff -r1.2 -r1.3 pkgsrc/devel/libthrift/options.mk

cvs diff -r1.2 -r1.3 pkgsrc/devel/libthrift/Attic/options.mk (expand / switch to unified diff)

--- pkgsrc/devel/libthrift/Attic/options.mk 2010/10/16 11:38:05 1.2
+++ pkgsrc/devel/libthrift/Attic/options.mk 2010/11/14 12:09:22 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: options.mk,v 1.2 2010/10/16 11:38:05 tonnerre Exp $ 1# $NetBSD: options.mk,v 1.3 2010/11/14 12:09:22 tonnerre Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.libthrift 3PKG_OPTIONS_VAR= PKG_OPTIONS.libthrift
4PKG_SUPPORTED_OPTIONS= csharp java erlang python perl php ruby 4PKG_SUPPORTED_OPTIONS= csharp java erlang python perl php ruby
5 5
6.include "../../mk/bsd.options.mk" 6.include "../../mk/bsd.options.mk"
7 7
8PLIST_VARS+= perl erlang 8PLIST_VARS+= perl erlang
9 9
10.if !empty(PKG_OPTIONS:Mcsharp) 10.if !empty(PKG_OPTIONS:Mcsharp)
11CONFIGURE_ARGS+= --with-csharp 11CONFIGURE_ARGS+= --with-csharp
12CONFIGURE_ARGS+= --enable-gen-csharp 12CONFIGURE_ARGS+= --enable-gen-csharp
13 13
14.include "../../lang/mono/buildlink3.mk" 14.include "../../lang/mono/buildlink3.mk"
@@ -47,40 +47,42 @@ CONFIGURE_ARGS+= --enable-gen-py @@ -47,40 +47,42 @@ CONFIGURE_ARGS+= --enable-gen-py
47CONFIGURE_ARGS+= --without-py 47CONFIGURE_ARGS+= --without-py
48CONFIGURE_ARGS+= --disable-gen-py 48CONFIGURE_ARGS+= --disable-gen-py
49.endif 49.endif
50 50
51.if !empty(PKG_OPTIONS:Mperl) 51.if !empty(PKG_OPTIONS:Mperl)
52CONFIGURE_ARGS+= --with-perl 52CONFIGURE_ARGS+= --with-perl
53CONFIGURE_ARGS+= --enable-gen-perl 53CONFIGURE_ARGS+= --enable-gen-perl
54CONFIGURE_ENV+= PERL_PREFIX=${PREFIX} 54CONFIGURE_ENV+= PERL_PREFIX=${PREFIX}
55MAKE_ENV+= INSTALLDIRS=vendor 55MAKE_ENV+= INSTALLDIRS=vendor
56PERL5_CONFIGURE= NO 56PERL5_CONFIGURE= NO
57USE_TOOLS+= perl 57USE_TOOLS+= perl
58PLIST.perl= yes 58PLIST.perl= yes
59 59
60PERL5_PACKLIST= auto/Thrift/.packlist 60#PERL5_PACKLIST= auto/Thrift/.packlist
61 61
62.include "../../lang/perl5/module.mk" 62.include "../../lang/perl5/module.mk"
63.else 63.else
64CONFIGURE_ARGS+= --without-perl 64CONFIGURE_ARGS+= --without-perl
65CONFIGURE_ARGS+= --disable-gen-perl 65CONFIGURE_ARGS+= --disable-gen-perl
66.endif 66.endif
67 67
68.if !empty(PKG_OPTIONS:Mphp) 68.if !empty(PKG_OPTIONS:Mphp)
69CONFIGURE_ARGS+= --with-php 69CONFIGURE_ARGS+= --with-php
 70CONFIGURE_ARGS+= --with-php_extension
70CONFIGURE_ARGS+= --enable-gen-php 71CONFIGURE_ARGS+= --enable-gen-php
71 72
72.include "../../lang/php/ext.mk" 73.include "../../lang/php/ext.mk"
73.else 74.else
74CONFIGURE_ARGS+= --without-php 75CONFIGURE_ARGS+= --without-php
 76CONFIGURE_ARGS+= --without-php_extension
75CONFIGURE_ARGS+= --disable-gen-php 77CONFIGURE_ARGS+= --disable-gen-php
76.endif 78.endif
77 79
78.if !empty(PKG_OPTIONS:Mruby) 80.if !empty(PKG_OPTIONS:Mruby)
79CONFIGURE_ARGS+= --with-ruby 81CONFIGURE_ARGS+= --with-ruby
80CONFIGURE_ARGS+= --enable-gen-rb 82CONFIGURE_ARGS+= --enable-gen-rb
81 83
82.include "../../lang/ruby/buildlink3.mk" 84.include "../../lang/ruby/buildlink3.mk"
83.else 85.else
84CONFIGURE_ARGS+= --without-ruby 86CONFIGURE_ARGS+= --without-ruby
85CONFIGURE_ARGS+= --disable-gen-rb 87CONFIGURE_ARGS+= --disable-gen-rb
86.endif 88.endif