mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: libaom: Omit static library.
* gnu/packages/video.scm (libaom)[arguments]: Add a 'delete-static-libraries phase to do so.
This commit is contained in:
parent
563bd8305e
commit
8f8adb9c18
1 changed files with 10 additions and 3 deletions
|
@ -789,14 +789,21 @@ (define-public libaom
|
|||
("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
|
||||
|
|
Loading…
Reference in a new issue