From fac1f7f49b0d9a72f34ade93318caafe9516ceed Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Fri, 13 Mar 2015 12:26:39 +0100 Subject: [PATCH] protobuf-c: use build_options to enable/disable protoc. --- srcpkgs/protobuf-c/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/protobuf-c/template b/srcpkgs/protobuf-c/template index 9936d82672c..ad432edcef3 100644 --- a/srcpkgs/protobuf-c/template +++ b/srcpkgs/protobuf-c/template @@ -12,7 +12,11 @@ homepage="https://github.com/protobuf-c/protobuf-c" distfiles="$homepage/releases/download/v$version/protobuf-c-$version.tar.gz" checksum=9a973fc04aac003f9cf2b5a90ac4b8fa294cacb4e3f0796d3b5a789a5ad46c07 # buildprocess calls compiler while building, disable it on cross build -[ "$CROSS_BUILD" ] && configure_args+=" --disable-protoc" +build_options="protoc" +if [ -z "$CROSS_BUILD" ]; then + build_options_default="protoc" +fi +configure_args="$(vopt_enable protoc)" protobuf-c-devel_package() { depends="${sourcepkg}>=${version}_${revision}"