mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
91 lines
1.9 KiB
Bash
91 lines
1.9 KiB
Bash
SUMMARY="Elliptic Curve Method for Integer Factorization"
|
|
DESCRIPTION="C implementation of the Elliptic Curve Method for factorizing integers"
|
|
HOMEPAGE="http://ecm.gforge.inria.fr/"
|
|
COPYRIGHT="2001-2016 GMP-ECM Authors"
|
|
LICENSE="GNU GPL v3
|
|
GNU LGPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="https://gitlab.inria.fr/zimmerma/ecm/-/archive/$portVersion/ecm-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="950fd66ecd07efaacb8430c7c7c2b563e293209f183bab418dd82ca69fd98612"
|
|
SOURCE_DIR="ecm-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="1.0.0"
|
|
libVersionCompat="$libVersion compat >= 1"
|
|
|
|
PROVIDES="
|
|
gmp_ecm$secondaryArchSuffix = $portVersion
|
|
cmd:ecm$commandSuffix = $portVersion
|
|
lib:libecm$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgmp$secondaryArchSuffix
|
|
lib:libgomp$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
gmp_ecm${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libecm$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
gmp_ecm$secondaryArchSuffix == $portVersion base
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgmp$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:awk
|
|
cmd:cmp
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:m4
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir \
|
|
--enable-shared \
|
|
--enable-openmp \
|
|
--disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
install -d -m 755 "$docDir"
|
|
install -t "$docDir" -m 644 AUTHORS NEWS README*
|
|
|
|
rm "$libDir"/*.la
|
|
|
|
prepareInstalledDevelLib libecm
|
|
|
|
packageEntries devel \
|
|
"$developDir" \
|
|
"$docDir/NEWS"
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|