guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/04: gnu: portaudio: Build position independent code and install more


From: guix-commits
Subject: 01/04: gnu: portaudio: Build position independent code and install more headers.
Date: Wed, 13 Mar 2019 08:36:14 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 86fded86c2cef1801b1f4a51a9766807512cda4c
Author: Ricardo Wurmus <address@hidden>
Date:   Wed Mar 13 13:19:06 2019 +0100

    gnu: portaudio: Build position independent code and install more headers.
    
    * gnu/packages/audio.scm (portaudio)[arguments]: Pass "--with-pic" and
    initialize libtool in new build phase 
"build-only-position-independent-code";
    install extra header in new build phase "install-missing-headers".
---
 gnu/packages/audio.scm | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index d77ad3d..91bb467 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -2834,7 +2834,26 @@ portions of LAME.")
        ("automake" ,automake)
        ("libtool" ,libtool)
        ("pkg-config" ,pkg-config)))
-    (arguments '(#:tests? #f))                    ;no 'check' target
+    (arguments
+     '(#:tests? #f                    ;no 'check' target
+       #:configure-flags '("--with-pic")
+       #:phases
+       (modify-phases %standard-phases
+         ;; This is needed for linking the static libraries
+         (add-after 'unpack 'build-only-position-independent-code
+           (lambda _
+             (substitute* "configure.in"
+               (("AC_PROG_LIBTOOL" m)
+                (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
+             (delete-file "configure")
+             #t))
+         ;; Some headers are not installed by default, but are needed by
+         ;; packages like Kaldi.
+         (add-after 'install 'install-missing-headers
+           (lambda* (#:key outputs #:allow-other-keys)
+             (install-file "src/common/pa_ringbuffer.h"
+                           (string-append (assoc-ref outputs "out") 
"/include"))
+             #t)))))
     (home-page "http://www.portaudio.com/";)
     (synopsis "Audio I/O library")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]