multimedia/simplescreenrecorder: Update to 0.3.10.2

Port changes:
* Disable OpenGL recording, it's broken on BSD
* Remove patches that have been applied upstream

Reported by:	portscout
This commit is contained in:
Yuri Victorovich 2018-03-18 17:54:30 +00:00
parent 8c951d8756
commit 3d76e9610a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=464942
5 changed files with 8 additions and 57 deletions

View File

@ -1,7 +1,8 @@
# $FreeBSD$
PORTNAME= simplescreenrecorder
DISTVERSION= 0.3.9
DISTVERSION= 0.3.10-2
DISTVERSIONSUFFIX= -g7439813
CATEGORIES= multimedia
MAINTAINER= yuri@FreeBSD.org
@ -22,11 +23,14 @@ USE_XORG= x11 xext xfixes xi
CMAKE_ON= WITH_QT5
CMAKE_OFF= WITH_GLINJECT # doesn't yet work on FreeBSD: https://github.com/MaartenBaert/ssr/issues/586#issuecomment-343780107
CMAKE_OFF+= WITH_OPENGL_RECORDING # extra option requiried when GLInject is off, because this makes OpenGL recording dysfunctional
OPTIONS_DEFINE= PULSEAUDIO JACK
OPTIONS_DEFAULT= PULSEAUDIO
PULSEAUDIO_CMAKE_BOOL= WITH_PULSEAUDIO
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
JACK_CMAKE_BOOL= WITH_JACK
JACK_LIB_DEPENDS= libjack.so:audio/jack

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1515280704
SHA256 (MaartenBaert-ssr-0.3.9_GH0.tar.gz) = f3820eadaf9ecfe9aaf0940bf868cedd828c6e75b6a860195ecc091c174fcebe
SIZE (MaartenBaert-ssr-0.3.9_GH0.tar.gz) = 1816221
TIMESTAMP = 1521394201
SHA256 (MaartenBaert-ssr-0.3.10-2-g7439813_GH0.tar.gz) = 202f55ea48920e97cd7280020d76e00e0a9f60f553429061372b0523a748fde0
SIZE (MaartenBaert-ssr-0.3.10-2-g7439813_GH0.tar.gz) = 1823829

View File

@ -1,31 +0,0 @@
--- CMakeLists.txt.orig 2017-12-11 00:15:36 UTC
+++ CMakeLists.txt
@@ -6,7 +6,11 @@ set(CMAKE_CXX_STANDARD 11)
project(simplescreenrecorder VERSION 0.3.9)
option(ENABLE_32BIT_GLINJECT "Build the 32-bit version of 'libssr-glinject' on 64-bit systems (in addition to the 64-bit version). Required for OpenGL recording of 32-bit applications on 64-bit systems." FALSE)
-option(ENABLE_X86_ASM "Allow x86/x64 assembly or intrinsics." TRUE)
+if (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|i386|i686")
+ option(ENABLE_X86_ASM "Allow x86/x64 assembly or intrinsics." TRUE)
+else (CMAKE_SYSTEM_PROCESSOR)
+ option(ENABLE_X86_ASM "Allow x86/x64 assembly or intrinsics." FALSE)
+endif (CMAKE_SYSTEM_PROCESSOR MATCHES)
option(ENABLE_FFMPEG_VERSIONS "Use FFmpeg version numbers for feature support tests. Enable when using FFmpeg, disable when using Libav." TRUE)
option(WITH_PULSEAUDIO "Build with PulseAudio support." TRUE)
option(WITH_JACK "Build with JACK support." TRUE)
@@ -57,11 +61,13 @@ if(WITH_SIMPLESCREENRECORDER)
add_subdirectory(src/translations)
# the 'ssr-glinject' script is installed together with the main SSR executable to avoid problems with multiarch packages
- install(
+ if (WITH_GLINJECT)
+ install(
FILES scripts/ssr-glinject
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
- )
+ )
+ endif (WITH_GLINJECT)
install(
DIRECTORY data/output-profiles
DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/simplescreenrecorder

View File

@ -1,11 +0,0 @@
--- glinject/CMakeLists.txt.orig 2017-12-11 00:15:36 UTC
+++ glinject/CMakeLists.txt
@@ -30,7 +30,7 @@ set(link_libraries
${X11_Xfixes_LIB}
${OPENGL_LIBRARIES}
-lrt
- -ldl
+ ${CMAKE_DL_LIBS}
)
add_library(ssr-glinject SHARED ${sources})

View File

@ -1,11 +0,0 @@
--- glinject/Hook.cpp.orig 2017-12-11 00:15:36 UTC
+++ glinject/Hook.cpp
@@ -15,6 +15,8 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE
#include <GL/glx.h>
#include <X11/X.h>
+extern char **environ;
+
typedef void (*GLXextFuncPtr)(void);
void InitGLInject();