Files
haikuports/dev-libs/double-conversion/double_conversion-2.0.1.recipe
2017-06-04 15:22:52 +02:00

70 lines
1.6 KiB
Bash

SUMMARY="Binary-decimal and decimal-binary routines for IEEE doubles"
DESCRIPTION="The library consists of efficient conversion routines that have \
been extracted from the V8 JavaScript engine. The code has been refactored and\
improved so that it can be used more easily in other projects."
HOMEPAGE="https://github.com/google/double-conversion/"
COPYRIGHT="2006-2011 the V8 project authors"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="ca9ec6974eaaa29827b916c90666fba3b0b6641030fe2ab34a81e280187acdef"
SOURCE_DIR="double-conversion-$portVersion"
PATCHES="double_conversion-sharedlib.patch"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="?x86 ?x86_gcc2"
PROVIDES="
double_conversion$secondaryArchSuffix = $portVersion
lib:libdouble_conversion$secondaryArchSuffix = 1.0.0 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
double_conversion${secondaryArchSuffix}_devel = $portVersion
devel:libdouble_conversion$secondaryArchSuffix = 1.0.0 compat >= 1
"
REQUIRES_devel="
double_conversion$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake . $cmakeDirArgs -DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON
make $jobArgs
}
INSTALL()
{
make install
mkdir -p $(dirname $includeDir)
mv $prefix/include $includeDir
# prepare develop/lib
prepareInstalledDevelLib libdouble-conversion
# devel package
packageEntries devel \
$developDir \
$prefix/lib/CMake
}
TEST()
{
make check
}