mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 16:20:08 +02:00
63 lines
1.5 KiB
Bash
63 lines
1.5 KiB
Bash
SUMMARY="A theoretic integer library written entirely in C"
|
|
DESCRIPTION="LibTomMath is a free open source portable number theoretic \
|
|
multiple-precision integer library written entirely in C."
|
|
HOMEPAGE="http://libtommath.org"
|
|
COPYRIGHT="2010 Tom St. Denis"
|
|
LICENSE="Public Domain"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/libtom/libtommath/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="db2b6e6b512aac5cc9be7e4ffdd15d971c3f03d3fa35f91607bfe1a7fa75a7a7"
|
|
#PATCHES="libtommath-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
libtommath$secondaryArchSuffix = $portVersion
|
|
lib:libtommath$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libtommath${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libtommath$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
haiku${secondaryArchSuffix}_devel
|
|
libtommath$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:ar$secondaryArchSuffix
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtool$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:ranlib$secondaryArchSuffix
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make $jobArgs -f makefile.shared IGNORE_SPEED=1
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
export LIBPATH=$libDir
|
|
export INCPATH=$includeDir
|
|
make -f makefile.shared install
|
|
|
|
rm $libDir/libtommath.la
|
|
|
|
prepareInstalledDevelLibs libtommath
|
|
fixPkgconfig
|
|
|
|
packageEntries devel $developDir
|
|
}
|