gnu: synfig: Fix boost build error.

* gnu/packages/animation.scm (synfig)[arguments]: Add phase
"fix-boost-build-error".
master
Ricardo Wurmus 2017-07-26 12:26:04 +02:00
parent 360f692783
commit d39238cf3d
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 10 additions and 0 deletions

View File

@ -78,6 +78,16 @@ C++ @dfn{Standard Template Library} (STL).")
"/lib"))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-boost-build-error
;; A chain of Boost headers leads to this error: "make_array" is
;; not a member of "boost::serialization". This can be avoided by
;; loading the "array_wrapper" header first.
(lambda _
(substitute* "src/synfig/valuenodes/valuenode_dynamic.cpp"
(("#include <boost/numeric/odeint/integrate/integrate.hpp>" match)
(string-append
"#include <boost/serialization/array_wrapper.hpp>\n" match)))
#t))
(add-after 'unpack 'adapt-to-libxml++-changes
(lambda _
(substitute* "configure"