mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
75 lines
1.6 KiB
Bash
75 lines
1.6 KiB
Bash
SUMMARY="A family of hash functions"
|
|
DESCRIPTION="FarmHash provides hash functions for strings and other data."
|
|
HOMEPAGE="https://github.com/google/farmhash/"
|
|
COPYRIGHT="2014 Google, Inc."
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
srcGitRev="816a4ae622e964763ca0862d9dbd19324a1eaf45"
|
|
SOURCE_URI="https://github.com/google/farmhash/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="6560547c63e4af82b0f202cb710ceabb3f21347a4b996db565a411da5b17aba0"
|
|
SOURCE_FILENAME="$portVersionedName.tar.gz"
|
|
SOURCE_DIR="farmhash-$srcGitRev"
|
|
PATCHES="farmhash-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2 ?arm"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
farmhash$secondaryArchSuffix = $portVersion compat >= 0
|
|
lib:libfarmhash$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
farmhash${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libfarmhash$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
farmhash$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
export CXXFLAGS="-D_BSD_SOURCE"
|
|
libtoolize --force --copy --install
|
|
aclocal -I conftools -I m4
|
|
autoconf
|
|
automake --add-missing
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libfarmhash.la
|
|
|
|
# prepare develop/lib
|
|
prepareInstalledDevelLib libfarmhash
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|