* My OpenBSD ports
       
   URI git clone git://git.codevoid.de/mystuff.git
   DIR Log
   DIR Files
   DIR Refs
       ---
   DIR commit 84f30c05b8820c35e903a0c868e6a7a7af6ff026
   DIR parent 3a592cd5d998e8c1c2b1b90267b8694e7f50b291
   URI Author: c0dev0id <sh+github[at]codevoid[dot]de>
       Date:   Sun,  4 Oct 2020 17:54:56 +0200
       
       obs-studio: v4l plugin
       
       Diffstat:
         M multimedia/obs-studio/Makefile      |       5 ++++-
         D multimedia/obs-studio/patches/patc… |      14 --------------
         M multimedia/obs-studio/patches/patc… |       2 +-
         A multimedia/obs-studio/patches/patc… |      17 +++++++++++++++++
         A multimedia/obs-studio/patches/patc… |      17 +++++++++++++++++
         A multimedia/obs-studio/patches/patc… |      17 +++++++++++++++++
       
       6 files changed, 56 insertions(+), 16 deletions(-)
       ---
   DIR diff --git a/multimedia/obs-studio/Makefile b/multimedia/obs-studio/Makefile
       @@ -29,10 +29,13 @@ RUN_DEPENDS =        devel/desktop-file-utils \
                        x11/gtk+3,-guic
        
        BUILD_DEPENDS =        audio/fdk-aac \
       -                devel/swig \
       +                devel/jansson \
                        devel/ninja \
       +                devel/swig \
                        graphics/ffmpeg \
       +                lang/luajit \
                        multimedia/x264 \
       +                x11/vlc \
                        x11/xcb
        
        
   DIR diff --git a/multimedia/obs-studio/patches/patch-libobs_util_platform-nix_c b/multimedia/obs-studio/patches/patch-libobs_util_platform-nix_c
       @@ -1,14 +0,0 @@
       -$OpenBSD$
       -
       -Index: libobs/util/platform-nix.c
       ---- libobs/util/platform-nix.c.orig
       -+++ libobs/util/platform-nix.c
       -@@ -275,7 +275,7 @@ char *os_get_program_data_path_ptr(const char *name)
       - char *os_get_executable_path_ptr(const char *name)
       - {
       -         char exe[PATH_MAX];
       --#if defined(__FreeBSD__) || defined(__DragonFly__)
       -+#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
       -         int sysctlname[4] = {CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1};
       -         size_t pathlen = PATH_MAX;
       -         ssize_t count;
   DIR diff --git a/multimedia/obs-studio/patches/patch-plugins_CMakeLists_txt b/multimedia/obs-studio/patches/patch-plugins_CMakeLists_txt
       @@ -10,8 +10,8 @@ Index: plugins/CMakeLists.txt
        +elseif("${CMAKE_SYSTEM_NAME}" MATCHES "OpenBSD")
        +        add_subdirectory(linux-capture)
        +        add_subdirectory(linux-pulseaudio)
       ++        add_subdirectory(linux-v4l2)
        +        add_subdirectory(linux-jack)
       -+        add_subdirectory(linux-alsa)
        +        add_subdirectory(vlc-video)
         endif()
         
   DIR diff --git a/multimedia/obs-studio/patches/patch-plugins_linux-v4l2_v4l2-controls_c b/multimedia/obs-studio/patches/patch-plugins_linux-v4l2_v4l2-controls_c
       @@ -0,0 +1,17 @@
       +$OpenBSD$
       +
       +Index: plugins/linux-v4l2/v4l2-controls.c
       +--- plugins/linux-v4l2/v4l2-controls.c.orig
       ++++ plugins/linux-v4l2/v4l2-controls.c
       +@@ -17,7 +17,11 @@ along with this program.  If not, see <http://www.gnu.
       + 
       + #include <fcntl.h>
       + 
       ++#if defined(__OpenBSD__)
       ++#include <sys/videoio.h>
       ++#else
       + #include <linux/videodev2.h>
       ++#endif
       + #include <libv4l2.h>
       + 
       + #include "v4l2-controls.h"
   DIR diff --git a/multimedia/obs-studio/patches/patch-plugins_linux-v4l2_v4l2-helpers_h b/multimedia/obs-studio/patches/patch-plugins_linux-v4l2_v4l2-helpers_h
       @@ -0,0 +1,17 @@
       +$OpenBSD$
       +
       +Index: plugins/linux-v4l2/v4l2-helpers.h
       +--- plugins/linux-v4l2/v4l2-helpers.h.orig
       ++++ plugins/linux-v4l2/v4l2-helpers.h
       +@@ -17,7 +17,11 @@ along with this program.  If not, see <http://www.gnu.
       + 
       + #pragma once
       + 
       ++#if defined(__OpenBSD__)
       ++#include <sys/videoio.h>
       ++#else
       + #include <linux/videodev2.h>
       ++#endif
       + #include <libv4l2.h>
       + 
       + #include <obs-module.h>
   DIR diff --git a/multimedia/obs-studio/patches/patch-plugins_linux-v4l2_v4l2-input_c b/multimedia/obs-studio/patches/patch-plugins_linux-v4l2_v4l2-input_c
       @@ -0,0 +1,17 @@
       +$OpenBSD$
       +
       +Index: plugins/linux-v4l2/v4l2-input.c
       +--- plugins/linux-v4l2/v4l2-input.c.orig
       ++++ plugins/linux-v4l2/v4l2-input.c
       +@@ -26,7 +26,11 @@ along with this program.  If not, see <http://www.gnu.
       + #include <sys/ioctl.h>
       + #include <sys/select.h>
       + 
       ++#if defined(__OpenBSD__)
       ++#include <sys/videoio.h>
       ++#else
       + #include <linux/videodev2.h>
       ++#endif
       + #include <libv4l2.h>
       + 
       + #include <util/threading.h>