protobuf: cross build support.
This commit is contained in:
parent
d45e87af6b
commit
fca198a7fe
1 changed files with 12 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
|||
# Template file for 'protobuf'
|
||||
pkgname=protobuf
|
||||
version=2.5.0
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config"
|
||||
hostmakedepends="libtool pkg-config"
|
||||
makedepends="zlib-devel"
|
||||
short_desc="Google's data interchange format"
|
||||
maintainer="davehome <davehome@redthumb.info.tm>"
|
||||
|
@ -12,6 +12,16 @@ homepage="http://code.google.com/p/${pkgname}/"
|
|||
license="BSD"
|
||||
checksum=13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
# needs host protoc
|
||||
hostmakedepends+=" protobuf"
|
||||
configure_args+=" --with-protoc=/usr/bin/protoc"
|
||||
fi
|
||||
|
||||
pre_configure() {
|
||||
libtoolize -f
|
||||
}
|
||||
|
||||
protobuf-devel_package() {
|
||||
depends="zlib-devel protobuf>=${version}_${revision} protobuf-lite>=${version}_${revision}"
|
||||
short_desc="Google's data interchange format - development files"
|
||||
|
|
Loading…
Reference in a new issue