2018-02-14 00:48:59 +00:00
|
|
|
|
SUMMARY="An efficient method of encoding structured data"
|
|
|
|
|
DESCRIPTION="Protocol buffers are Google's language-neutral, platform-neutral, \
|
|
|
|
|
extensible mechanism for serializing structured data – think XML, but smaller, \
|
|
|
|
|
faster, and simpler. You define how you want your data to be structured once, \
|
|
|
|
|
then you can use special generated source code to easily write and read your \
|
|
|
|
|
structured data to and from a variety of data streams and using a variety of \
|
|
|
|
|
languages – Java, C++, or Python."
|
|
|
|
|
HOMEPAGE="https://github.com/google/protobuf"
|
|
|
|
|
COPYRIGHT="2008-2018 Google"
|
|
|
|
|
LICENSE="Apache v2"
|
2021-10-27 08:54:31 +00:00
|
|
|
|
REVISION="2"
|
2018-02-14 00:48:59 +00:00
|
|
|
|
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
|
2020-10-20 15:37:12 +00:00
|
|
|
|
CHECKSUM_SHA256="9b4ee22c250fe31b16f1a24d61467e40780a3fbb9b91c3b65be2a376ed913a1a"
|
2018-02-14 00:48:59 +00:00
|
|
|
|
PATCHES="protobuf-$portVersion.patchset"
|
|
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
2018-02-14 00:48:59 +00:00
|
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
|
|
2020-10-20 15:37:12 +00:00
|
|
|
|
libVersion="24.0.0"
|
2018-02-14 00:48:59 +00:00
|
|
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
|
protobuf$secondaryArchSuffix = $portVersion
|
|
|
|
|
cmd:protoc$secondaryArchSuffix = $portVersion
|
|
|
|
|
lib:libprotobuf$secondaryArchSuffix = $libVersionCompat
|
2018-08-08 14:18:18 +00:00
|
|
|
|
lib:libprotobuf_lite$secondaryArchSuffix = $libVersionCompat
|
2018-02-14 00:48:59 +00:00
|
|
|
|
lib:libprotoc$secondaryArchSuffix = $libVersionCompat
|
|
|
|
|
"
|
|
|
|
|
REQUIRES="
|
|
|
|
|
haiku$secondaryArchSuffix
|
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
PROVIDES_devel="
|
|
|
|
|
protobuf${secondaryArchSuffix}_devel = $portVersion
|
|
|
|
|
devel:libprotobuf$secondaryArchSuffix = $libVersionCompat
|
2018-08-08 14:18:18 +00:00
|
|
|
|
devel:libprotobuf_lite$secondaryArchSuffix = $libVersionCompat
|
2018-02-14 00:48:59 +00:00
|
|
|
|
devel:libprotoc$secondaryArchSuffix = $libVersionCompat
|
|
|
|
|
"
|
|
|
|
|
REQUIRES_devel="
|
|
|
|
|
protobuf$secondaryArchSuffix == $portVersion base
|
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
|
|
|
|
devel:libgmock$secondaryArchSuffix
|
|
|
|
|
"
|
|
|
|
|
BUILD_PREREQUIRES="
|
|
|
|
|
cmd:autoreconf
|
|
|
|
|
cmd:gcc$secondaryArchSuffix
|
|
|
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
|
|
|
cmd:make
|
|
|
|
|
"
|
|
|
|
|
|
2021-10-27 08:54:31 +00:00
|
|
|
|
TEST_REQUIRES="
|
|
|
|
|
lib:libgmock$secondaryArchSuffix
|
|
|
|
|
"
|
|
|
|
|
|
2018-02-14 00:48:59 +00:00
|
|
|
|
defineDebugInfoPackage protobuf$secondaryArchSuffix \
|
|
|
|
|
$libDir/libprotobuf.so.$libVersion \
|
|
|
|
|
$libDir/libprotoc.so.$libVersion \
|
|
|
|
|
$libDir/libprotobuf-lite.so.$libVersion
|
|
|
|
|
|
|
|
|
|
BUILD()
|
|
|
|
|
{
|
|
|
|
|
./autogen.sh
|
|
|
|
|
runConfigure ./configure
|
|
|
|
|
make $jobArgs
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
|
{
|
|
|
|
|
make install
|
|
|
|
|
|
2019-11-19 18:14:07 +00:00
|
|
|
|
rm $libDir/lib*.la $libDir/lib*.a
|
2018-02-14 00:48:59 +00:00
|
|
|
|
|
|
|
|
|
prepareInstalledDevelLibs libprotobuf-lite libprotobuf libprotoc
|
|
|
|
|
fixPkgconfig
|
|
|
|
|
packageEntries devel $developDir
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST()
|
|
|
|
|
{
|
|
|
|
|
make check
|
|
|
|
|
}
|