mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 20:20:06 +02:00
xxhash, bump version (#2729)
This commit is contained in:
committed by
waddlesplash
parent
fbf6cdbf15
commit
0048573b5c
22
dev-libs/xxhash/patches/xxhash-0.6.5.patchset
Normal file
22
dev-libs/xxhash/patches/xxhash-0.6.5.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 44dc714e4904fa639903cbfd4a178fa1bf70c5e3 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Sat, 23 Jun 2018 12:35:44 +0200
|
||||
Subject: import previous patch by nikolaszimmermann
|
||||
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 6dd738f..52047c1 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -230,7 +230,7 @@ clean:
|
||||
#-----------------------------------------------------------------------------
|
||||
# make install is validated only for the following targets
|
||||
#-----------------------------------------------------------------------------
|
||||
-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS))
|
||||
+ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku))
|
||||
|
||||
.PHONY: list
|
||||
list:
|
||||
--
|
||||
2.16.4
|
||||
|
||||
114
dev-libs/xxhash/xxhash-0.6.5.recipe
Normal file
114
dev-libs/xxhash/xxhash-0.6.5.recipe
Normal file
@@ -0,0 +1,114 @@
|
||||
SUMMARY="A fast non-cryptographic hash algorithm"
|
||||
DESCRIPTION="xxHash is an extremely fast non-cryptographic hash algorithm, \
|
||||
working at speeds close to RAM limits."
|
||||
HOMEPAGE="https://cyan4973.github.io/xxHash/
|
||||
http://www.xxhash.com/"
|
||||
COPYRIGHT="2014-2017 Yann Collet"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://github.com/Cyan4973/xxHash/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="19030315f4fc1b4b2cdb9d7a317069a109f90e39d1fe4c9159b7aaa39030eb95"
|
||||
SOURCE_FILENAME="xxHash-$portVersion.tar.gz"
|
||||
SOURCE_DIR="xxHash-$portVersion"
|
||||
PATCHES="xxhash-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86_gcc2 x86"
|
||||
|
||||
# Provide cmd:xxhash on all primary architectures except x86_gcc2,
|
||||
# as well as on x86 secondary arch if the primary arch is x86_gcc2.
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir="$binDir"
|
||||
provideRuntime=yes
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir="$prefix"/bin
|
||||
else
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
provideRuntime=no
|
||||
fi
|
||||
fi
|
||||
if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
|
||||
provideRuntime=no
|
||||
fi
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$portVersion compat >= ${portVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
xxhash$secondaryArchSuffix = $portVersion
|
||||
lib:libxxhash$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
if [ "$provideRuntime" = yes ]; then
|
||||
PROVIDES="$PROVIDES
|
||||
cmd:xxh32sum$commandSuffix = $portVersion
|
||||
cmd:xxh64sum$commandSuffix = $portVersion
|
||||
cmd:xxhsum$commandSuffix = $portVersion
|
||||
"
|
||||
fi
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
xxhash${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libxxhash$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
xxhash$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
debugList=(
|
||||
"$libDir"/libxxhash.so.$libVersion
|
||||
)
|
||||
if [ "$provideRuntime" = yes ]; then
|
||||
debugList+=("$commandBinDir"/xxhsum)
|
||||
fi
|
||||
defineDebugInfoPackage xxhash$secondaryArchSuffix "${debugList[@]}"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
|
||||
sed -i \
|
||||
-e "s/ -Wextra//" \
|
||||
-e "s/ -Wstrict-aliasing=1//" \
|
||||
-e "s/ -Wswitch-enum//" \
|
||||
-e "s/ -Wdeclaration-after-statement//" \
|
||||
Makefile
|
||||
fi
|
||||
}
|
||||
|
||||
TEST_REQUIRES="
|
||||
devel:libclang$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make BINDIR="$commandBinDir" INCLUDEDIR="$includeDir" LIBDIR="$libDir" \
|
||||
MANDIR="$manDir/man1" install
|
||||
|
||||
if [ "$provideRuntime" != yes ]; then
|
||||
rm -rf "$commandBinDir" "$manDir"
|
||||
fi
|
||||
|
||||
prepareInstalledDevelLib libxxhash
|
||||
packageEntries devel "$developDir"
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make test-all
|
||||
}
|
||||
Reference in New Issue
Block a user