libcpuid, fix libVersionCompat (#10460)

This commit is contained in:
Schrijvers Luc
2024-05-22 17:06:54 +02:00
committed by GitHub
parent bc9f1bdb90
commit 3d5287da23

View File

@@ -10,7 +10,7 @@ As well as the full API reference:
HOMEPAGE="http://libcpuid.sourceforge.net/"
COPYRIGHT="2008 Veselin Georgiev"
LICENSE="BSD (2-clause)"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/anrieff/libcpuid/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="4d106d66d211f2bfaf876eb62c84d4b54664e1c2b47eb6138161d3c608c0bc5e"
SOURCE_FILENAME="libcpuid-$portVersion.tar.gz"
@@ -26,10 +26,13 @@ if [ "$targetArchitecture" = x86_gcc2 ]; then
commandBinDir=$prefix/bin
fi
libVersion="16.0.5"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libcpuid$secondaryArchSuffix = $portVersion
cmd:cpuid_tool$commandSuffix
lib:libcpuid$secondaryArchSuffix = $portVersion
lib:libcpuid$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -37,7 +40,7 @@ REQUIRES="
PROVIDES_devel="
libcpuid${secondaryArchSuffix}_devel = $portVersion
devel:libcpuid$secondaryArchSuffix = $portVersion
devel:libcpuid$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libcpuid$secondaryArchSuffix == $portVersion base