mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
primesieve: Add new recipe (GCI 2016) (#936)
This commit is contained in:
committed by
fbrosson
parent
8128305c22
commit
66478f13de
74
sci-libs/primesieve/primesieve-5.7.3.recipe
Normal file
74
sci-libs/primesieve/primesieve-5.7.3.recipe
Normal file
@@ -0,0 +1,74 @@
|
||||
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="http://primesieve.org/"
|
||||
COPYRIGHT="2010-2016, Kim Walisch"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/kimwalisch/primesieve/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="22c5ec34f020592cd559551e3e6e1e86aa51f6e34d639bef352d155ea415ac62"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
||||
|
||||
if [ "$targetArchitecture" != x86_gcc2 ]; then
|
||||
commandBinDir=$binDir
|
||||
else
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
primesieve$secondaryArchSuffix = $portVersion
|
||||
cmd:primesieve = $portVersion
|
||||
lib:libprimesieve$secondaryArchSuffix = 7.0.3 compat >= 7
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgomp$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
primesieve${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libprimesieve$secondaryArchSuffix = 7.0.3 compat >= 7
|
||||
"
|
||||
REQUIRES_devel="
|
||||
primesieve$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
./autogen.sh
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install bindir=$commandBinDir
|
||||
|
||||
rm $libDir/libprimesieve.la
|
||||
|
||||
prepareInstalledDevelLib libprimesieve
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user