Index: head/multimedia/obs-studio/Makefile =================================================================== --- head/multimedia/obs-studio/Makefile (revision 530453) +++ head/multimedia/obs-studio/Makefile (revision 530454) @@ -1,62 +1,63 @@ # $FreeBSD$ PORTNAME= obs-studio DISTVERSION= 25.0.1 +PORTREVISION= 1 CATEGORIES= multimedia MAINTAINER= yuri@FreeBSD.org COMMENT= Open source streaming/recording software LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_aarch64= Fails to compile: invalid conversion between vector type and integer type BUILD_DEPENDS= v4l_compat>=0:multimedia/v4l_compat \ swig3.0:devel/swig30 LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \ libcurl.so:ftp/curl \ libdbus-1.so:devel/dbus \ libfdk-aac.so:audio/fdk-aac \ libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libjack.so:audio/jack \ libjansson.so:devel/jansson \ libmbedtls.so:security/mbedtls \ libpulse.so:audio/pulseaudio \ libspeexdsp.so:audio/speexdsp \ libsysinfo.so:devel/libsysinfo \ libudev.so:devel/libudev-devd \ libv4l2.so:multimedia/libv4l \ libx264.so:multimedia/libx264 \ ${LIB_DEPENDS_${ARCH}} LIB_DEPENDS_amd64= libluajit-5.1.so:lang/luajit LIB_DEPENDS_armv7= libluajit-5.1.so:lang/luajit LIB_DEPENDS_i386= libluajit-5.1.so:lang/luajit LIB_DEPENDS_powerpc= libluajit-5.1.so:lang/luajit USES= cmake compiler:c++11-lib gl lua pkgconfig python:3.4+ qt:5 xorg USE_GITHUB= yes GH_ACCOUNT= obsproject USE_QT= core gui svg widgets x11extras xml buildtools_build imageformats_run qmake_build USE_GL= gl USE_XORG= ice sm x11 xcb xcomposite xext xfixes xinerama xrandr USE_LDCONFIG= yes CMAKE_ARGS= -DUNIX_STRUCTURE:BOOL=ON \ -DOBS_VERSION_OVERRIDE:STRING="${PORTVERSION}" CFLAGS+= -D_WITH_GETLINE .include .if ${ARCH} != amd64 && ${ARCH} != armv7 && ${ARCH} != i386 && ${ARCH} != powerpc PLIST_SUB+= LUAJIT="@comment " .else PLIST_SUB+= LUAJIT="" .endif post-patch: @${REINPLACE_CMD} -e 's| 3.4)| ${PYTHON_VER})|' \ ${WRKSRC}/cmake/Modules/FindPythonDeps.cmake .include Index: head/multimedia/obs-studio/files/patch-UI_window-basic-main.cpp =================================================================== --- head/multimedia/obs-studio/files/patch-UI_window-basic-main.cpp (revision 530453) +++ head/multimedia/obs-studio/files/patch-UI_window-basic-main.cpp (revision 530454) @@ -1,13 +1,13 @@ ---- UI/window-basic-main.cpp.orig 2017-10-25 18:45:20 UTC +--- UI/window-basic-main.cpp.orig 2020-03-19 16:51:06 UTC +++ UI/window-basic-main.cpp -@@ -2461,6 +2461,10 @@ void OBSBasic::TimedCheckForUpdates() +@@ -3207,6 +3207,10 @@ void OBSBasic::TimedCheckForUpdates() void OBSBasic::CheckForUpdates(bool manualUpdate) { +#ifdef __FreeBSD__ + // Update check seg faults on FreeBSD + return; +#endif #ifdef UPDATE_SPARKLE trigger_sparkle_update(); - #elif ENABLE_WIN_UPDATER + #elif _WIN32 Index: head/multimedia/obs-studio/files/patch-libobs_util_platform-nix.c =================================================================== --- head/multimedia/obs-studio/files/patch-libobs_util_platform-nix.c (revision 530453) +++ head/multimedia/obs-studio/files/patch-libobs_util_platform-nix.c (revision 530454) @@ -1,10 +1,22 @@ ---- libobs/util/platform-nix.c.orig 2017-10-29 09:19:47 UTC +--- libobs/util/platform-nix.c.orig 2020-03-19 16:51:06 UTC +++ libobs/util/platform-nix.c -@@ -38,6 +38,7 @@ - #include +@@ -40,6 +40,7 @@ #include + #include #include +#include #include #include #else +@@ -275,7 +276,11 @@ 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(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) ++ ssize_t count = readlink("/proc/curproc/file", exe, PATH_MAX); ++#else + ssize_t count = readlink("/proc/self/exe", exe, PATH_MAX); ++#endif + const char *path_out = NULL; + struct dstr path; +