aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/obs-vaapi/obs-vaapi-0.4.2.ebuild')
-rw-r--r--media-video/obs-vaapi/obs-vaapi-0.4.2.ebuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/media-video/obs-vaapi/obs-vaapi-0.4.2.ebuild b/media-video/obs-vaapi/obs-vaapi-0.4.2.ebuild
new file mode 100644
index 000000000..21119f7b8
--- /dev/null
+++ b/media-video/obs-vaapi/obs-vaapi-0.4.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+DESCRIPTION="OBS Studio VAAPI support via GStreamer"
+HOMEPAGE="https://github.com/fzwoch/obs-vaapi"
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/fzwoch/obs-vaapi"
+else
+ SRC_URI="https://github.com/fzwoch/obs-vaapi/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="video_cards_amdgpu video_cards_intel"
+COMMON_DEPEND="
+ media-video/obs-studio
+ media-libs/gst-plugins-base
+ sys-apps/pciutils
+"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}
+ dev-libs/glib
+ >=media-libs/gst-plugins-bad-1.22.3-r3[vaapi]
+ video_cards_amdgpu? ( media-libs/mesa[vaapi,video_cards_radeonsi] )
+ video_cards_intel? ( media-libs/libva-intel-media-driver )
+"
+
+src_configure() {
+ local emesonargs+=(
+ --libdir=/usr/$(get_libdir)/obs-plugins
+ )
+ meson_src_configure
+}