guix-commits
[Top][All Lists]
Advanced

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

03/11: gnu: rtmpdump: Don't install the static library.


From: guix-commits
Subject: 03/11: gnu: rtmpdump: Don't install the static library.
Date: Mon, 31 Aug 2020 14:35:48 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 55d6b357a937166ba19beb036b87519293e3bc2d
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Mon Aug 31 19:28:33 2020 +0200

    gnu: rtmpdump: Don't install the static library.
    
    * gnu/packages/networking.scm (rtmpdump)[arguments]: Add
    an ‘omit-static-library’ phase.
---
 gnu/packages/networking.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index e80c192a..1340bef 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -280,6 +280,14 @@ GLib-based library, libnice, as well as GStreamer elements 
to use it.")
         (string-append "prefix=" (assoc-ref %outputs "out")))
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'omit-static-library
+           (lambda _
+             (substitute* "librtmp/Makefile"
+               (("cp librtmp\\.a .*")   ; don't install it
+                "")
+               (("librtmp\\.a ")        ; don't build it
+                ""))
+             #t))
          (delete 'configure))))
     (inputs
      `(("openssl" ,openssl-1.0)



reply via email to

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