[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/38: gnu: x265: Link together all library variants.
From: |
guix-commits |
Subject: |
02/38: gnu: x265: Link together all library variants. |
Date: |
Thu, 19 Dec 2024 06:02:35 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit f1b29371e10ba16eb108614808cd3147dcd628c8
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 29 09:32:39 2024 +0200
gnu: x265: Link together all library variants.
* gnu/packages/video.scm (x265)[arguments]: Adjust the 'configure-flags
to link the 10bit and 12bit variants of the libraries. Adjust the
'build-12-bit and 'build-10-bit phases to not build the shared
libraries. Remove 'install-more-libs phase.
Change-Id: I338e9a3d216e35e6e38fe6ccfd29236d14054306
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/video.scm | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 6260928bf0..6b4abd94b4 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1324,8 +1324,11 @@ on the Invidious instances only as a fallback method.")
(arguments
`(#:tests? #f ; tests are skipped if ENABLE_ASSEMBLY is TRUE.
#:configure-flags
- ;; Ensure position independent code for everyone.
(list "-DENABLE_PIC=TRUE"
+ "-DLINKED_10BIT=ON"
+ "-DLINKED_12BIT=ON"
+ "-DEXTRA_LIB=x265_main10.a;x265_main12.a"
+ "-DEXTRA_LINK_FLAGS=-L../build-10bit -L../build-12bit"
(string-append "-DCMAKE_INSTALL_PREFIX="
(assoc-ref %outputs "out")))
#:phases
@@ -1344,7 +1347,7 @@ on the Invidious instances only as a fallback method.")
(lambda* (#:key (configure-flags '()) #:allow-other-keys #:rest
args)
(mkdir "../build-12bit")
(with-directory-excursion "../build-12bit"
- (apply invoke
+ (invoke
"cmake" "../source"
,@(if (target-aarch64?)
'("-DENABLE_ASSEMBLY=OFF")
@@ -1356,8 +1359,9 @@ on the Invidious instances only as a fallback method.")
"-DHIGH_BIT_DEPTH=ON"
"-DEXPORT_C_API=OFF"
"-DENABLE_CLI=OFF"
- "-DMAIN12=ON"
- configure-flags)
+ "-DENABLE_SHARED=OFF"
+ "-DENABLE_PIC=TRUE"
+ "-DMAIN12=ON")
(substitute* (cons "cmake_install.cmake"
(append
(find-files "CMakeFiles/x265-shared.dir")
@@ -1368,7 +1372,7 @@ on the Invidious instances only as a fallback method.")
(lambda* (#:key (configure-flags '()) #:allow-other-keys #:rest
args)
(mkdir "../build-10bit")
(with-directory-excursion "../build-10bit"
- (apply invoke
+ (invoke
"cmake" "../source"
,@(if (target-aarch64?)
'("-DENABLE_ASSEMBLY=OFF")
@@ -1380,19 +1384,14 @@ on the Invidious instances only as a fallback method.")
"-DHIGH_BIT_DEPTH=ON"
"-DEXPORT_C_API=OFF"
"-DENABLE_CLI=OFF"
- configure-flags)
+ "-DENABLE_SHARED=OFF"
+ "-DENABLE_PIC=TRUE")
(substitute* (cons "cmake_install.cmake"
(append
(find-files "CMakeFiles/x265-shared.dir")
(find-files "CMakeFiles/x265-static.dir")))
(("libx265") "libx265_main10"))
((assoc-ref %standard-phases 'build)))))
- (add-after 'install 'install-more-libs
- (lambda args
- (with-directory-excursion "../build-12bit"
- ((assoc-ref %standard-phases 'install)))
- (with-directory-excursion "../build-10bit"
- ((assoc-ref %standard-phases 'install)))))
(add-before 'strip 'move-static-libs
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
- 07/38: gnu: nsncd: Don't run the tests in release mode., (continued)
- 07/38: gnu: nsncd: Don't run the tests in release mode., guix-commits, 2024/12/19
- 15/38: gnu: tree-sitter-cli: Don't run the tests in release mode., guix-commits, 2024/12/19
- 20/38: gnu: sequoia-sq: Don't run the tests in release mode., guix-commits, 2024/12/19
- 06/38: gnu: du-dust: Remove cargo-test-flags., guix-commits, 2024/12/19
- 18/38: gnu: rust-sequoia-openpgp-1: Don't run the tests in release mode., guix-commits, 2024/12/19
- 16/38: gnu: rust-nu-protocol-0.91: Don't run the tests in release mode., guix-commits, 2024/12/19
- 17/38: gnu: nushell: Don't run the tests in release mode., guix-commits, 2024/12/19
- 21/38: gnu: cargo-machete: Don't run the tests in release mode., guix-commits, 2024/12/19
- 01/38: gnu: x265: Only build with nasm on x86_64-linux., guix-commits, 2024/12/19
- 37/38: gnu: rust-matrixmultiply-0.3: Update to 0.3.9., guix-commits, 2024/12/19
- 02/38: gnu: x265: Link together all library variants.,
guix-commits <=
- 09/38: gnu: Add rust-demo-hack-impl-0.0.4., guix-commits, 2024/12/19
- 10/38: gnu: Add rust-demo-hack-0.0.4., guix-commits, 2024/12/19
- 08/38: gnu: rust-demo-hack-0.0.5: Rename from rust-demo-hack-0.0., guix-commits, 2024/12/19
- 23/38: gnu: just: Update to 1.38.0., guix-commits, 2024/12/19
- 25/38: gnu: rust-async-global-executor-2: Update to 2.4.1., guix-commits, 2024/12/19
- 24/38: gnu: rust-async-attributes-1: Update to 1.1.2., guix-commits, 2024/12/19
- 31/38: gnu: Add rust-temp-dir-0.1., guix-commits, 2024/12/19
- 05/38: gnu: rust-abi-stable-0.11: Don't run the tests in release mode., guix-commits, 2024/12/19
- 13/38: gnu: rust-hex-literal-0.1: Don't skip the tests., guix-commits, 2024/12/19
- 33/38: gnu: Add rust-basic-cookies-0.1., guix-commits, 2024/12/19