mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
Upgrade highway to 1.2.0 (#11196)
This commit is contained in:
@@ -13,23 +13,37 @@ Why Highway?
|
||||
HOMEPAGE="https://github.com/google/highway"
|
||||
COPYRIGHT="2020 Google LLC"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/google/highway/archive/refs/tags/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="e1d47ce510429fdcf31f41697ca74fb0dcd59d933196e531a86d51751a56f4cc"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/google/highway/releases/download/$portVersion/highway-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="58e9d5d41d6573ad15245ad76aec53a69499ca7480c092d899c4424812ed906f"
|
||||
SOURCE_FILENAME="highway-$portVersion.tar.gz"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
highway$secondaryArchSuffix = $portVersion
|
||||
devel:libhwy$secondaryArchSuffix = $portVersion
|
||||
devel:libhwy_contrib$secondaryArchSuffix = $portVersion
|
||||
lib:libhwy$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libhwy_contrib$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libhwy_test$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
highway${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libhwy$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libhwy_contrib$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libhwy_test$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
highway$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
@@ -43,6 +57,7 @@ BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DBUILD_TESTING=OFF
|
||||
make -C build $jobArgs
|
||||
}
|
||||
@@ -52,9 +67,12 @@ INSTALL()
|
||||
make -C build install
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libhwy libhwy_contrib
|
||||
libhwy \
|
||||
libhwy_contrib \
|
||||
libhwy_test
|
||||
fixPkgconfig
|
||||
|
||||
# cleanup
|
||||
rmdir $libDir
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
Reference in New Issue
Block a user