mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
protobuf_c, revbump, enable 32bit, move cmd's to tools (#13875)
This commit is contained in:
@@ -9,53 +9,69 @@ maintained by a new team. Thanks, Dave!"
|
||||
HOMEPAGE="https://github.com/protobuf-c/protobuf-c"
|
||||
COPYRIGHT="2008-2025, Dave Benson and the protobuf-c authors"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="$HOMEPAGE/releases/download/v$portVersion/protobuf-c-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="e2c86271873a79c92b58fef7ebf8de1aa0df4738347a8bd5d4e65a80a16d0d24"
|
||||
SOURCE_FILENAME="protobuf-c-$portVersion.tar.gz"
|
||||
SOURCE_DIR="protobuf-c-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandBinDir=$binDir
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
libVersion="1.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
protobuf_c = $portVersion
|
||||
lib:libprotobuf_c = $libVersionCompat
|
||||
protobuf_c$secondaryArchSuffix = $portVersion
|
||||
lib:libprotobuf_c$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
protobuf_c_devel = $portVersion
|
||||
cmd:protoc_c = $portVersion
|
||||
cmd:protoc_gen_c = $portVersion
|
||||
devel:libprotobuf_c = $libVersionCompat
|
||||
protobuf_c${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libprotobuf_c$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
protobuf_c == $portVersion base
|
||||
haiku
|
||||
lib:libprotobuf
|
||||
protobuf_c$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
DESCRIPTION_tools="Protocol Buffers C compiler"
|
||||
PROVIDES_tools="
|
||||
protobuf_c${secondaryArchSuffix}_tools = $portVersion
|
||||
cmd:protoc_c$commandSuffix = $portVersion
|
||||
cmd:protoc_gen_c$commandSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_tools="
|
||||
protobuf_c$secondaryArchSuffix == $portVersion base
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libprotobuf$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libprotobuf >= 31
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libprotobuf$secondaryArchSuffix >= 31
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:gcc
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
ln -sf "`finddir B_SYSTEM_HEADERS_DIRECTORY`${secondaryArchSubDir}/google"
|
||||
runConfigure ./configure \
|
||||
runConfigure --omit-dirs binDir ./configure \
|
||||
--bindir=$commandBinDir \
|
||||
--disable-static \
|
||||
--enable-shared
|
||||
|
||||
@@ -74,8 +90,10 @@ INSTALL()
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$binDir
|
||||
$developDir
|
||||
|
||||
packageEntries tools \
|
||||
$commandBinDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
|
||||
Reference in New Issue
Block a user