protobuf-c: use build_options to enable/disable protoc.
This commit is contained in:
parent
1ef8624ab4
commit
fac1f7f49b
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user