diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-26 17:28:32 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-26 17:28:32 +0100 |
commit | 20c20eb967a638c833aae1462f149894b2dbd811 (patch) | |
tree | ba631e4b1cf506cc57a49b6e3754f090dd1cee69 /media-libs | |
parent | 25e2c97a4a6f12a367115508fc86d34fe76a6f5e (diff) |
gentoo auto-resync : 26:09:2023 - 17:28:31
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/Manifest.gz | bin | 69178 -> 69184 bytes | |||
-rw-r--r-- | media-libs/libplacebo/Manifest | 4 | ||||
-rw-r--r-- | media-libs/libplacebo/libplacebo-6.338.0.ebuild | 122 |
3 files changed, 126 insertions, 0 deletions
diff --git a/media-libs/Manifest.gz b/media-libs/Manifest.gz Binary files differindex e03e2bc8129f..25b1c72f4f2d 100644 --- a/media-libs/Manifest.gz +++ b/media-libs/Manifest.gz diff --git a/media-libs/libplacebo/Manifest b/media-libs/libplacebo/Manifest index 82fca1121493..df52bc7b9024 100644 --- a/media-libs/libplacebo/Manifest +++ b/media-libs/libplacebo/Manifest @@ -1,9 +1,13 @@ AUX libplacebo-5.229.1-llvm-libunwind.patch 418 BLAKE2B 0042bc6404de57fbbb814ebc91bb51ee5a6bb279a960af81bd2bc71b9eb092c0ee183e31614a892d26508516dd550837a6d5c8038512e8f8e899cddf1236f600 SHA512 b6a40675f0ea5b6e36fb47b56e08dc1ec7425ff8193dfd92aeccd3830da91b77410b9f5792b233b630bdd7422993d6d0f22b82761e29d17336357bb47c89bc48 AUX libplacebo-5.229.1-python-executable.patch 699 BLAKE2B 5c3f1afb2e8a8992bd411cd73e600254e76722788049a9c1eb44a5677f19214f3066685a16d30e679f38ddbb929f60721d38cfb679d3d803d46585153f3ef2ba SHA512 0f7e169fcb261a3229c24c6cc4a2bdc59a68c3dd97327f5b34495b801c43f4ae34d4f48f9456c07b1e444b4b74f06796534fbe450fa421fe6cf260842928ec1e +DIST fast_float-5.2.0.tar.gz 84800 BLAKE2B 39133eda20acd5f1f049e8040815a67aee588ab93be4953bde3b9227fb691e099581ef79b12b740437b78a9b4c9007762b44d9726ca07505ad5cb51394d8e3fd SHA512 c703c7cba3c69775317c66a62ce145646fd7d3d063124501e3d6a7deebb8c62c14a2ccdffed18de2d73d9d3a8ba2061ef1d34cc780ee0b6d607935d5f1b1de81 DIST glad-2.0.4.tar.gz 599932 BLAKE2B 788d2b70222fd09eea02515bdf3cbc147540631bf35fe39f12aa21fdbabf3d229f4234a430217dfaf3363934b8be12dd6a19871049a7b117deb8260ec69f8c67 SHA512 328d0dbe33e69f846d1c54226c6675694404f41e53c4762e6013c7bfe76b0700f0b28f4117a2018a09c9c23ccb6ad94d7b20882fefc2513941a4515686c9b9e7 +DIST libplacebo-glad-2.0.4.tar.gz 599932 BLAKE2B 788d2b70222fd09eea02515bdf3cbc147540631bf35fe39f12aa21fdbabf3d229f4234a430217dfaf3363934b8be12dd6a19871049a7b117deb8260ec69f8c67 SHA512 328d0dbe33e69f846d1c54226c6675694404f41e53c4762e6013c7bfe76b0700f0b28f4117a2018a09c9c23ccb6ad94d7b20882fefc2513941a4515686c9b9e7 DIST libplacebo-v5.264.1.tar.gz 725394 BLAKE2B 421de50ef5e2270e3ba32dd85d92d816a374257442b535face6cb8501d565652aae530b86a7d717c9352c6a82ca665ff7d91c2d9768365780cbbe4f48d1d3276 SHA512 305f43b71f078f4113def43c444df667dfbdd2a6a34d3b457b15da0b3499ca97ec9a8acbd151d58c8e1a593ace3d8aa61067b32556c6bae451efbb217d60a731 DIST libplacebo-v6.292.1.tar.bz2 702879 BLAKE2B 74319bdffb141d4ab50c04312dbcce8fe7926d28b59b2c088a975fec30b86b38bb99afc375de5d421f8f633524deb4a74bb30cd60ffb69b16caceccd0f4f13d9 SHA512 a519d540e5063905c7125ca90334471a21868e2795d3e2da502fe12adfa69555de5369b14d1d45f9d2b0ac589379ad687488896c6dbe22f1dbd7cc6f9eef544f +DIST libplacebo-v6.338.0.tar.bz2 696457 BLAKE2B fad5f0562b925528f44cdddd349114acfa8135503a47d5e7015be8b22a372f52d4ada8f196839d688887cce9ce91c11d0e32ac4dc0209f7dbc961d4785129fa7 SHA512 59be50efa3f56185a978f6ba5592beeabb40986ba8ccd6c0d43a8538a07a5459bec793df313c00ec721768490e30728c62dcef32693ba49e2544d59fd3d519e7 EBUILD libplacebo-5.264.1.ebuild 2908 BLAKE2B edeb06ac3b3f8ff055adab7e3457806282c6854297d7710e41acb9609c94ba53afd8e6b03ff04dc0693fe8cf00a813f94a730acc92bf1b9302773f79c74d6769 SHA512 d581927db83ce4205522f195eb9a4d5f2bf3007a6b8c4018339611c9339d23fd9c648f78621a1771436d8aa59f473987bae828cdbc1cc9c16a5f1044f01b9805 EBUILD libplacebo-6.292.1.ebuild 2923 BLAKE2B 8e82848c99c630115e8d9b1f4a8ce74851d8a3040965daea0af0c219fb247df6bf4490c86e805b6f595ef19756823bb21abc0b1b67972b23ca1364e40e3e5332 SHA512 d39af02ab940640a85638ec778beb456a6a94f5399568adbe81009be1b3dee9a7f5bd809719cfc67e9387cd2ad480c9a8842707c1abab3a3eef1d37117e3378b +EBUILD libplacebo-6.338.0.ebuild 3299 BLAKE2B 41c6d539b4d151e6b4891200ee053cb15150522ac877924fb13a4af0024f8b159b3cc2418604b41237ce007982e3e8267a9cc839dd600b65709ce3266bc689f0 SHA512 84103fde3c205683508472268b333c07afb9fa0176f4dfc64b3249939f7bc7b1f9d7a66bbf87d800ddaa042b8bb11963747a31424b62173cbe8c7aef2bb77e85 EBUILD libplacebo-9999.ebuild 3299 BLAKE2B 41c6d539b4d151e6b4891200ee053cb15150522ac877924fb13a4af0024f8b159b3cc2418604b41237ce007982e3e8267a9cc839dd600b65709ce3266bc689f0 SHA512 84103fde3c205683508472268b333c07afb9fa0176f4dfc64b3249939f7bc7b1f9d7a66bbf87d800ddaa042b8bb11963747a31424b62173cbe8c7aef2bb77e85 MISC metadata.xml 700 BLAKE2B 339905c53f52620737835f397717eba8b742fa4cb26f8dbc9f2dfd7a443a4e7f143b1ef844a52bddb280099f87a073cbf685c5a4a21e4788a1ac16cdccacce1c SHA512 8524de2cf08b516c79c6d1ae032e68d8421122084d431692663ac1ad3e1e841398eb4543bad6e24b674727b01d0959cec4960deb8300cb52d015a583d66d9ddc diff --git a/media-libs/libplacebo/libplacebo-6.338.0.ebuild b/media-libs/libplacebo/libplacebo-6.338.0.ebuild new file mode 100644 index 000000000000..22539f375674 --- /dev/null +++ b/media-libs/libplacebo/libplacebo-6.338.0.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2023 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 ~ppc64 ~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}] ) + xxhash? ( dev-libs/xxhash[${MULTILIB_USEDEP}] ) +" +# vulkan-headers is required even with USE=-vulkan (bug #882065) +DEPEND=" + ${RDEPEND} + dev-util/vulkan-headers +" +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 +} |