mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
ceres_solver, bump to 2.2.0 (#13208)
This commit is contained in:
@@ -8,19 +8,21 @@ HOMEPAGE="http://ceres-solver.org/"
|
||||
COPYRIGHT="2015 Google Inc."
|
||||
LICENSE="BSD (3-clause)
|
||||
Apache v2"
|
||||
REVISION="2"
|
||||
srcGitRev="46b3495a4f84eb5b7832b686a0b053cd71a1acab"
|
||||
SOURCE_URI="https://github.com/ceres-solver/ceres-solver/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="1a76b9aeb1d8e5565c49ca90a04108242a934270e8d14baeab4dd8672321c9b5"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/ceres-solver/ceres-solver/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="12efacfadbfdc1bbfa203c236e96f4d3c210bed96994288b3ff0c8e7c6f350d4"
|
||||
SOURCE_FILENAME="ceres-solver-$portVersion-tar.gz"
|
||||
SOURCE_DIR="ceres-solver-$srcGitRev"
|
||||
SOURCE_DIR="ceres-solver-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="2.1.0"
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
tbbVersion="12.17"
|
||||
tbbmallocVersion="2.17"
|
||||
|
||||
PROVIDES="
|
||||
ceres_solver$secondaryArchSuffix = $portVersion
|
||||
lib:libceres$secondaryArchSuffix = $libVersionCompat
|
||||
@@ -32,9 +34,8 @@ REQUIRES="
|
||||
lib:libccolamd$secondaryArchSuffix
|
||||
lib:libcholmod$secondaryArchSuffix
|
||||
lib:libcolamd$secondaryArchSuffix
|
||||
lib:libgflags$secondaryArchSuffix
|
||||
lib:libglog$secondaryArchSuffix
|
||||
lib:liblapack$secondaryArchSuffix
|
||||
lib:libmetis$secondaryArchSuffix
|
||||
lib:libopenblas$secondaryArchSuffix
|
||||
lib:libspqr$secondaryArchSuffix
|
||||
lib:libsuitesparseconfig$secondaryArchSuffix
|
||||
@@ -57,13 +58,13 @@ BUILD_REQUIRES="
|
||||
devel:libccolamd$secondaryArchSuffix
|
||||
devel:libcholmod$secondaryArchSuffix
|
||||
devel:libcolamd$secondaryArchSuffix
|
||||
devel:libgflags$secondaryArchSuffix
|
||||
devel:libglog$secondaryArchSuffix
|
||||
devel:liblapack$secondaryArchSuffix
|
||||
devel:libmetis$secondaryArchSuffix
|
||||
devel:libopenblas$secondaryArchSuffix
|
||||
devel:libspqr$secondaryArchSuffix
|
||||
devel:libsuitesparseconfig$secondaryArchSuffix
|
||||
devel:libtbb$secondaryArchSuffix
|
||||
devel:libtbb$secondaryArchSuffix == $tbbVersion
|
||||
devel:libtbbmalloc$secondaryArchSuffix == $tbbmallocVersion
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
@@ -79,11 +80,12 @@ BUILD()
|
||||
{
|
||||
mkdir -p build && cd "$_"
|
||||
|
||||
cmake .. \
|
||||
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
$cmakeDirArgs \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DEigen3_DIR=`finddir B_SYSTEM_DATA_DIRECTORY`/eigen3/cmake \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
$cmakeDirArgs
|
||||
-DBUILD_EXAMPLES=OFF \
|
||||
-DBUILD_TESTING=OFF
|
||||
|
||||
make # parallel builds needs way too much ram
|
||||
}
|
||||
@@ -105,6 +107,7 @@ INSTALL()
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make test
|
||||
# about 40 crashes (if i counted right)
|
||||
# summary is: 100% tests passed, 0 tests failed out of 175
|
||||
ctest --test-dir build --output-on-failure
|
||||
}
|
||||
Reference in New Issue
Block a user