all the things

This commit is contained in:
c0dev0id
2023-01-10 11:45:28 +01:00
parent f3db1ea486
commit 7a9bbf0168
143 changed files with 15515 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
# $OpenBSD: Makefile,v 1.19 2020/01/24 10:36:41 sthen Exp $
COMMENT = open broadcasting software
GH_PROJECT = obs-studio
GH_ACCOUNT = obsproject
GH_TAGNAME = 26.0.0
CATEGORIES = multimedia
HOMEPAGE = https://obsproject.com
MAINTAINER = Stefan Hagen <sh+ports@codevoid.de>
# GPLv3+
PERMIT_PACKAGE = Yes
SHARED_LIBS += obs-frontend-api 0.0 # 0.0
SHARED_LIBS += obs-opengl 0.0 # 0.0
MODULES = devel/cmake \
lang/python \
x11/qt5
WANTLIB += Xcomposite Xfixes xcb-randr xcb-shm xcb-xfixes xcb-xinerama
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 = audio/fdk-aac \
devel/jansson \
devel/ninja \
devel/swig \
graphics/ffmpeg \
lang/luajit \
multimedia/x264 \
x11/vlc \
x11/xcb
.include <bsd.port.mk>

View File

@@ -0,0 +1,2 @@
SHA256 (obs-studio-26.0.0.tar.gz) = dJXwgbT2rfQnQmh8G7eTj8szej3iPNJ0A3jpg5KSW3Q=
SIZE (obs-studio-26.0.0.tar.gz) = 10326769

View 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

View File

@@ -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;

View 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)

View 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;
}

View 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)

View File

@@ -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;

View File

@@ -0,0 +1,3 @@
OBS is a free and open source software for video recording and live
streaming.

File diff suppressed because it is too large Load Diff