mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
protobuf: add recipe for version 3.2.0
This commit is contained in:
78
dev-libs/protobuf/protobuf-3.2.0.recipe
Normal file
78
dev-libs/protobuf/protobuf-3.2.0.recipe
Normal file
@@ -0,0 +1,78 @@
|
||||
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-2017 Google"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/releases/download/v$portVersion/protobuf-cpp-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="51d773e4297238b282eaa4c1dd317099675b12eef2b414732b851c00459225c6"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
protobuf$secondaryArchSuffix =$portVersion
|
||||
cmd:protoc$secondaryArchSuffix
|
||||
lib:libprotobuf_lite$secondaryArchSuffix = 12.0.0 compat >= 12
|
||||
lib:libprotobuf$secondaryArchSuffix = 12.0.0 compat >= 12
|
||||
lib:libprotoc$secondaryArchSuffix = 12.0.0 compat >= 12
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
protobuf${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libprotobuf_lite$secondaryArchSuffix = 12.0.0 compat >= 12
|
||||
devel:libprotobuf$secondaryArchSuffix = 12.0.0 compat >= 12
|
||||
devel:libprotoc$secondaryArchSuffix = 12.0.0 compat >= 12
|
||||
"
|
||||
REQUIRES_devel="
|
||||
protobuf$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoreconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
defineDebugInfoPackage protobuf$secondaryArchSuffix \
|
||||
$libDir/libprotobuf.so.12.0.0 \
|
||||
$libDir/libprotoc.so.12.0.0
|
||||
# dashes are not allowed in provides so objcopy can't find:
|
||||
# $libDir/libprotobuf_lite.so.12.0.0
|
||||
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
./autogen.sh
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm $libDir/lib*.la
|
||||
|
||||
prepareInstalledDevelLibs libprotobuf-lite libprotobuf libprotoc
|
||||
fixPkgconfig
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user