* My OpenBSD ports
       
   URI git clone git://git.codevoid.de/mystuff.git
   DIR Log
   DIR Files
   DIR Refs
       ---
   DIR commit 682c53b6356f3da590cc60d0815621062a075f3e
   DIR parent 1c56bed47a7367d6d25e1598408926416b1942d9
   URI Author: c0dev0id <sh+github[at]codevoid[dot]de>
       Date:   Mon,  7 Dec 2020 11:58:10 +0100
       
       obs-studio: Try freebsd ifdefs for v4l2
       
       Diffstat:
         M multimedia/obs-studio/patches/patc… |       4 ++--
         M multimedia/obs-studio/patches/patc… |      18 ++++++++++++++++++
         M multimedia/obs-studio/pkg/PLIST     |       2 +-
       
       3 files changed, 21 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/multimedia/obs-studio/patches/patch-UI_obs-app_cpp b/multimedia/obs-studio/patches/patch-UI_obs-app_cpp
       @@ -3,8 +3,8 @@ $OpenBSD$
        Index: UI/obs-app.cpp
        --- UI/obs-app.cpp.orig
        +++ UI/obs-app.cpp
       -@@ -1435,6 +1435,8 @@ string OBSApp::GetVersionString() const
       -         ver << "mac)";
       +@@ -1448,6 +1448,8 @@ string OBSApp::GetVersionString() const
       +         ver << "openbsd)";
         #elif __FreeBSD__
                 ver << "freebsd)";
        +#elif __OpenBSD__
   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
       @@ -15,3 +15,21 @@ Index: plugins/linux-v4l2/v4l2-input.c
         #include <libv4l2.h>
         
         #include <util/threading.h>
       +@@ -275,7 +279,7 @@ static void v4l2_device_list(obs_property_t *prop, obs
       +         size_t cur_device_index;
       +         const char *cur_device_name;
       + 
       +-#ifdef __FreeBSD__
       ++#ifdef __FreeBSD__ || __OpenBSD__
       +         dirp = opendir("/dev");
       + #else
       +         dirp = opendir("/sys/class/video4linux");
       +@@ -295,7 +299,7 @@ static void v4l2_device_list(obs_property_t *prop, obs
       +                 uint32_t caps;
       +                 struct v4l2_capability video_cap;
       + 
       +-#ifdef __FreeBSD__
       ++#ifdef __FreeBSD__ || __OpenBSD__
       +                 if (strstr(dp->d_name, "video") == NULL)
       +                         continue;
       + #endif
   DIR diff --git a/multimedia/obs-studio/pkg/PLIST b/multimedia/obs-studio/pkg/PLIST
       @@ -1106,5 +1106,5 @@ share/obs/obs-studio/themes/Rachni/sizegrip.png
        share/obs/obs-studio/themes/Rachni/up_arrow.png
        share/obs/obs-studio/themes/Rachni/up_arrow_disabled.png
        share/obs/obs-studio/themes/System.qss
       -@tag gtk-update-icon-cache %D/share/icons/hicolor
        @tag update-desktop-database
       +@tag gtk-update-icon-cache %D/share/icons/hicolor