Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
libclaw
no-boost-math.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File no-boost-math.patch of Package libclaw
diff -Nur libclaw-1.7.4/claw/code/tween/easing/easing_elastic.cpp new/claw/code/tween/easing/easing_elastic.cpp --- libclaw-1.7.4/claw/code/tween/easing/easing_elastic.cpp 2013-07-03 21:34:38.000000000 +0200 +++ new/claw/code/tween/easing/easing_elastic.cpp 2021-05-16 14:17:33.716091909 +0200 @@ -28,7 +28,6 @@ */ #include <claw/tween/easing/easing_elastic.hpp> -#include <boost/math/constants/constants.hpp> #include <cmath> /** @@ -38,7 +37,7 @@ */ double claw::tween::easing_elastic_func( double t ) { - const double pi( boost::math::constants::pi<double>() ); + const double pi( 3.14159265358979323846264338327950288419716939937510582097494459230781640628620899L ); const double v(t-1); const double p(0.3); diff -Nur libclaw-1.7.4/claw/code/tween/easing/easing_sine.cpp new/claw/code/tween/easing/easing_sine.cpp --- libclaw-1.7.4/claw/code/tween/easing/easing_sine.cpp 2013-07-03 21:34:38.000000000 +0200 +++ new/claw/code/tween/easing/easing_sine.cpp 2021-05-16 14:29:37.561118048 +0200 @@ -28,7 +28,6 @@ */ #include <claw/tween/easing/easing_sine.hpp> -#include <boost/math/constants/constants.hpp> #include <cmath> /** @@ -38,6 +37,6 @@ */ double claw::tween::easing_sine_func( double t ) { - const double pi( boost::math::constants::pi<double>() ); + const double pi( 3.14159265358979323846264338327950288419716939937510582097494459230781640628620899L ); return 1 - std::cos(t * pi / 2); } // easing_sine_func() diff -Nur libclaw-1.7.4/claw/impl/curve.tpp new/claw/impl/curve.tpp --- libclaw-1.7.4/claw/impl/curve.tpp 2013-07-03 21:34:38.000000000 +0200 +++ new/claw/impl/curve.tpp 2021-05-16 14:03:12.910091138 +0200 @@ -26,8 +26,9 @@ * \brief Implementation of claw::math::curve. * \author Julien Jorge */ -#include <boost/math/special_functions/cbrt.hpp> -#include <boost/math/constants/constants.hpp> + +#include <cmath> +#include <limits> /*----------------------------------------------------------------------------*/ /** @@ -516,10 +516,12 @@ else if ( delta > 0 ) { result.push_back - ( boost::math::cbrt - ( (-q + std::sqrt(delta)) / 2.0 ) - + boost::math::cbrt - ( (-q - std::sqrt(delta)) / 2.0 ) - b / (3.0 * a)); + ( std::pow( + ( (-q + std::sqrt(delta)) / 2.0 ), + 1.L/3.L) + + std::pow( + ( (-q - std::sqrt(delta)) / 2.0 ) - b / (3.0 * a), + 1.L/3.L)); } else for ( std::size_t i=0; i!=3; ++i ) @@ -527,7 +529,7 @@ ( 2.0 * std::sqrt( -p / 3.0 ) * std::cos ( std::acos( std::sqrt(27.0 / (- p * p * p)) * - q / 2.0 ) / 3.0 - + 2.0 * i * boost::math::constants::pi<double>() / 3.0 ) + + 2.0 * i * 3.14159265358979323846264338327950288419716939937510582097494459230781640628620899L / 3.0 ) - b / (3.0 * a)); return result; diff -Nur libclaw-1.7.4/CMakeLists.txt new/CMakeLists.txt --- libclaw-1.7.4/CMakeLists.txt 2013-07-03 21:34:38.000000000 +0200 +++ new/CMakeLists.txt 2021-05-16 14:17:55.612220993 +0200 @@ -77,6 +77,8 @@ # set compilation defines add_definitions( ${CLAW_DEFINITIONS} ) +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03") + #------------------------------------------------------------------------------- # application set( CLAW_APPLICATION_SOURCES
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor