diff options
Diffstat (limited to 'media-libs/libplacebo/libplacebo-1.7.0.ebuild')
-rw-r--r-- | media-libs/libplacebo/libplacebo-1.7.0.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/media-libs/libplacebo/libplacebo-1.7.0.ebuild b/media-libs/libplacebo/libplacebo-1.7.0.ebuild new file mode 100644 index 000000000000..d564dd10f444 --- /dev/null +++ b/media-libs/libplacebo/libplacebo-1.7.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://code.videolan.org/videolan/libplacebo.git" + inherit git-r3 +else + KEYWORDS="~amd64" + SRC_URI="https://code.videolan.org/videolan/libplacebo/-/archive/v${PV}/libplacebo-v${PV}.tar.gz" + S="${WORKDIR}/${PN}-v${PV}" +fi + +inherit meson ninja-utils multilib-minimal + +DESCRIPTION="Reusable library for GPU-accelerated image processing primitives" +HOMEPAGE="https://github.com/haasn/libplacebo" + +LICENSE="LGPL-2.1+" +SLOT="0" +IUSE="glslang lcms +shaderc +vulkan" +REQUIRED_USE="vulkan? ( || ( glslang shaderc ) )" + +RDEPEND="glslang? ( <dev-util/glslang-7.10[${MULTILIB_USEDEP}] ) + lcms? ( media-libs/lcms:2[${MULTILIB_USEDEP}] ) + shaderc? ( >=media-libs/shaderc-2017.2[${MULTILIB_USEDEP}] ) + vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND}" + +multilib_src_configure() { + local emesonargs=( + -Dglslang=$(usex glslang enabled disabled) + -Dlcms=$(usex lcms enabled disabled) + -Dshaderc=$(usex shaderc enabled disabled) + -Dvulkan=$(usex vulkan enabled disabled) + ) + meson_src_configure +} + +multilib_src_compile() { + eninja +} + +multilib_src_install() { + DESTDIR="${D}" eninja install +} |