all the things
This commit is contained in:
14
multimedia/obs-studio/patches/patch-UI_obs-app_cpp
Normal file
14
multimedia/obs-studio/patches/patch-UI_obs-app_cpp
Normal file
@@ -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
|
||||
@@ -0,0 +1,14 @@
|
||||
$OpenBSD$
|
||||
|
||||
Index: libobs/graphics/graphics.h
|
||||
--- libobs/graphics/graphics.h.orig
|
||||
+++ libobs/graphics/graphics.h
|
||||
@@ -474,7 +474,7 @@ struct gs_window {
|
||||
void *hwnd;
|
||||
#elif defined(__APPLE__)
|
||||
__unsafe_unretained id view;
|
||||
-#elif defined(__linux__) || defined(__FreeBSD__)
|
||||
+#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
/* I'm not sure how portable defining id to uint32_t is. */
|
||||
uint32_t id;
|
||||
void *display;
|
||||
32
multimedia/obs-studio/patches/patch-libobs_obs-nix_c
Normal file
32
multimedia/obs-studio/patches/patch-libobs_obs-nix_c
Normal file
@@ -0,0 +1,32 @@
|
||||
$OpenBSD$
|
||||
|
||||
Index: libobs/obs-nix.c
|
||||
--- libobs/obs-nix.c.orig
|
||||
+++ libobs/obs-nix.c
|
||||
@@ -26,7 +26,9 @@
|
||||
#if defined(__FreeBSD__)
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
+#ifndef __OpenBSD__
|
||||
#include <sys/sysinfo.h>
|
||||
+#endif
|
||||
#include <sys/utsname.h>
|
||||
#include <xcb/xcb.h>
|
||||
#if USE_XINPUT
|
||||
@@ -218,6 +220,8 @@ static void log_processor_info(void)
|
||||
|
||||
static void log_memory_info(void)
|
||||
{
|
||||
+#if defined(__OpenBSD__)
|
||||
+#else
|
||||
struct sysinfo info;
|
||||
if (sysinfo(&info) < 0)
|
||||
return;
|
||||
@@ -227,6 +231,7 @@ static void log_memory_info(void)
|
||||
(uint64_t)info.totalram * info.mem_unit / 1024 / 1024,
|
||||
((uint64_t)info.freeram + (uint64_t)info.bufferram) *
|
||||
info.mem_unit / 1024 / 1024);
|
||||
+#endif
|
||||
}
|
||||
|
||||
static void log_kernel_version(void)
|
||||
14
multimedia/obs-studio/patches/patch-libobs_util_profiler_c
Normal file
14
multimedia/obs-studio/patches/patch-libobs_util_profiler_c
Normal file
@@ -0,0 +1,14 @@
|
||||
$OpenBSD$
|
||||
|
||||
Index: libobs/util/profiler.c
|
||||
--- libobs/util/profiler.c.orig
|
||||
+++ libobs/util/profiler.c
|
||||
@@ -1058,7 +1058,7 @@ bool profiler_snapshot_dump_csv_gz(const profiler_snap
|
||||
|
||||
profiler_snapshot_dump(snap, dump_csv_gzwrite, gz);
|
||||
|
||||
- gzclose_w(gz);
|
||||
+ gzclose(gz);
|
||||
return true;
|
||||
}
|
||||
|
||||
18
multimedia/obs-studio/patches/patch-plugins_CMakeLists_txt
Normal file
18
multimedia/obs-studio/patches/patch-plugins_CMakeLists_txt
Normal file
@@ -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-v4l2)
|
||||
+ add_subdirectory(linux-jack)
|
||||
+ add_subdirectory(vlc-video)
|
||||
endif()
|
||||
|
||||
option(BUILD_BROWSER "Build browser plugin" OFF)
|
||||
@@ -0,0 +1,14 @@
|
||||
$OpenBSD$
|
||||
|
||||
Index: plugins/obs-outputs/librtmp/rtmp.c
|
||||
--- plugins/obs-outputs/librtmp/rtmp.c.orig
|
||||
+++ plugins/obs-outputs/librtmp/rtmp.c
|
||||
@@ -812,7 +812,7 @@ add_addr_info(struct sockaddr_storage *service, sockle
|
||||
// since we're handling multiple addresses internally, fake the correct error response
|
||||
#ifdef _WIN32
|
||||
*socket_error = WSANO_DATA;
|
||||
-#elif __FreeBSD__
|
||||
+#elif __FreeBSD__ || __OpenBSD__
|
||||
*socket_error = ENOATTR;
|
||||
#else
|
||||
*socket_error = ENODATA;
|
||||
Reference in New Issue
Block a user