summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2018-09-28 18:30:36 +0200
committerMichał Górny <mgorny@gentoo.org>2019-04-03 09:54:47 +0200
commit40d0d8188594a8f8dd4ce1539c9b0aa7c8334be8 (patch)
treede6dc9513feff3bf845d589892bd668aaef59c0b /media-libs/libplacebo
parentapp-editors/gvim: arm stable wrt bug #678752 (diff)
downloadgentoo-40d0d8188594a8f8dd4ce1539c9b0aa7c8334be8.tar.gz
gentoo-40d0d8188594a8f8dd4ce1539c9b0aa7c8334be8.tar.bz2
gentoo-40d0d8188594a8f8dd4ce1539c9b0aa7c8334be8.zip
media-libs/libplacebo: Add new ebuild
New project for video rendering that VLC 4 plans to use more heavily, and which also be used by mpv in the foreseeable future. Incidentally, this is an optional minor dependency of VLC 3, so we could also add libplacebo support to that ebuild (which improves the color management of the opengl vout). Signed-off-by: Niklas Haas <git@haasn.xyz> Closes: https://github.com/gentoo/gentoo/pull/10006 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'media-libs/libplacebo')
-rw-r--r--media-libs/libplacebo/Manifest1
-rw-r--r--media-libs/libplacebo/libplacebo-1.7.0.ebuild47
-rw-r--r--media-libs/libplacebo/libplacebo-9999.ebuild47
-rw-r--r--media-libs/libplacebo/metadata.xml21
4 files changed, 116 insertions, 0 deletions
diff --git a/media-libs/libplacebo/Manifest b/media-libs/libplacebo/Manifest
new file mode 100644
index 000000000000..d69d907033fc
--- /dev/null
+++ b/media-libs/libplacebo/Manifest
@@ -0,0 +1 @@
+DIST libplacebo-v1.7.0.tar.gz 312154 BLAKE2B 46a807e323cce5da6362828d931daeca3eaff8475a7318dfc756c097e2edc98f064a90b36e0f6d882f95f6bb077e72127fb6f8d7643dd992c7432a13b6fdbe64 SHA512 337662e538b1d6b3d063ec18db2627619e1bd72cff6017ac19027527b07a74b0f196a428b572c9f4e3c3856c32a123b70049d7938458fb4301fdd319d756ab27
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
+}
diff --git a/media-libs/libplacebo/libplacebo-9999.ebuild b/media-libs/libplacebo/libplacebo-9999.ebuild
new file mode 100644
index 000000000000..d564dd10f444
--- /dev/null
+++ b/media-libs/libplacebo/libplacebo-9999.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
+}
diff --git a/media-libs/libplacebo/metadata.xml b/media-libs/libplacebo/metadata.xml
new file mode 100644
index 000000000000..8538c991f885
--- /dev/null
+++ b/media-libs/libplacebo/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gentoo@haasn.xyz</email>
+ <name>Niklas Haas</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <use>
+ <flag name="glslang">Use <pkg>dev-util/glslang</pkg> to compile GLSL</flag>
+ <flag name="lcms">Add support for color management via <pkg>media-libs/lcms</pkg></flag>
+ <flag name="shaderc">Use <pkg>media-libs/shaderc</pkg> to compile GLSL</flag>
+ <flag name="vulkan">Add support for the vulkan graphics API</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://code.videolan.org/videolan/libplacebo/issues</bugs-to>
+ </upstream>
+</pkgmetadata>