mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-11 06:10:06 +02:00
71 lines
1.7 KiB
Bash
71 lines
1.7 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="fe54901055c71302dcdc5c3ccbe265a6c191978f3761ce1414d0895d6b0ea90e"
|
|
SOURCE_DIR="double-conversion-$portVersion"
|
|
PATCHES="double_conversion-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86 ?x86_gcc2"
|
|
|
|
libVersion="3.3.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
double_conversion$secondaryArchSuffix = $portVersion
|
|
lib:libdouble_conversion$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libstdc++$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
double_conversion${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libdouble_conversion$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
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 -Bbuild -S. $cmakeDirArgs -DCMAKE_BUILD_TYPE=Release \
|
|
-DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON
|
|
make -Cbuild $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -Cbuild install
|
|
|
|
# prepare develop/lib
|
|
prepareInstalledDevelLib libdouble-conversion
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make -Cbuild test
|
|
}
|