From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 58698158089 for ; Tue, 17 Oct 2023 16:10:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 990342BC0F9; Tue, 17 Oct 2023 16:10:30 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 710C92BC0F9 for ; Tue, 17 Oct 2023 16:10:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D931335CA6 for ; Tue, 17 Oct 2023 16:10:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 150931149 for ; Tue, 17 Oct 2023 16:10:28 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1697558916.b3ba4ddee21a2c16291a8796680fa9f275847f52.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libplacebo/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libplacebo/Manifest media-libs/libplacebo/libplacebo-6.338.1.ebuild X-VCS-Directories: media-libs/libplacebo/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: b3ba4ddee21a2c16291a8796680fa9f275847f52 X-VCS-Branch: master Date: Tue, 17 Oct 2023 16:10:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9aaa7acf-2971-46bf-8cb8-434f117bac18 X-Archives-Hash: 747075f1564362323725a72ac4d52c4d commit: b3ba4ddee21a2c16291a8796680fa9f275847f52 Author: Ionen Wolkens gentoo org> AuthorDate: Tue Oct 17 16:04:21 2023 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Tue Oct 17 16:08:36 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3ba4dde media-libs/libplacebo: add 6.338.1 Signed-off-by: Ionen Wolkens gentoo.org> media-libs/libplacebo/Manifest | 1 + media-libs/libplacebo/libplacebo-6.338.1.ebuild | 122 ++++++++++++++++++++++++ 2 files changed, 123 insertions(+) diff --git a/media-libs/libplacebo/Manifest b/media-libs/libplacebo/Manifest index bc50bfd437a3..73b6a8cc2280 100644 --- a/media-libs/libplacebo/Manifest +++ b/media-libs/libplacebo/Manifest @@ -4,3 +4,4 @@ DIST libplacebo-glad-2.0.4.tar.gz 599932 BLAKE2B 788d2b70222fd09eea02515bdf3cbc1 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 +DIST libplacebo-v6.338.1.tar.bz2 696577 BLAKE2B c4b1a9830ba91127c78fca30deabbc90c157b0bd9220216c6452866312374b9415f00c6f0c3b573070d4bf26a0c25df96462365d0929dcd022ef5ab84b909e17 SHA512 79e9f800791dcc856ead965f2b0b463ede3313186f248be85e3cf9ec62901043dad72b639f426f858e1fff0bbd9bdcdea48d01a5d3d2218b79e263fa0432bc5b diff --git a/media-libs/libplacebo/libplacebo-6.338.1.ebuild b/media-libs/libplacebo/libplacebo-6.338.1.ebuild new file mode 100644 index 000000000000..89a1527ea842 --- /dev/null +++ b/media-libs/libplacebo/libplacebo-6.338.1.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 ~arm ~arm64 ~loong ~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}] ) + 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 +}