[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: guitarix: Fix build.
From: |
guix-commits |
Subject: |
01/01: gnu: guitarix: Fix build. |
Date: |
Sun, 17 Feb 2019 05:50:49 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 4e51d73596e22cb5fea9a86a6fa97d8636a7253a
Author: Ricardo Wurmus <address@hidden>
Date: Sun Feb 17 11:48:47 2019 +0100
gnu: guitarix: Fix build.
Fixes <https://bugs.gnu.org/34428>.
* gnu/packages/audio.scm (guitarix)[arguments]: Add phase
"fix-boost-includes".
---
gnu/packages/audio.scm | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 8471d03..ae0ddde 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -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)