[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/03: gnu: x265: Honor make-flags.
From: |
guix-commits |
Subject: |
02/03: gnu: x265: Honor make-flags. |
Date: |
Thu, 30 Jun 2022 14:00:31 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 6f2bdd4e6b71a83d9d6963d9643a5ad848c06b9d
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Jun 30 20:02:55 2022 +0300
gnu: x265: Honor make-flags.
* gnu/packages/video.scm (x265)[arguments]: Adjust custom 'build-12-bit,
'build-10-bit and 'install-more-libs phases to use standard 'make and
'install phases.
---
gnu/packages/video.scm | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 55a477a8fd..4fef8a01c4 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1241,7 +1241,7 @@ on the Invidious instances only as a fallback method.")
(string-append "if(TRUE)\n"
" set(X265_LATEST_TAG \"" ,version
"\")\n")))))
(add-before 'configure 'build-12-bit
- (lambda* (#:key (configure-flags '()) #:allow-other-keys)
+ (lambda* (#:key (configure-flags '()) #:allow-other-keys #:rest
args)
(mkdir "../build-12bit")
(with-directory-excursion "../build-12bit"
(apply invoke
@@ -1256,9 +1256,9 @@ on the Invidious instances only as a fallback method.")
(find-files "CMakeFiles/x265-shared.dir")
(find-files "CMakeFiles/x265-static.dir")))
(("libx265") "libx265_main12"))
- (invoke "make"))))
+ ((assoc-ref %standard-phases 'build)))))
(add-before 'configure 'build-10-bit
- (lambda* (#:key (configure-flags '()) #:allow-other-keys)
+ (lambda* (#:key (configure-flags '()) #:allow-other-keys #:rest
args)
(mkdir "../build-10bit")
(with-directory-excursion "../build-10bit"
(apply invoke
@@ -1272,13 +1272,13 @@ on the Invidious instances only as a fallback method.")
(find-files "CMakeFiles/x265-shared.dir")
(find-files "CMakeFiles/x265-static.dir")))
(("libx265") "libx265_main10"))
- (invoke "make"))))
+ ((assoc-ref %standard-phases 'build)))))
(add-after 'install 'install-more-libs
- (lambda _
+ (lambda args
(with-directory-excursion "../build-12bit"
- (invoke "make" "install"))
+ ((assoc-ref %standard-phases 'install)))
(with-directory-excursion "../build-10bit"
- (invoke "make" "install"))))
+ ((assoc-ref %standard-phases 'install)))))
(add-before 'strip 'move-static-libs
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))