mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
primesieve: bump to 7.0.
This commit is contained in:
87
sci-libs/primesieve/primesieve-7.0.recipe
Normal file
87
sci-libs/primesieve/primesieve-7.0.recipe
Normal file
@@ -0,0 +1,87 @@
|
||||
SUMMARY="Fast C/C++ prime number generator library"
|
||||
DESCRIPTION="primesieve is a program and C/C++ library that generates primes \
|
||||
using a highly optimized sieve of Eratosthenes implementation. It counts the \
|
||||
primes below 10^10 in just 0.45 seconds on an Intel Core i7-6700 CPU \
|
||||
(4 x 3.4GHz). primesieve can generate primes and prime k-tuplets up to 2^64."
|
||||
HOMEPAGE="https://primesieve.org/"
|
||||
COPYRIGHT="2010-2018 Kim Walisch"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/kimwalisch/primesieve/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="cfe61451dcb2d0fd9e7beadac55a1a6399acf9223615b0df50e9f90e2f1a3432"
|
||||
SOURCE_FILENAME="primesieve-$portVersion.tar.gz"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
libVersion="9.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
primesieve$secondaryArchSuffix = $portVersion
|
||||
cmd:primesieve$commandSuffix = $portVersion
|
||||
lib:libprimesieve$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgomp$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
primesieve${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libprimesieve$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
primesieve$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
|
||||
cmake .. \
|
||||
-DCMAKE_INSTALL_BINDIR="$commandBinDir" \
|
||||
-DCMAKE_INSTALL_LIBDIR="$libDir" \
|
||||
-DCMAKE_INSTALL_INCLUDEDIR="$includeDir" \
|
||||
-DCMAKE_INSTALL_DOCDIR="$docDir" \
|
||||
-DCMAKE_INSTALL_MANDIR="$manDir" \
|
||||
-DBUILD_TESTS=ON
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLib libprimesieve
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user