[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/04: gnu: libaom: Omit static library.
From: |
guix-commits |
Subject: |
04/04: gnu: libaom: Omit static library. |
Date: |
Fri, 18 Jun 2021 18:08:52 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 8f8adb9c189560251358739d72c8bc65c13936e8
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Wed Jun 16 16:21:14 2021 +0200
gnu: libaom: Omit static library.
* gnu/packages/video.scm (libaom)[arguments]: Add a
'delete-static-libraries phase to do so.
---
gnu/packages/video.scm | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 3a0ebf9..6e6f84e 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -789,14 +789,21 @@ television and DVD. It is also known as AC-3.")
("pkg-config" ,pkg-config)
("python" ,python))) ; to detect the version
(arguments
- `(#:tests? #f ;no check target
+ `(#:tests? #f ; downloads many video clips
#:configure-flags
- ;; build dynamic library
(list "-DBUILD_SHARED_LIBS=YES"
"-DENABLE_PIC=TRUE"
"-DAOM_TARGET_CPU=generic"
(string-append "-DCMAKE_INSTALL_PREFIX="
- (assoc-ref %outputs "out")))))
+ (assoc-ref %outputs "out")))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'delete-static-libraries
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (lib (string-append out "/lib")))
+ (for-each delete-file
+ (find-files lib "\\.a$"))))))))
(home-page "https://aomedia.googlesource.com/aom/")
(synopsis "AV1 video codec")
(description "Libaom is the reference implementation of AV1. It includes a