2011-10-31 21:54:23 +00:00
|
|
|
# Template file for 'protobuf'
|
|
|
|
pkgname=protobuf
|
2013-04-22 16:34:27 +00:00
|
|
|
version=2.5.0
|
2014-06-08 10:15:44 +00:00
|
|
|
revision=4
|
2011-10-31 21:54:23 +00:00
|
|
|
build_style=gnu-configure
|
2014-04-10 15:15:43 +00:00
|
|
|
hostmakedepends="libtool pkg-config"
|
2013-04-22 16:34:27 +00:00
|
|
|
makedepends="zlib-devel"
|
2011-10-31 21:54:23 +00:00
|
|
|
short_desc="Google's data interchange format"
|
2014-06-08 10:15:44 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-04-14 09:13:30 +00:00
|
|
|
distfiles="http://${pkgname}.googlecode.com/files/${pkgname}-${version}.tar.bz2"
|
2013-04-22 16:34:27 +00:00
|
|
|
homepage="http://code.google.com/p/${pkgname}/"
|
|
|
|
license="BSD"
|
|
|
|
checksum=13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677
|
2011-10-31 21:54:23 +00:00
|
|
|
|
2014-04-10 15:15:43 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# needs host protoc
|
|
|
|
hostmakedepends+=" protobuf"
|
|
|
|
configure_args+=" --with-protoc=/usr/bin/protoc"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
libtoolize -f
|
|
|
|
}
|
|
|
|
|
2013-04-14 09:13:30 +00:00
|
|
|
protobuf-devel_package() {
|
2014-02-17 16:30:58 +00:00
|
|
|
depends="zlib-devel protobuf>=${version}_${revision} protobuf-lite>=${version}_${revision}"
|
2013-04-22 16:34:27 +00:00
|
|
|
short_desc="Google's data interchange format - development files"
|
2013-04-14 09:13:30 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
2014-02-17 16:30:58 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-14 09:13:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
protobuf-lite_package() {
|
2013-04-22 16:34:27 +00:00
|
|
|
short_desc="Google's data interchange format - Lite version"
|
2013-04-14 09:13:30 +00:00
|
|
|
pkg_install() {
|
2014-02-17 16:30:58 +00:00
|
|
|
vmove "usr/lib/libprotobuf-lite.so.*"
|
2013-04-14 09:13:30 +00:00
|
|
|
}
|
|
|
|
}
|