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
This commit is contained in:
宋文武 2023-08-19 10:59:34 +08:00 committed by John Kehayias
parent ed2c3143f3
commit 37fc2c99e0
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -754,10 +754,14 @@ (define-public libepoxy
#~(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))