Index: multimedia/Makefile =================================================================== --- multimedia/Makefile +++ multimedia/Makefile @@ -373,6 +373,7 @@ SUBDIR += sabbu SUBDIR += schroedinger SUBDIR += shotcut + SUBDIR += simplescreenrecorder SUBDIR += smpeg SUBDIR += smpeg2 SUBDIR += smplayer Index: multimedia/simplescreenrecorder/Makefile =================================================================== --- multimedia/simplescreenrecorder/Makefile +++ multimedia/simplescreenrecorder/Makefile @@ -0,0 +1,45 @@ +# $FreeBSD$ + +PORTNAME= simplescreenrecorder +DISTVERSION= 0.3.8 +CATEGORIES= multimedia + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Screen video recorder + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libavformat.so:multimedia/ffmpeg \ + libasound.so:audio/alsa-lib + +OPTIONS_GROUP= AUDIOPLUGINS +OPTIONS_GROUP_AUDIOPLUGINS= PULSEAUDIO JACK +OPTIONS_DEFAULT= PULSEAUDIO + +USES= gmake localbase libtool pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= MaartenBaert +GH_PROJECT= ssr +GH_TAGNAME= 0f6eebf +USE_GL= gl glu +USE_QT4= corelib gui moc_build rcc_build uic_build linguisttools_build +USE_XORG= x11 xext xfixes xi +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --disable-assert +USE_LDCONFIG= yes +INSTALL_TARGET= install-strip + +PULSEAUDIO_CONFIGURE_WITH= pulseaudio +PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio + +JACK_CONFIGURE_WITH= jack +JACK_LIB_DEPENDS= libjack.so:audio/jack + +post-patch: + @${REINPLACE_CMD} -E \ + -e 's|-ldl([". ])|-lc\1|g' \ + -e 's|-ldl$$|-lc|g' \ + ${WRKSRC}/configure + +.include Index: multimedia/simplescreenrecorder/distinfo =================================================================== --- multimedia/simplescreenrecorder/distinfo +++ multimedia/simplescreenrecorder/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1501646789 +SHA256 (MaartenBaert-ssr-0.3.8-0f6eebf_GH0.tar.gz) = a146dcaba3e55d9cebd475201d759d76229b88e6cbce5d2d01bb2ae7796e7b81 +SIZE (MaartenBaert-ssr-0.3.8-0f6eebf_GH0.tar.gz) = 2188222 Index: multimedia/simplescreenrecorder/files/patch-glinject_Hook.cpp =================================================================== --- multimedia/simplescreenrecorder/files/patch-glinject_Hook.cpp +++ multimedia/simplescreenrecorder/files/patch-glinject_Hook.cpp @@ -0,0 +1,11 @@ +--- glinject/Hook.cpp.orig 2017-07-25 22:43:33 UTC ++++ glinject/Hook.cpp +@@ -15,6 +15,8 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE + #include + #include + ++extern char **environ; ++ + typedef void (*GLXextFuncPtr)(void); + + void InitGLInject(); Index: multimedia/simplescreenrecorder/files/patch-glinject_Makefile.in =================================================================== --- multimedia/simplescreenrecorder/files/patch-glinject_Makefile.in +++ multimedia/simplescreenrecorder/files/patch-glinject_Makefile.in @@ -0,0 +1,11 @@ +--- glinject/Makefile.in.orig 2017-08-02 06:41:19 UTC ++++ glinject/Makefile.in +@@ -375,7 +375,7 @@ top_srcdir = @top_srcdir@ + @ENABLE_GLINJECTLIB_TRUE@ $(am__append_1) + @ENABLE_GLINJECTLIB_TRUE@libssr_glinject_la_CFLAGS = -pthread -fPIC + @ENABLE_GLINJECTLIB_TRUE@libssr_glinject_la_CXXFLAGS = -pthread -fPIC -std=c++0x +-@ENABLE_GLINJECTLIB_TRUE@libssr_glinject_la_LDFLAGS = -pthread -fPIC -avoid-version -shared -lrt -ldl -lGL -lGLU -lX11 -lXfixes ++@ENABLE_GLINJECTLIB_TRUE@libssr_glinject_la_LDFLAGS = -pthread -fPIC -avoid-version -shared -lrt -lGL -lGLU -lX11 -lXfixes + @ENABLE_GLINJECTLIB_TRUE@libssr_glinject_la_SOURCES = \ + @ENABLE_GLINJECTLIB_TRUE@ elfhacks.c \ + @ENABLE_GLINJECTLIB_TRUE@ elfhacks.h \ Index: multimedia/simplescreenrecorder/files/patch-scripts_ssr-glinject =================================================================== --- multimedia/simplescreenrecorder/files/patch-scripts_ssr-glinject +++ multimedia/simplescreenrecorder/files/patch-scripts_ssr-glinject @@ -0,0 +1,8 @@ +--- scripts/ssr-glinject.orig 2017-07-25 22:43:33 UTC ++++ scripts/ssr-glinject +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + set -e + Index: multimedia/simplescreenrecorder/pkg-descr =================================================================== --- multimedia/simplescreenrecorder/pkg-descr +++ multimedia/simplescreenrecorder/pkg-descr @@ -0,0 +1,24 @@ +A program that can record programs and games. + +Features: +* Graphical user interface (Qt-based). +* Faster than VLC and ffmpeg/avconv. +* Records the entire screen or part of it, or records OpenGL + applications directly (similar to Fraps on Windows). +* Synchronizes audio and video properly (a common issue with + VLC and ffmpeg/avconv). +* Reduces the video frame rate if your computer is too slow + (rather than using up all your RAM like VLC does). +* Fully multithreaded: small delays in any of the components + will never block the other components, resulting is smoother + video and better performance on computers with multiple processors. +* Pause and resume recording at any time (either by clicking + a button or by pressing a hotkey). +* Shows statistics during recording (file size, bit rate, total + recording time, actual frame rate, ...). +* Can show a preview during recording, so you don't waste time + recording something only to figure out afterwards that some setting was wrong. +* Supports many different codecs and file formats (adding more is trivial). +* Can also do live streaming (experimental). + +WWW: http://www.maartenbaert.be/simplescreenrecorder/ Index: multimedia/simplescreenrecorder/pkg-plist =================================================================== --- multimedia/simplescreenrecorder/pkg-plist +++ multimedia/simplescreenrecorder/pkg-plist @@ -0,0 +1,87 @@ +bin/simplescreenrecorder +bin/ssr-glinject +lib/libssr-glinject.so +man/man1/simplescreenrecorder.1.gz +man/man1/ssr-glinject.1.gz +share/appdata/simplescreenrecorder.appdata.xml +share/applications/simplescreenrecorder.desktop +share/icons/hicolor/128x128/apps/simplescreenrecorder-error.png +share/icons/hicolor/128x128/apps/simplescreenrecorder-idle.png +share/icons/hicolor/128x128/apps/simplescreenrecorder-paused.png +share/icons/hicolor/128x128/apps/simplescreenrecorder-recording.png +share/icons/hicolor/128x128/apps/simplescreenrecorder.png +share/icons/hicolor/16x16/apps/simplescreenrecorder-error.png +share/icons/hicolor/16x16/apps/simplescreenrecorder-idle.png +share/icons/hicolor/16x16/apps/simplescreenrecorder-paused.png +share/icons/hicolor/16x16/apps/simplescreenrecorder-recording.png +share/icons/hicolor/16x16/apps/simplescreenrecorder.png +share/icons/hicolor/192x192/apps/simplescreenrecorder-error.png +share/icons/hicolor/192x192/apps/simplescreenrecorder-idle.png +share/icons/hicolor/192x192/apps/simplescreenrecorder-paused.png +share/icons/hicolor/192x192/apps/simplescreenrecorder-recording.png +share/icons/hicolor/192x192/apps/simplescreenrecorder.png +share/icons/hicolor/22x22/apps/simplescreenrecorder-error.png +share/icons/hicolor/22x22/apps/simplescreenrecorder-idle.png +share/icons/hicolor/22x22/apps/simplescreenrecorder-paused.png +share/icons/hicolor/22x22/apps/simplescreenrecorder-recording.png +share/icons/hicolor/22x22/apps/simplescreenrecorder.png +share/icons/hicolor/24x24/apps/simplescreenrecorder-error.png +share/icons/hicolor/24x24/apps/simplescreenrecorder-idle.png +share/icons/hicolor/24x24/apps/simplescreenrecorder-paused.png +share/icons/hicolor/24x24/apps/simplescreenrecorder-recording.png +share/icons/hicolor/24x24/apps/simplescreenrecorder.png +share/icons/hicolor/256x256/apps/simplescreenrecorder-error.png +share/icons/hicolor/256x256/apps/simplescreenrecorder-idle.png +share/icons/hicolor/256x256/apps/simplescreenrecorder-paused.png +share/icons/hicolor/256x256/apps/simplescreenrecorder-recording.png +share/icons/hicolor/256x256/apps/simplescreenrecorder.png +share/icons/hicolor/32x32/apps/simplescreenrecorder-error.png +share/icons/hicolor/32x32/apps/simplescreenrecorder-idle.png +share/icons/hicolor/32x32/apps/simplescreenrecorder-paused.png +share/icons/hicolor/32x32/apps/simplescreenrecorder-recording.png +share/icons/hicolor/32x32/apps/simplescreenrecorder.png +share/icons/hicolor/48x48/apps/simplescreenrecorder-error.png +share/icons/hicolor/48x48/apps/simplescreenrecorder-idle.png +share/icons/hicolor/48x48/apps/simplescreenrecorder-paused.png +share/icons/hicolor/48x48/apps/simplescreenrecorder-recording.png +share/icons/hicolor/48x48/apps/simplescreenrecorder.png +share/icons/hicolor/64x64/apps/simplescreenrecorder-error.png +share/icons/hicolor/64x64/apps/simplescreenrecorder-idle.png +share/icons/hicolor/64x64/apps/simplescreenrecorder-paused.png +share/icons/hicolor/64x64/apps/simplescreenrecorder-recording.png +share/icons/hicolor/64x64/apps/simplescreenrecorder.png +share/icons/hicolor/96x96/apps/simplescreenrecorder-error.png +share/icons/hicolor/96x96/apps/simplescreenrecorder-idle.png +share/icons/hicolor/96x96/apps/simplescreenrecorder-paused.png +share/icons/hicolor/96x96/apps/simplescreenrecorder-recording.png +share/icons/hicolor/96x96/apps/simplescreenrecorder.png +share/icons/hicolor/scalable/apps/simplescreenrecorder-error.svg +share/icons/hicolor/scalable/apps/simplescreenrecorder-idle.svg +share/icons/hicolor/scalable/apps/simplescreenrecorder-paused.svg +share/icons/hicolor/scalable/apps/simplescreenrecorder-recording.svg +share/icons/hicolor/scalable/apps/simplescreenrecorder.svg +%%DATADIR%%/output-profiles/High%20Quality%20Intermediate.conf +%%DATADIR%%/output-profiles/Live%20Stream%20%281000kbps%29.conf +%%DATADIR%%/output-profiles/Live%20Stream%20%282000kbps%29.conf +%%DATADIR%%/output-profiles/Live%20Stream%20%283000kbps%29.conf +%%DATADIR%%/output-profiles/YouTube.conf +%%DATADIR%%/translations/simplescreenrecorder_ar.qm +%%DATADIR%%/translations/simplescreenrecorder_bg.qm +%%DATADIR%%/translations/simplescreenrecorder_cs.qm +%%DATADIR%%/translations/simplescreenrecorder_de.qm +%%DATADIR%%/translations/simplescreenrecorder_el.qm +%%DATADIR%%/translations/simplescreenrecorder_es.qm +%%DATADIR%%/translations/simplescreenrecorder_fr.qm +%%DATADIR%%/translations/simplescreenrecorder_he.qm +%%DATADIR%%/translations/simplescreenrecorder_hu.qm +%%DATADIR%%/translations/simplescreenrecorder_it.qm +%%DATADIR%%/translations/simplescreenrecorder_ja.qm +%%DATADIR%%/translations/simplescreenrecorder_lt.qm +%%DATADIR%%/translations/simplescreenrecorder_nl.qm +%%DATADIR%%/translations/simplescreenrecorder_pl.qm +%%DATADIR%%/translations/simplescreenrecorder_pt_BR.qm +%%DATADIR%%/translations/simplescreenrecorder_ru.qm +%%DATADIR%%/translations/simplescreenrecorder_sv.qm +%%DATADIR%%/translations/simplescreenrecorder_uk.qm +%%DATADIR%%/translations/simplescreenrecorder_zh_CN.qm +%%DATADIR%%/translations/simplescreenrecorder_zh_TW.qm