summaryrefslogtreecommitdiff
path: root/media-libs/libplacebo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-22 22:48:12 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-22 22:48:12 +0000
commitfe48e91039d2758f30166b25a5223a0f53433e24 (patch)
treef808585bb0157e83a5266e855e11b9875fcd2f8a /media-libs/libplacebo
parentce163dcd0944d81d8406c9532b457535efca7a6d (diff)
gentoo auto-resync : 22:01:2024 - 22:48:12
Diffstat (limited to 'media-libs/libplacebo')
-rw-r--r--media-libs/libplacebo/Manifest4
-rw-r--r--media-libs/libplacebo/libplacebo-6.338.2.ebuild122
-rw-r--r--media-libs/libplacebo/libplacebo-9999.ebuild2
3 files changed, 126 insertions, 2 deletions
diff --git a/media-libs/libplacebo/Manifest b/media-libs/libplacebo/Manifest
index a266395a81aa..0dbad236be51 100644
--- a/media-libs/libplacebo/Manifest
+++ b/media-libs/libplacebo/Manifest
@@ -3,6 +3,8 @@ AUX libplacebo-5.229.1-python-executable.patch 699 BLAKE2B 5c3f1afb2e8a8992bd411
DIST fast_float-5.2.0.tar.gz 84800 BLAKE2B 39133eda20acd5f1f049e8040815a67aee588ab93be4953bde3b9227fb691e099581ef79b12b740437b78a9b4c9007762b44d9726ca07505ad5cb51394d8e3fd SHA512 c703c7cba3c69775317c66a62ce145646fd7d3d063124501e3d6a7deebb8c62c14a2ccdffed18de2d73d9d3a8ba2061ef1d34cc780ee0b6d607935d5f1b1de81
DIST libplacebo-glad-2.0.4.tar.gz 599932 BLAKE2B 788d2b70222fd09eea02515bdf3cbc147540631bf35fe39f12aa21fdbabf3d229f4234a430217dfaf3363934b8be12dd6a19871049a7b117deb8260ec69f8c67 SHA512 328d0dbe33e69f846d1c54226c6675694404f41e53c4762e6013c7bfe76b0700f0b28f4117a2018a09c9c23ccb6ad94d7b20882fefc2513941a4515686c9b9e7
DIST libplacebo-v6.338.1.tar.bz2 696577 BLAKE2B c4b1a9830ba91127c78fca30deabbc90c157b0bd9220216c6452866312374b9415f00c6f0c3b573070d4bf26a0c25df96462365d0929dcd022ef5ab84b909e17 SHA512 79e9f800791dcc856ead965f2b0b463ede3313186f248be85e3cf9ec62901043dad72b639f426f858e1fff0bbd9bdcdea48d01a5d3d2218b79e263fa0432bc5b
+DIST libplacebo-v6.338.2.tar.bz2 697450 BLAKE2B 538785bea0003ff49a14b75f26fcd255259ed3b809b4b40be4000ec715808d6603d0139fe872ff2cf4ec13851a03fe63b251d019ef163fbbbfa74a012e0efbe6 SHA512 6577d19590b4d186d721238bd4c6bf940d1e766fe58053673fb5efb4c2c0a4408f29e7a1477328689a30b22eeac8c27548b82c11bfa0bc527d16f691849479c7
EBUILD libplacebo-6.338.1.ebuild 3344 BLAKE2B 5bf49d68041367089e74f1ec97c14295181e976769dbe0a0d823203aa920fe5131b207535a0d57f33479d1cc8651c6437ca20c88063967b6939491bcf3fcdb0b SHA512 01db3134348050dbe86381c124c8f9ea695c36ed6a08c1ec1abcbfd9d62c2b4397966e95e07c7c37bfbb2b223c10dcfa430836ea540f8b11317a6a05b427e2ca
-EBUILD libplacebo-9999.ebuild 3338 BLAKE2B 9bb00e4328cf1c69ff8869d67cd20d27880bec026d793f992ff6811f9a6b23c515c9b899b470566ea54455cd040041ea59af1c80a7d0a54c8612e4a15b6dab47 SHA512 f25458c9451d6dcb63804a240caf5f26f8ec66525a56ca616ab698ce5d1f416feab4a191cbe395d2892541b10133f2171a45985b88d49f28124c871a1645b728
+EBUILD libplacebo-6.338.2.ebuild 3349 BLAKE2B 785d43a81f3d6bad09d3ca1c1a0a6e5442c20783b7f418b0bea8221b5989b1e3efa9b91932179b102652676b0f93ad528512326534f36247d173ab16bbcae08a SHA512 bf7d227d2147e47ae29d0dd711f84ecc1a460551946d37e78f36c1a50e03d40f9c42f1aaf55a4ffd183da9234bac4f959421e0771269afb0b530fe9897d3f0dc
+EBUILD libplacebo-9999.ebuild 3349 BLAKE2B 785d43a81f3d6bad09d3ca1c1a0a6e5442c20783b7f418b0bea8221b5989b1e3efa9b91932179b102652676b0f93ad528512326534f36247d173ab16bbcae08a SHA512 bf7d227d2147e47ae29d0dd711f84ecc1a460551946d37e78f36c1a50e03d40f9c42f1aaf55a4ffd183da9234bac4f959421e0771269afb0b530fe9897d3f0dc
MISC metadata.xml 700 BLAKE2B 339905c53f52620737835f397717eba8b742fa4cb26f8dbc9f2dfd7a443a4e7f143b1ef844a52bddb280099f87a073cbf685c5a4a21e4788a1ac16cdccacce1c SHA512 8524de2cf08b516c79c6d1ae032e68d8421122084d431692663ac1ad3e1e841398eb4543bad6e24b674727b01d0959cec4960deb8300cb52d015a583d66d9ddc
diff --git a/media-libs/libplacebo/libplacebo-6.338.2.ebuild b/media-libs/libplacebo/libplacebo-6.338.2.ebuild
new file mode 100644
index 000000000000..af53410bee94
--- /dev/null
+++ b/media-libs/libplacebo/libplacebo-6.338.2.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit meson-multilib python-any-r1
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://code.videolan.org/videolan/libplacebo.git"
+ inherit git-r3
+else
+ GLAD_PV=2.0.4
+ FASTFLOAT_PV=5.2.0
+ SRC_URI="
+ https://code.videolan.org/videolan/libplacebo/-/archive/v${PV}/libplacebo-v${PV}.tar.bz2
+ https://github.com/fastfloat/fast_float/archive/refs/tags/v${FASTFLOAT_PV}.tar.gz
+ -> fast_float-${FASTFLOAT_PV}.tar.gz
+ opengl? (
+ https://github.com/Dav1dde/glad/archive/refs/tags/v${GLAD_PV}.tar.gz
+ -> ${PN}-glad-${GLAD_PV}.tar.gz
+ )
+ "
+ S="${WORKDIR}/${PN}-v${PV}"
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86"
+fi
+
+DESCRIPTION="Reusable library for GPU-accelerated image processing primitives"
+HOMEPAGE="
+ https://libplacebo.org/
+ https://code.videolan.org/videolan/libplacebo/
+"
+
+LICENSE="
+ LGPL-2.1+
+ || ( Apache-2.0 Boost-1.0 MIT )
+ opengl? ( MIT )
+"
+SLOT="0/$(ver_cut 2 ${PV}.9999)" # soname
+IUSE="glslang +lcms llvm-libunwind +opengl +shaderc test unwind +vulkan +xxhash"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="vulkan? ( || ( glslang shaderc ) )"
+
+# dlopen: libglvnd (glad)
+RDEPEND="
+ lcms? ( media-libs/lcms:2[${MULTILIB_USEDEP}] )
+ opengl? ( media-libs/libglvnd[${MULTILIB_USEDEP}] )
+ shaderc? ( media-libs/shaderc[${MULTILIB_USEDEP}] )
+ !shaderc? ( glslang? ( dev-util/glslang:=[${MULTILIB_USEDEP}] ) )
+ unwind? (
+ llvm-libunwind? ( sys-libs/llvm-libunwind[${MULTILIB_USEDEP}] )
+ !llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] )
+ )
+ vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )
+"
+# vulkan-headers is required even with USE=-vulkan for the stub (bug #882065)
+DEPEND="
+ ${RDEPEND}
+ dev-util/vulkan-headers
+ xxhash? ( dev-libs/xxhash[${MULTILIB_USEDEP}] )
+"
+BDEPEND="
+ $(python_gen_any_dep 'dev-python/jinja[${PYTHON_USEDEP}]')
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.229.1-llvm-libunwind.patch
+ "${FILESDIR}"/${PN}-5.229.1-python-executable.patch
+)
+
+python_check_deps() {
+ python_has_version "dev-python/jinja[${PYTHON_USEDEP}]"
+}
+
+src_unpack() {
+ if [[ ${PV} == 9999 ]]; then
+ local EGIT_SUBMODULES=(
+ 3rdparty/fast_float
+ $(usev opengl 3rdparty/glad)
+ )
+ git-r3_src_unpack
+ else
+ default
+
+ rmdir "${S}"/3rdparty/fast_float || die
+ mv fast_float-${FASTFLOAT_PV} "${S}"/3rdparty/fast_float || die
+
+ if use opengl; then
+ rmdir "${S}"/3rdparty/glad || die
+ mv glad-${GLAD_PV} "${S}"/3rdparty/glad || die
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+
+ # typically auto-skipped, but may assume usable opengl/vulkan then hang
+ sed -i "/tests += 'opengl_surfaceless.c'/d" src/opengl/meson.build || die
+ sed -i "/tests += 'vulkan.c'/d" src/vulkan/meson.build || die
+}
+
+multilib_src_configure() {
+ local emesonargs=(
+ -Ddemos=false #851927
+ $(meson_use test tests)
+ $(meson_feature lcms)
+ -Dlibdovi=disabled # TODO: package libdovi, ask if you need this
+ $(meson_feature opengl)
+ $(meson_feature opengl gl-proc-addr)
+ $(meson_feature shaderc)
+ $(usex shaderc -Dglslang=disabled $(meson_feature glslang))
+ $(meson_feature unwind)
+ $(meson_feature vulkan)
+ $(meson_feature vulkan vk-proc-addr)
+ -Dvulkan-registry="${ESYSROOT}"/usr/share/vulkan/registry/vk.xml
+ $(meson_feature xxhash)
+ )
+
+ meson_src_configure
+}
diff --git a/media-libs/libplacebo/libplacebo-9999.ebuild b/media-libs/libplacebo/libplacebo-9999.ebuild
index b6c26e0ca55e..af53410bee94 100644
--- a/media-libs/libplacebo/libplacebo-9999.ebuild
+++ b/media-libs/libplacebo/libplacebo-9999.ebuild
@@ -22,7 +22,7 @@ else
)
"
S="${WORKDIR}/${PN}-v${PV}"
- KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86"
fi
DESCRIPTION="Reusable library for GPU-accelerated image processing primitives"