Files
haikuports/dev-libs/libtommath/libtommath-1.0.1.recipe
alaviss a0fdf8cf1f Add TEST() to various ports (#1832)
* app-crypt/rhash: disable on x86_gcc2, also fixed secondary arch

* dev-lang/tcc: make tcc actually works

  - update patches: define custom haiku definitions, use haiku
    start/end objects

  - make tcc uses haiku custom paths

  - add secondary arch support
  - add x86_64

* dev-lang/tcc: disable on all architectures

  - Haiku's BeBuild.h depends on __GNUC__ macro to select ABI, which
    unfortunately we can't risk to define, so disabling for now

* dev-python/pyqt: use correct name for sip

* dev-lang/spidermonkey: fix build

  - add x86 to snd arch

  - update config.sub and config.guess

  - add missing cmd:js_config
  - add missing cmd:zip

* dev-python/pyqt: clean up the spaces left by previous contributor

* add TEST() for the following ports:
  - sys-devel/flex
  - app-crypt/rhash
  - app-text/podofo
  - app-crypt/qca
  - app-editors/retext
  - app-i18n/mozc
  - dev-lang/tcc
  - dev-lang/yasm
  - dev-lang/spidermonkey
  - dev-libs/glib
  - dev-libs/jsoncpp
  - dev-libs/libtommath
  - dev-libs/libxslt
  - dev-libs/libyajl
  - dev-libs/zziplib
2017-12-10 13:49:50 +01:00

69 lines
1.6 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
}
TEST()
{
make $jobArgs -f makefile.shared IGNORE_SPEED=1 test_standalone
./test
}