diff options
author | 宋文武 <iyzsong@member.fsf.org> | 2023-08-19 10:59:34 +0800 |
---|---|---|
committer | John Kehayias <john.kehayias@protonmail.com> | 2023-11-05 22:09:51 -0500 |
commit | 37fc2c99e0067dfd669526c61dc10d014b89c08b (patch) | |
tree | 5367e49346961b7d9cec5be55268810950120496 /gnu/packages/gl.scm | |
parent | ed2c3143f35de2b402df434c4b11f4352d336b48 (diff) | |
download | guix-37fc2c99e0067dfd669526c61dc10d014b89c08b.tar.gz |
gnu: libepoxy: Hardcode paths to GLES libraries.
Fixes <https://issues.guix.gnu.org/64981>. * gnu/packages/gl.scm (libepoxy)[arguments]<#:phases>: Hardcode paths to libGLESv1_CM.so.1 and libGLESv2.so.2. Signed-off-by: John Kehayias <john.kehayias@protonmail.com> Change-Id: I9d68a2b8f9c4ffee13ea63ea973970bf1d4c8a6d
Diffstat (limited to 'gnu/packages/gl.scm')
-rw-r--r-- | gnu/packages/gl.scm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index 8cd4f746ec..c02a6f0a84 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -754,10 +754,14 @@ OpenGL graphics API.") #~(modify-phases %standard-phases (add-before 'configure 'patch-paths (lambda* (#:key inputs #:allow-other-keys) - (let ((mesa (dirname (search-input-file inputs "lib/libGL.so")))) + (let ((mesa-lib + (lambda (file) + (search-input-file inputs (string-append "lib/" file))))) (substitute* (find-files "." "\\.[ch]$") - (("libGL.so.1") (string-append mesa "/libGL.so.1")) - (("libEGL.so.1") (string-append mesa "/libEGL.so.1"))))))))) + (("libGL.so.1") (mesa-lib "libGL.so.1")) + (("libEGL.so.1") (mesa-lib "libEGL.so.1")) + (("libGLESv1_CM.so.1") (mesa-lib "libGLESv1_CM.so.1")) + (("libGLESv2.so.2") (mesa-lib "libGLESv2.so.2"))))))))) (build-system meson-build-system) (native-inputs (list pkg-config python)) |