diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-07 21:22:54 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-07 21:22:54 +0000 |
commit | 1cfea2a84c51291a77ab820b6871efcff10c148d (patch) | |
tree | 924f8b07cb24ba72b3d889cf4b50bdff4d2785c0 /media-libs/libplacebo/libplacebo-4.192.1-r2.ebuild | |
parent | 441369caa3d11703d0349d4b9746b7ad10aa6cb2 (diff) |
gentoo auto-resync : 07:11:2022 - 21:22:53
Diffstat (limited to 'media-libs/libplacebo/libplacebo-4.192.1-r2.ebuild')
-rw-r--r-- | media-libs/libplacebo/libplacebo-4.192.1-r2.ebuild | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/media-libs/libplacebo/libplacebo-4.192.1-r2.ebuild b/media-libs/libplacebo/libplacebo-4.192.1-r2.ebuild new file mode 100644 index 000000000000..96e2470a8d31 --- /dev/null +++ b/media-libs/libplacebo/libplacebo-4.192.1-r2.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_REQ_USE="xml(+)" +PYTHON_COMPAT=( python3_{8..10} ) + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://code.videolan.org/videolan/libplacebo.git" + inherit git-r3 +else + KEYWORDS="amd64 ppc64 x86" + SRC_URI="https://code.videolan.org/videolan/libplacebo/-/archive/v${PV}/libplacebo-v${PV}.tar.gz" + S="${WORKDIR}/${PN}-v${PV}" +fi + +inherit meson-multilib python-any-r1 + +DESCRIPTION="Reusable library for GPU-accelerated image processing primitives" +HOMEPAGE="https://code.videolan.org/videolan/libplacebo" + +LICENSE="LGPL-2.1+" +SLOT="0/$(ver_cut 2)" # libplacebo.so version +IUSE="glslang lcms +opengl +shaderc test unwind +vulkan" +REQUIRED_USE="vulkan? ( || ( glslang shaderc ) )" +RESTRICT="!test? ( test )" + +# Build broken with newer glslang due to struct TBuiltInResource changes +# (also breaks ABI wrt https://github.com/KhronosGroup/glslang/issues/3052). +# Fixed in next libplacebo version, but this older one is needed for stable +# mpv. Note glslang can be disabled, shaderc provides same functionality. +RDEPEND="glslang? ( <dev-util/glslang-1.3.231:=[${MULTILIB_USEDEP}] ) + lcms? ( media-libs/lcms:2[${MULTILIB_USEDEP}] ) + opengl? ( media-libs/libepoxy[${MULTILIB_USEDEP}] ) + shaderc? ( >=media-libs/shaderc-2017.2[${MULTILIB_USEDEP}] ) + unwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] ) + vulkan? ( + dev-util/vulkan-headers + media-libs/vulkan-loader[${MULTILIB_USEDEP}] + )" +DEPEND="${RDEPEND}" + +BDEPEND="virtual/pkgconfig + vulkan? ( + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-python/mako[${PYTHON_USEDEP}]') + )" + +PATCHES=( + "${FILESDIR}"/${PN}-2.72.2-fix-vulkan-undeclared.patch + "${FILESDIR}"/${P}-python-executable.patch +) + +python_check_deps() { + has_version -b "dev-python/mako[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use vulkan && python-any-r1_pkg_setup +} + +multilib_src_configure() { + local emesonargs=( + -Ddemos=false #851927 + $(meson_feature glslang) + $(meson_feature lcms) + $(meson_feature opengl) + $(meson_feature shaderc) + $(meson_feature unwind) + $(meson_feature vulkan) + $(meson_use test tests) + # hard-code path from dev-util/vulkan-headers + -Dvulkan-registry="${ESYSROOT}"/usr/share/vulkan/registry/vk.xml + ) + meson_src_configure +} + +multilib_src_test() { + meson_src_test -t 10 +} |