Files
buildroot/package/libplacebo/0001-meson.build-fix-linker-error-in-uclibc-sparc.patch
Javad Rahimipetroudi 006aab8d64 package/libplacebo: add libplacebo package
This patch adds libplacebo package that is used
by mpv player.
libplacebo is the core rendering algorithms and
ideas of mpv rewritten as an independent library
and contains a large assortment of video processing
shaders, focusing on both quality and performance.

Signed-off-by: Javad Rahimipetroudi <javad.rahimipetroudi@mind.be>
Tested-by: Sen Hastings <sen@hastings.org>
[Bernd:
- bumped to v7.351.0
- moved Kconfig option to Multimedia (Sen)
- rebased patch 0001 after version bump
- added project URL to Config.in helptext
- removed redundancy in Config.in comment
- added comment to hash file
- switched _SITE to official repo
- added patch to fix build error with latest python3]

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2026-01-01 17:16:32 +01:00

46 lines
1.4 KiB
Diff

From 4386f3e3b3d02c55776e3f674d8447fd24388c2c Mon Sep 17 00:00:00 2001
From: Javad Rahimipetroudi <javad.rahimipetroudi@mind.be>
Date: Fri, 19 Jul 2024 07:02:48 +0200
Subject: [PATCH] meson.build: add libatomic dependency if needed
This PR fixes the problem related to not finding the libatomic during the
build. Some combinations or architecture and libc (e.g. uClibc on SPARC)
operations in a separate library and don't link with it automatically.
An optional find_library to meson.build has been added to
discover this.
Fixes:
- https://github.com/haasn/libplacebo/issues/278
Signed-off-by: Javad Rahimipetroudi <javad.rahimipetroudi@mind.be>
Upstream: https://github.com/haasn/libplacebo/commit/4386f3e3b3d02c55776e3f674d8447fd24388c2c
---
meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index a73e49ff..f8cbf9f1 100644
--- a/meson.build
+++ b/meson.build
@@ -450,6 +450,7 @@ add_project_link_arguments(link_args, language: ['c', 'cpp'])
# Global dependencies
fs = import('fs')
libm = cc.find_library('m', required: false)
+atomic = cc.find_library('atomic', required: false)
thirdparty = meson.project_source_root()/'3rdparty'
python = import('python').find_installation()
python_env = environment()
@@ -475,7 +476,7 @@ else
)
endif
-build_deps = [ libm, threads ]
+build_deps = [ libm, threads, atomic]
subdir('tools')
subdir('src')
--
2.45.2