gnu: guitarix: Fix build.

Fixes <https://bugs.gnu.org/34428>.

* gnu/packages/audio.scm (guitarix)[arguments]: Add phase
"fix-boost-includes".
master
Ricardo Wurmus 2019-02-17 11:48:47 +01:00
parent 52bc70e42d
commit 4e51d73596
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 14 additions and 1 deletions

View File

@ -1375,7 +1375,20 @@ patches that can be used with softsynths such as Timidity and WildMidi.")
(list
;; Add the output lib directory to the RUNPATH.
(string-append "--ldflags=-Wl,-rpath=" %output "/lib")
"--cxxflags=-std=c++11")))
"--cxxflags=-std=c++11")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-boost-includes
(lambda _
(substitute* "src/headers/gx_internal_plugins.h"
(("namespace gx_jack" m)
(string-append "#include <boost/noncopyable.hpp>\n" m)))
(substitute* '("src/headers/gx_system.h"
"src/headers/gx_parameter.h"
"src/headers/gx_json.h")
(("namespace gx_system" m)
(string-append "#include <boost/noncopyable.hpp>\n" m)))
#t)))))
(inputs
`(("libsndfile" ,libsndfile)
("boost" ,boost)