diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-07-03 08:05:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-07-03 08:05:42 +0100 |
commit | 8435c842b9e8fbb2bcc80397ab3aa655000459e2 (patch) | |
tree | b74558e80643a8f074c501e8b4bf7f50f7155455 /media-libs/libplacebo | |
parent | 5c5e9714c851027611cb726a76ebb8be6d48cbdc (diff) |
gentoo auto-resync : 03:07:2024 - 08:05:42
Diffstat (limited to 'media-libs/libplacebo')
-rw-r--r-- | media-libs/libplacebo/Manifest | 2 | ||||
-rw-r--r-- | media-libs/libplacebo/libplacebo-7.349.0.ebuild | 126 |
2 files changed, 128 insertions, 0 deletions
diff --git a/media-libs/libplacebo/Manifest b/media-libs/libplacebo/Manifest index 6a617eaa2753..fe6cbabf388b 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.2.tar.bz2 697450 BLAKE2B 538785bea0003ff49a14b75f26fcd255259ed3b809b4b40be4000ec715808d6603d0139fe872ff2cf4ec13851a03fe63b251d019ef163fbbbfa74a012e0efbe6 SHA512 6577d19590b4d186d721238bd4c6bf940d1e766fe58053673fb5efb4c2c0a4408f29e7a1477328689a30b22eeac8c27548b82c11bfa0bc527d16f691849479c7 +DIST libplacebo-v7.349.0.tar.bz2 701309 BLAKE2B 6d0b546776c0326ab8305e7e12341b13e560e1ef53600913ece82341c762cdd466fd2d172781c769e59a57058769d5c0e48ca408ba0c2c7f936459bba6fb4212 SHA512 2e8cec7928aaafaaf9825cbacfb4758024ff04e40b98061fc6f178225647c90344e5aad23b02d82483062dbccf966a7d0178075151cefc6abaef1890f2b0c128 EBUILD libplacebo-6.338.2.ebuild 3371 BLAKE2B 6dc3cfa0829c429cd7c74ed2417b34a6cf4aa16e538950b8501b09dd788a5ea112ead070327e8b2edea2f908c7ff3f42f7532e7e61da14d9a7f550c230c5e187 SHA512 9e775926d8312cce562865d8fa0a18da96b6ce68f90b33f2994e2bcfca8b4458a879ad24c1032bb3ce980808960f4349212780cb7f31b74df4deb1592b163a62 +EBUILD libplacebo-7.349.0.ebuild 3376 BLAKE2B a096eb2162cbd029193cbebb99b67619e619f8d3a9d0221bae5d96aaf205f9769468f3a037162e278af675d112c9987ce1f752f2bf13a9b24701c2c3228a11ca SHA512 f441678f874752ba0f7f484cb0cb1e47c212ddc836e62fffe25eb5c667827b1cca0401b5b63ca01a58c8752bb5fac1cf8fb5d7f0e571e9ce3694721a59663bd7 EBUILD libplacebo-9999.ebuild 3376 BLAKE2B a096eb2162cbd029193cbebb99b67619e619f8d3a9d0221bae5d96aaf205f9769468f3a037162e278af675d112c9987ce1f752f2bf13a9b24701c2c3228a11ca SHA512 f441678f874752ba0f7f484cb0cb1e47c212ddc836e62fffe25eb5c667827b1cca0401b5b63ca01a58c8752bb5fac1cf8fb5d7f0e571e9ce3694721a59663bd7 MISC metadata.xml 794 BLAKE2B 7611ec1c500c2aeff415b9bda5b7a8f64df1e005972902eacc6fe25f84c8c68089041c0015e6ee82062eab9ae0127f502068a116ac01b6f9bbf4269ff8bf1987 SHA512 a8173a71e13137f432bef3b490b05c2e2899a935ed33259b21c488976deb78a860d09a81c8778e23f0b5eb42d02bcfe8a1867da98f4f29713864c21d463c0667 diff --git a/media-libs/libplacebo/libplacebo-7.349.0.ebuild b/media-libs/libplacebo/libplacebo-7.349.0.ebuild new file mode 100644 index 000000000000..0bf9834ccf55 --- /dev/null +++ b/media-libs/libplacebo/libplacebo-7.349.0.ebuild @@ -0,0 +1,126 @@ +# 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 libdovi 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}] ) + libdovi? ( media-libs/libdovi:=[${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) + $(meson_feature libdovi) + $(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 +} |