2011-10-31 21:54:23 +00:00
|
|
|
# Template file for 'protobuf'
|
|
|
|
pkgname=protobuf
|
2014-11-14 07:49:23 +00:00
|
|
|
version=2.6.1
|
2015-03-06 13:16:38 +00:00
|
|
|
revision=2
|
2011-10-31 21:54:23 +00:00
|
|
|
build_style=gnu-configure
|
2014-11-14 07:49:23 +00:00
|
|
|
hostmakedepends="automake 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"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2015-03-06 13:22:04 +00:00
|
|
|
distfiles="https://github.com/google/protobuf/releases/download/v${version}/protobuf-${version}.tar.bz2"
|
2014-11-14 07:49:23 +00:00
|
|
|
homepage="https://developers.google.com/protocol-buffers/"
|
2013-04-22 16:34:27 +00:00
|
|
|
license="BSD"
|
2014-11-14 07:49:23 +00:00
|
|
|
checksum=ee445612d544d885ae240ffbcbf9267faa9f593b7b101f21d58beceb92661910
|
2011-10-31 21:54:23 +00:00
|
|
|
|
2014-04-10 15:15:43 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# needs host protoc
|
2015-03-27 09:50:40 +00:00
|
|
|
hostmakedepends+=" protobuf"
|
2014-04-10 15:15:43 +00:00
|
|
|
configure_args+=" --with-protoc=/usr/bin/protoc"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
2014-11-14 07:49:23 +00:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2014-04-10 15:15:43 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|