[gnome-build-meta/valentindavid/v4l2loopback] Add v4l2loopback




commit 18c1b1591ed02dfa8632ca06b4ff284dfa73b63e
Author: Valentin David <valentin david codethink co uk>
Date:   Fri Jul 16 12:35:03 2021 +0200

    Add v4l2loopback
    
    This module is needed for OBS to stream as a webcam.

 elements/vm/common-deps.bst          |  1 +
 elements/vm/initramfs/deps.bst       |  2 +-
 elements/vm/v4l2loopback-modules.bst |  9 +++++++++
 elements/vm/v4l2loopback-utils.bst   | 12 ++++++++++++
 elements/vm/v4l2loopback.bst         | 33 +++++++++++++++++++++++++++++++++
 5 files changed, 56 insertions(+), 1 deletion(-)
---
diff --git a/elements/vm/common-deps.bst b/elements/vm/common-deps.bst
index 0d87c10c..57409c39 100644
--- a/elements/vm/common-deps.bst
+++ b/elements/vm/common-deps.bst
@@ -23,6 +23,7 @@ depends:
 - vm/opensc.bst
 - vm/uresourced.bst
 - vm/android-udev-rules.bst
+- vm/v4l2loopback-utils.bst
 
 - vm/ibus-anthy.bst
 - vm/ibus-hangul.bst
diff --git a/elements/vm/initramfs/deps.bst b/elements/vm/initramfs/deps.bst
index 7e5cd5c5..cdaf257d 100644
--- a/elements/vm/initramfs/deps.bst
+++ b/elements/vm/initramfs/deps.bst
@@ -15,4 +15,4 @@ depends:
 - core-deps/libostree.bst
 - vm/plymouth-gnome-theme.bst
 - vm/eos-repartition.bst
-
+- vm/v4l2loopback-modules.bst
diff --git a/elements/vm/v4l2loopback-modules.bst b/elements/vm/v4l2loopback-modules.bst
new file mode 100644
index 00000000..5705d973
--- /dev/null
+++ b/elements/vm/v4l2loopback-modules.bst
@@ -0,0 +1,9 @@
+kind: filter
+
+build-depends:
+- vm/v4l2loopback.bst
+
+config:
+  include:
+  - modules
+  include-orphans: false
diff --git a/elements/vm/v4l2loopback-utils.bst b/elements/vm/v4l2loopback-utils.bst
new file mode 100644
index 00000000..c94cc07f
--- /dev/null
+++ b/elements/vm/v4l2loopback-utils.bst
@@ -0,0 +1,12 @@
+kind: filter
+
+build-depends:
+- vm/v4l2loopback.bst
+
+runtime-depends:
+- freedesktop-sdk.bst:bootstrap-import.bst
+
+config:
+  include:
+  - utils
+  include-orphans: false
diff --git a/elements/vm/v4l2loopback.bst b/elements/vm/v4l2loopback.bst
new file mode 100644
index 00000000..95dd1a08
--- /dev/null
+++ b/elements/vm/v4l2loopback.bst
@@ -0,0 +1,33 @@
+kind: make
+
+sources:
+- kind: git_tag
+  url: github_com:umlaeute/v4l2loopback.git
+  track: main
+  track-tags: true
+
+build-depends:
+- freedesktop-sdk.bst:components/linux.bst
+- freedesktop-sdk.bst:components/help2man.bst
+
+depends:
+- freedesktop-sdk.bst:bootstrap-import.bst
+
+variables:
+  install-params: >-
+      DESTDIR='%{install-root}'
+      PREFIX='%{prefix}'
+      INSTALL_MOD_PATH='%{install-root}%{prefix}'
+  make-params: >-
+      KERNELRELEASE="$(ls /usr/lib/modules)"
+  make: make %{make-params}
+  make-install: make -j1 install-all %{install-params} %{make-params}
+
+public:
+  bst:
+    split-rules:
+      modules:
+      - "%{indep-libdir}/modules/**"
+      utils:
+      - "%{bindir}/**"
+      - "%{datadir}/**"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]