* My OpenBSD ports
       
   URI git clone git://git.codevoid.de/mystuff.git
   DIR Log
   DIR Files
   DIR Refs
       ---
   DIR commit 3a592cd5d998e8c1c2b1b90267b8694e7f50b291
   DIR parent 046bd62f31c5140eea5dff75a65002404b74ed0a
   URI Author: Charlie Root <root@puffy.hagen.corp>
       Date:   Sun,  4 Oct 2020 14:18:56 +0200
       
       obs-studio: screencapture works
       
       Diffstat:
         M multimedia/obs-studio/Makefile      |      14 ++++++++------
         A multimedia/obs-studio/patches/patc… |      14 ++++++++++++++
         A multimedia/obs-studio/patches/patc… |      14 ++++++++++++++
         A multimedia/obs-studio/patches/patc… |      18 ++++++++++++++++++
         M multimedia/obs-studio/pkg/PLIST     |     202 +++++++++++++++++++++++++++++++
       
       5 files changed, 256 insertions(+), 6 deletions(-)
       ---
   DIR diff --git a/multimedia/obs-studio/Makefile b/multimedia/obs-studio/Makefile
       @@ -17,20 +17,22 @@ PERMIT_PACKAGE =        Yes
        SHARED_LIBS +=        obs-frontend-api        0.0 # 0.0
        SHARED_LIBS +=        obs-opengl                0.0 # 0.0
        
       -WANTLIB +=        ${COMPILER_LIBCXX} GL ICE Qt5Core Qt5Gui Qt5Widgets
       -WANTLIB +=        Qt5Xml SM X11 X11-xcb Xext c dbus-1 fontconfig freetype
       -WANTLIB +=        m xcb xcb-xinput z ${MODPY_WANTLIB}
       -
        MODULES =        devel/cmake \
                        lang/python \
                        x11/qt5
        
       +WANTLIB +=        ${COMPILER_LIBCXX} GL ICE Qt5Core Qt5Gui Qt5Widgets
       +WANTLIB +=        Qt5Xml SM X11 X11-xcb Xext c dbus-1 fontconfig freetype
       +WANTLIB +=        m xcb xcb-xinput z ${MODPY_WANTLIB}
       +
        RUN_DEPENDS =        devel/desktop-file-utils \
                        x11/gtk+3,-guic
        
       -BUILD_DEPENDS =        devel/swig \
       +BUILD_DEPENDS =        audio/fdk-aac \
       +                devel/swig \
                        devel/ninja \
       -                audio/fdk-aac \
       +                graphics/ffmpeg \
       +                multimedia/x264 \
                        x11/xcb
        
        
   DIR diff --git a/multimedia/obs-studio/patches/patch-UI_obs-app_cpp b/multimedia/obs-studio/patches/patch-UI_obs-app_cpp
       @@ -0,0 +1,14 @@
       +$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)";
       + #elif __FreeBSD__
       +         ver << "freebsd)";
       ++#elif __OpenBSD__
       ++        ver << "openbsd)";
       + #else /* assume linux for the time being */
       +         ver << "linux)";
       + #endif
   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
       @@ -0,0 +1,14 @@
       +$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
       @@ -0,0 +1,18 @@
       +$OpenBSD$
       +
       +Index: plugins/CMakeLists.txt
       +--- plugins/CMakeLists.txt.orig
       ++++ plugins/CMakeLists.txt
       +@@ -49,6 +49,12 @@ elseif("${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD")
       +         add_subdirectory(linux-alsa)
       +         add_subdirectory(vlc-video)
       +         add_subdirectory(oss-audio)
       ++elseif("${CMAKE_SYSTEM_NAME}" MATCHES "OpenBSD")
       ++        add_subdirectory(linux-capture)
       ++        add_subdirectory(linux-pulseaudio)
       ++        add_subdirectory(linux-jack)
       ++        add_subdirectory(linux-alsa)
       ++        add_subdirectory(vlc-video)
       + endif()
       + 
       + option(BUILD_BROWSER "Build browser plugin" OFF)
   DIR diff --git a/multimedia/obs-studio/pkg/PLIST b/multimedia/obs-studio/pkg/PLIST
       @@ -109,6 +109,9 @@ lib/obs-plugins/
        @so lib/obs-plugins/decklink-ouput-ui.so
        @so lib/obs-plugins/frontend-tools.so
        @so lib/obs-plugins/image-source.so
       +@so lib/obs-plugins/linux-capture.so
       +@so lib/obs-plugins/linux-jack.so
       +@so lib/obs-plugins/linux-pulseaudio.so
        @so lib/obs-plugins/obs-ffmpeg.so
        @so lib/obs-plugins/obs-filters.so
        @so lib/obs-plugins/obs-libfdk.so
       @@ -117,6 +120,7 @@ lib/obs-plugins/
        @so lib/obs-plugins/obs-x264.so
        @so lib/obs-plugins/rtmp-services.so
        @so lib/obs-plugins/text-freetype2.so
       +@so lib/obs-plugins/vlc-video.so
        lib/obs-scripting/
        @so lib/obs-scripting/obslua.so
        lib/pkgconfig/libobs.pc
       @@ -269,6 +273,154 @@ share/obs/obs-plugins/image-source/locale/uk-UA.ini
        share/obs/obs-plugins/image-source/locale/vi-VN.ini
        share/obs/obs-plugins/image-source/locale/zh-CN.ini
        share/obs/obs-plugins/image-source/locale/zh-TW.ini
       +share/obs/obs-plugins/linux-capture/
       +share/obs/obs-plugins/linux-capture/locale/
       +share/obs/obs-plugins/linux-capture/locale/ar-SA.ini
       +share/obs/obs-plugins/linux-capture/locale/az-AZ.ini
       +share/obs/obs-plugins/linux-capture/locale/ba-RU.ini
       +share/obs/obs-plugins/linux-capture/locale/bg-BG.ini
       +share/obs/obs-plugins/linux-capture/locale/bn-BD.ini
       +share/obs/obs-plugins/linux-capture/locale/ca-ES.ini
       +share/obs/obs-plugins/linux-capture/locale/cs-CZ.ini
       +share/obs/obs-plugins/linux-capture/locale/da-DK.ini
       +share/obs/obs-plugins/linux-capture/locale/de-DE.ini
       +share/obs/obs-plugins/linux-capture/locale/el-GR.ini
       +share/obs/obs-plugins/linux-capture/locale/en-GB.ini
       +share/obs/obs-plugins/linux-capture/locale/en-US.ini
       +share/obs/obs-plugins/linux-capture/locale/es-ES.ini
       +share/obs/obs-plugins/linux-capture/locale/et-EE.ini
       +share/obs/obs-plugins/linux-capture/locale/eu-ES.ini
       +share/obs/obs-plugins/linux-capture/locale/fa-IR.ini
       +share/obs/obs-plugins/linux-capture/locale/fi-FI.ini
       +share/obs/obs-plugins/linux-capture/locale/fil-PH.ini
       +share/obs/obs-plugins/linux-capture/locale/fr-FR.ini
       +share/obs/obs-plugins/linux-capture/locale/gd-GB.ini
       +share/obs/obs-plugins/linux-capture/locale/gl-ES.ini
       +share/obs/obs-plugins/linux-capture/locale/he-IL.ini
       +share/obs/obs-plugins/linux-capture/locale/hi-IN.ini
       +share/obs/obs-plugins/linux-capture/locale/hr-HR.ini
       +share/obs/obs-plugins/linux-capture/locale/hu-HU.ini
       +share/obs/obs-plugins/linux-capture/locale/id-ID.ini
       +share/obs/obs-plugins/linux-capture/locale/it-IT.ini
       +share/obs/obs-plugins/linux-capture/locale/ja-JP.ini
       +share/obs/obs-plugins/linux-capture/locale/ka-GE.ini
       +share/obs/obs-plugins/linux-capture/locale/ko-KR.ini
       +share/obs/obs-plugins/linux-capture/locale/nb-NO.ini
       +share/obs/obs-plugins/linux-capture/locale/nl-NL.ini
       +share/obs/obs-plugins/linux-capture/locale/pl-PL.ini
       +share/obs/obs-plugins/linux-capture/locale/pt-BR.ini
       +share/obs/obs-plugins/linux-capture/locale/pt-PT.ini
       +share/obs/obs-plugins/linux-capture/locale/ro-RO.ini
       +share/obs/obs-plugins/linux-capture/locale/ru-RU.ini
       +share/obs/obs-plugins/linux-capture/locale/sk-SK.ini
       +share/obs/obs-plugins/linux-capture/locale/sl-SI.ini
       +share/obs/obs-plugins/linux-capture/locale/sr-CS.ini
       +share/obs/obs-plugins/linux-capture/locale/sr-SP.ini
       +share/obs/obs-plugins/linux-capture/locale/sv-SE.ini
       +share/obs/obs-plugins/linux-capture/locale/ta-IN.ini
       +share/obs/obs-plugins/linux-capture/locale/tl-PH.ini
       +share/obs/obs-plugins/linux-capture/locale/tr-TR.ini
       +share/obs/obs-plugins/linux-capture/locale/uk-UA.ini
       +share/obs/obs-plugins/linux-capture/locale/vi-VN.ini
       +share/obs/obs-plugins/linux-capture/locale/zh-CN.ini
       +share/obs/obs-plugins/linux-capture/locale/zh-TW.ini
       +share/obs/obs-plugins/linux-jack/
       +share/obs/obs-plugins/linux-jack/locale/
       +share/obs/obs-plugins/linux-jack/locale/ar-SA.ini
       +share/obs/obs-plugins/linux-jack/locale/ba-RU.ini
       +share/obs/obs-plugins/linux-jack/locale/bg-BG.ini
       +share/obs/obs-plugins/linux-jack/locale/bn-BD.ini
       +share/obs/obs-plugins/linux-jack/locale/ca-ES.ini
       +share/obs/obs-plugins/linux-jack/locale/cs-CZ.ini
       +share/obs/obs-plugins/linux-jack/locale/da-DK.ini
       +share/obs/obs-plugins/linux-jack/locale/de-DE.ini
       +share/obs/obs-plugins/linux-jack/locale/el-GR.ini
       +share/obs/obs-plugins/linux-jack/locale/en-GB.ini
       +share/obs/obs-plugins/linux-jack/locale/en-US.ini
       +share/obs/obs-plugins/linux-jack/locale/es-ES.ini
       +share/obs/obs-plugins/linux-jack/locale/et-EE.ini
       +share/obs/obs-plugins/linux-jack/locale/eu-ES.ini
       +share/obs/obs-plugins/linux-jack/locale/fa-IR.ini
       +share/obs/obs-plugins/linux-jack/locale/fi-FI.ini
       +share/obs/obs-plugins/linux-jack/locale/fil-PH.ini
       +share/obs/obs-plugins/linux-jack/locale/fr-FR.ini
       +share/obs/obs-plugins/linux-jack/locale/gl-ES.ini
       +share/obs/obs-plugins/linux-jack/locale/he-IL.ini
       +share/obs/obs-plugins/linux-jack/locale/hr-HR.ini
       +share/obs/obs-plugins/linux-jack/locale/hu-HU.ini
       +share/obs/obs-plugins/linux-jack/locale/id-ID.ini
       +share/obs/obs-plugins/linux-jack/locale/it-IT.ini
       +share/obs/obs-plugins/linux-jack/locale/ja-JP.ini
       +share/obs/obs-plugins/linux-jack/locale/ka-GE.ini
       +share/obs/obs-plugins/linux-jack/locale/ko-KR.ini
       +share/obs/obs-plugins/linux-jack/locale/nb-NO.ini
       +share/obs/obs-plugins/linux-jack/locale/nl-NL.ini
       +share/obs/obs-plugins/linux-jack/locale/pl-PL.ini
       +share/obs/obs-plugins/linux-jack/locale/pt-BR.ini
       +share/obs/obs-plugins/linux-jack/locale/pt-PT.ini
       +share/obs/obs-plugins/linux-jack/locale/ro-RO.ini
       +share/obs/obs-plugins/linux-jack/locale/ru-RU.ini
       +share/obs/obs-plugins/linux-jack/locale/sk-SK.ini
       +share/obs/obs-plugins/linux-jack/locale/sl-SI.ini
       +share/obs/obs-plugins/linux-jack/locale/sr-CS.ini
       +share/obs/obs-plugins/linux-jack/locale/sr-SP.ini
       +share/obs/obs-plugins/linux-jack/locale/sv-SE.ini
       +share/obs/obs-plugins/linux-jack/locale/tr-TR.ini
       +share/obs/obs-plugins/linux-jack/locale/uk-UA.ini
       +share/obs/obs-plugins/linux-jack/locale/ur-PK.ini
       +share/obs/obs-plugins/linux-jack/locale/vi-VN.ini
       +share/obs/obs-plugins/linux-jack/locale/zh-CN.ini
       +share/obs/obs-plugins/linux-jack/locale/zh-TW.ini
       +share/obs/obs-plugins/linux-pulseaudio/
       +share/obs/obs-plugins/linux-pulseaudio/locale/
       +share/obs/obs-plugins/linux-pulseaudio/locale/ar-SA.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/ba-RU.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/bg-BG.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/bn-BD.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/ca-ES.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/cs-CZ.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/da-DK.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/de-DE.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/el-GR.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/en-GB.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/en-US.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/es-ES.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/et-EE.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/eu-ES.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/fa-IR.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/fi-FI.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/fil-PH.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/fr-FR.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/gd-GB.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/gl-ES.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/he-IL.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/hi-IN.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/hr-HR.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/hu-HU.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/id-ID.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/it-IT.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/ja-JP.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/ka-GE.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/ko-KR.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/nb-NO.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/nl-NL.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/pl-PL.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/pt-BR.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/pt-PT.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/ro-RO.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/ru-RU.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/sk-SK.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/sl-SI.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/sr-CS.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/sr-SP.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/sv-SE.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/ta-IN.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/th-TH.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/tr-TR.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/uk-UA.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/vi-VN.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/zh-CN.ini
       +share/obs/obs-plugins/linux-pulseaudio/locale/zh-TW.ini
        share/obs/obs-plugins/obs-ffmpeg/
        share/obs/obs-plugins/obs-ffmpeg/locale/
        share/obs/obs-plugins/obs-ffmpeg/locale/ar-SA.ini
       @@ -748,6 +900,56 @@ share/obs/obs-plugins/text-freetype2/locale/vi-VN.ini
        share/obs/obs-plugins/text-freetype2/locale/zh-CN.ini
        share/obs/obs-plugins/text-freetype2/locale/zh-TW.ini
        share/obs/obs-plugins/text-freetype2/text_default.effect
       +share/obs/obs-plugins/vlc-video/
       +share/obs/obs-plugins/vlc-video/locale/
       +share/obs/obs-plugins/vlc-video/locale/ar-SA.ini
       +share/obs/obs-plugins/vlc-video/locale/ba-RU.ini
       +share/obs/obs-plugins/vlc-video/locale/bg-BG.ini
       +share/obs/obs-plugins/vlc-video/locale/bn-BD.ini
       +share/obs/obs-plugins/vlc-video/locale/ca-ES.ini
       +share/obs/obs-plugins/vlc-video/locale/cs-CZ.ini
       +share/obs/obs-plugins/vlc-video/locale/da-DK.ini
       +share/obs/obs-plugins/vlc-video/locale/de-DE.ini
       +share/obs/obs-plugins/vlc-video/locale/el-GR.ini
       +share/obs/obs-plugins/vlc-video/locale/en-GB.ini
       +share/obs/obs-plugins/vlc-video/locale/en-US.ini
       +share/obs/obs-plugins/vlc-video/locale/es-ES.ini
       +share/obs/obs-plugins/vlc-video/locale/et-EE.ini
       +share/obs/obs-plugins/vlc-video/locale/eu-ES.ini
       +share/obs/obs-plugins/vlc-video/locale/fa-IR.ini
       +share/obs/obs-plugins/vlc-video/locale/fi-FI.ini
       +share/obs/obs-plugins/vlc-video/locale/fil-PH.ini
       +share/obs/obs-plugins/vlc-video/locale/fr-FR.ini
       +share/obs/obs-plugins/vlc-video/locale/gd-GB.ini
       +share/obs/obs-plugins/vlc-video/locale/gl-ES.ini
       +share/obs/obs-plugins/vlc-video/locale/he-IL.ini
       +share/obs/obs-plugins/vlc-video/locale/hr-HR.ini
       +share/obs/obs-plugins/vlc-video/locale/hu-HU.ini
       +share/obs/obs-plugins/vlc-video/locale/id-ID.ini
       +share/obs/obs-plugins/vlc-video/locale/it-IT.ini
       +share/obs/obs-plugins/vlc-video/locale/ja-JP.ini
       +share/obs/obs-plugins/vlc-video/locale/ka-GE.ini
       +share/obs/obs-plugins/vlc-video/locale/ko-KR.ini
       +share/obs/obs-plugins/vlc-video/locale/lt-LT.ini
       +share/obs/obs-plugins/vlc-video/locale/nb-NO.ini
       +share/obs/obs-plugins/vlc-video/locale/nl-NL.ini
       +share/obs/obs-plugins/vlc-video/locale/pl-PL.ini
       +share/obs/obs-plugins/vlc-video/locale/pt-BR.ini
       +share/obs/obs-plugins/vlc-video/locale/pt-PT.ini
       +share/obs/obs-plugins/vlc-video/locale/ro-RO.ini
       +share/obs/obs-plugins/vlc-video/locale/ru-RU.ini
       +share/obs/obs-plugins/vlc-video/locale/sk-SK.ini
       +share/obs/obs-plugins/vlc-video/locale/sl-SI.ini
       +share/obs/obs-plugins/vlc-video/locale/sr-CS.ini
       +share/obs/obs-plugins/vlc-video/locale/sr-SP.ini
       +share/obs/obs-plugins/vlc-video/locale/sv-SE.ini
       +share/obs/obs-plugins/vlc-video/locale/ta-IN.ini
       +share/obs/obs-plugins/vlc-video/locale/tl-PH.ini
       +share/obs/obs-plugins/vlc-video/locale/tr-TR.ini
       +share/obs/obs-plugins/vlc-video/locale/uk-UA.ini
       +share/obs/obs-plugins/vlc-video/locale/vi-VN.ini
       +share/obs/obs-plugins/vlc-video/locale/zh-CN.ini
       +share/obs/obs-plugins/vlc-video/locale/zh-TW.ini
        share/obs/obs-studio/
        share/obs/obs-studio/authors/
        share/obs/obs-studio/authors/AUTHORS