diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-09-13 15:04:15 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-09-13 17:02:16 -0400 |
commit | 93021c325d1bcf404f695c482f3124ed174f6133 (patch) | |
tree | 272042e3deb317b7ffc7a670e6bbccc780357b0e /media-libs/libplacebo | |
parent | dev-libs/xxhash: add 0.8.2, EAPI=8, enable multilib (diff) | |
download | gentoo-93021c325d1bcf404f695c482f3124ed174f6133.tar.gz gentoo-93021c325d1bcf404f695c482f3124ed174f6133.tar.bz2 gentoo-93021c325d1bcf404f695c482f3124ed174f6133.zip |
media-libs/libplacebo: update live
xxhash usage is technically header-only, but causes all sort of
pkg-config headaches if not multilib and also if not in RDEPEND
(aka mpv will fail to find libplacebo if xxhash was removed,
and libplacebo won't find the header without multilib .pc).
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-libs/libplacebo')
-rw-r--r-- | media-libs/libplacebo/libplacebo-9999.ebuild | 13 | ||||
-rw-r--r-- | media-libs/libplacebo/metadata.xml | 1 |
2 files changed, 12 insertions, 2 deletions
diff --git a/media-libs/libplacebo/libplacebo-9999.ebuild b/media-libs/libplacebo/libplacebo-9999.ebuild index feec155b736d..a4a83776c5b8 100644 --- a/media-libs/libplacebo/libplacebo-9999.ebuild +++ b/media-libs/libplacebo/libplacebo-9999.ebuild @@ -11,8 +11,11 @@ if [[ ${PV} == 9999 ]]; then 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 @@ -34,11 +37,11 @@ LICENSE=" opengl? ( MIT ) " SLOT="0/$(ver_cut 2 ${PV}.9999)" # soname -IUSE="glslang lcms llvm-libunwind +opengl +shaderc test unwind +vulkan" +IUSE="glslang lcms llvm-libunwind +opengl +shaderc test unwind +vulkan +xxhash" RESTRICT="!test? ( test )" REQUIRED_USE="vulkan? ( || ( glslang shaderc ) )" -# libglvnd is used with dlopen() through glad (inc. egl/gles) +# dlopen: libglvnd (glad) RDEPEND=" lcms? ( media-libs/lcms:2[${MULTILIB_USEDEP}] ) opengl? ( media-libs/libglvnd[${MULTILIB_USEDEP}] ) @@ -49,6 +52,7 @@ RDEPEND=" !llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] ) ) vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] ) + xxhash? ( dev-libs/xxhash[${MULTILIB_USEDEP}] ) " # vulkan-headers is required even with USE=-vulkan (bug #882065) DEPEND=" @@ -78,6 +82,10 @@ src_unpack() { 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 @@ -107,6 +115,7 @@ multilib_src_configure() { $(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/metadata.xml b/media-libs/libplacebo/metadata.xml index cbe5ba3fb8de..d9fc439df028 100644 --- a/media-libs/libplacebo/metadata.xml +++ b/media-libs/libplacebo/metadata.xml @@ -9,6 +9,7 @@ <flag name="glslang">Use <pkg>dev-util/glslang</pkg> to compile GLSL</flag> <flag name="lcms">Add support for color management via <pkg>media-libs/lcms</pkg></flag> <flag name="shaderc">Use <pkg>media-libs/shaderc</pkg> to compile GLSL</flag> + <flag name="xxhash">Use <pkg>dev-libs/xxhash</pkg> to speed up internal hashing</flag> </use> <upstream> <bugs-to>https://code.videolan.org/videolan/libplacebo/-/issues</bugs-to> |