diff options
Diffstat (limited to 'media-libs/libplacebo/libplacebo-5.229.2.ebuild')
-rw-r--r-- | media-libs/libplacebo/libplacebo-5.229.2.ebuild | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/media-libs/libplacebo/libplacebo-5.229.2.ebuild b/media-libs/libplacebo/libplacebo-5.229.2.ebuild deleted file mode 100644 index d89de1f37823..000000000000 --- a/media-libs/libplacebo/libplacebo-5.229.2.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..11} ) -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.1 # verify bug #881999 before bumping - SRC_URI=" - https://code.videolan.org/videolan/libplacebo/-/archive/v${PV}/libplacebo-v${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://code.videolan.org/videolan/libplacebo/" - -LICENSE="LGPL-2.1+ opengl? ( MIT )" -SLOT="0/$(ver_cut 2 ${PV}.9999)" # soname -IUSE="glslang lcms llvm-libunwind +opengl +shaderc test unwind +vulkan" -RESTRICT="!test? ( test )" -REQUIRED_USE="vulkan? ( || ( glslang shaderc ) )" - -# libglvnd is used with dlopen() through glad (inc. egl/gles) -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}] )" -# 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}] - dev-python/setuptools[${PYTHON_USEDEP}]') - virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}"/${PN}-5.229.1-llvm-libunwind.patch - "${FILESDIR}"/${PN}-5.229.1-python-executable.patch - "${FILESDIR}"/${PN}-5.229.1-shared-glslang.patch -) - -python_check_deps() { - # note: setuptools can be removed when using >=glad-2.0.2 - python_has_version "dev-python/jinja[${PYTHON_USEDEP}]" && - python_has_version "dev-python/setuptools[${PYTHON_USEDEP}]" -} - -src_unpack() { - if [[ ${PV} == 9999 ]]; then - local EGIT_SUBMODULES=( $(usev opengl 3rdparty/glad) ) - git-r3_src_unpack - else - default - 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 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_src_configure -} |