aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanketsu <hanketsu@egregore.fun>2025-06-09 13:00:52 +0200
committerHanketsu <hanketsu@egregore.fun>2025-06-13 00:04:51 +0200
commita348dc772cb2ba1e4991098a56838d0f10dfc72f (patch)
tree2118069b043c94bb29f60039c6fcb721ddf83c3a
parent90a427a73c412bcf8ba4ce8189ce98b00e48eeda (diff)
battering: make-uxp-browser: Fix FFmpeg runtime linker
* battering/packages/palemoon.scm (make-uxp-browser)[phases]: Add 'fix-ffmpeg-runtime-linker.
-rw-r--r--battering/packages/palemoon.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/battering/packages/palemoon.scm b/battering/packages/palemoon.scm
index 70c633b..cb2929f 100644
--- a/battering/packages/palemoon.scm
+++ b/battering/packages/palemoon.scm
@@ -171,6 +171,14 @@
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "./configure.in" ;; Doesn't get patched automatically. Why ? This eludes me.
(("^#!/bin/sh") (format #f "#!~a" (search-input-file inputs "bin/sh"))))))
+ (add-after 'fix-prefs 'fix-ffmpeg-runtime-linker
+ (lambda _
+ (let ((libavcodec #$(file-append ffmpeg "/lib/libavcodec.so")))
+ (substitute* "platform/dom/media/platforms/ffmpeg/FFmpegRuntimeLinker.cpp"
+ (("static const char\\* sLibs\\[\\] = \\{" all)
+ (string-append all "\"" libavcodec "\" /*"))
+ (("#endif")
+ "*/")))))
(add-before 'configure 'setenv
(lambda* (#:key inputs #:allow-other-keys)
(setenv "LDFLAGS" (string-append "-Wl,-rpath=" #$output "/lib/" #$name))