summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimi Huotari <chiitoo@gentoo.org>2019-10-11 12:50:05 +0300
committerAndreas Sturmlechner <asturm@gentoo.org>2019-11-03 18:19:17 +0100
commit8f61805fc836037f40aed84213aacade81ef9891 (patch)
tree9c1d6658883f4fe0c506c28da37db12c80dbcb23 /media-video/obs-studio
parentsys-libs/pam: remove openpam blocker (diff)
downloadgentoo-8f61805fc836037f40aed84213aacade81ef9891.tar.gz
gentoo-8f61805fc836037f40aed84213aacade81ef9891.tar.bz2
gentoo-8f61805fc836037f40aed84213aacade81ef9891.zip
media-video/obs-studio: add USE="ssl vlc"
When enabled, 'ssl' will allow for secure connections to servers supporting RTMPS via 'net-libs/mbedtls' (previously automagic). When enabled, 'vlc' will allow for 'media-video/vlc' to be used as a media source in OBS Studio (previously automagic). Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Jimi Huotari <chiitoo@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/12969 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-video/obs-studio')
-rw-r--r--media-video/obs-studio/metadata.xml3
-rw-r--r--media-video/obs-studio/obs-studio-9999.ebuild11
2 files changed, 10 insertions, 4 deletions
diff --git a/media-video/obs-studio/metadata.xml b/media-video/obs-studio/metadata.xml
index 89c066c043bd..cd2070e38ea0 100644
--- a/media-video/obs-studio/metadata.xml
+++ b/media-video/obs-studio/metadata.xml
@@ -19,6 +19,9 @@
<flag name="python">Build support for scripting via Python 3.</flag>
<flag name="speex">Enable noise suppression filter support via
<pkg>media-libs/speexdsp</pkg>.</flag>
+ <flag name="ssl">Build support for TLS/SSL connections (RTMPS) via
+ <pkg>net-libs/mbedtls</pkg>.</flag>
+ <flag name="vlc">Build support for using <pkg>media-video/vlc</pkg> as a media source.</flag>
</use>
<upstream>
<remote-id type="github">obsproject/obs-studio</remote-id>
diff --git a/media-video/obs-studio/obs-studio-9999.ebuild b/media-video/obs-studio/obs-studio-9999.ebuild
index d86c6eab4475..46578dd8dba1 100644
--- a/media-video/obs-studio/obs-studio-9999.ebuild
+++ b/media-video/obs-studio/obs-studio-9999.ebuild
@@ -3,7 +3,8 @@
EAPI=7
-PYTHON_COMPAT=( python{3_5,3_6,3_7} )
+CMAKE_REMOVE_MODULES_LIST=( FindFreetype )
+PYTHON_COMPAT=( python3_{5,6,7} )
inherit cmake-utils python-single-r1 xdg-utils
@@ -21,7 +22,7 @@ HOMEPAGE="https://obsproject.com"
LICENSE="GPL-2"
SLOT="0"
-IUSE="+alsa fdk imagemagick jack luajit nvenc pulseaudio python speex truetype v4l"
+IUSE="+alsa fdk imagemagick jack luajit nvenc pulseaudio python speex +ssl truetype v4l vlc"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
BDEPEND="
@@ -60,16 +61,16 @@ DEPEND="
pulseaudio? ( media-sound/pulseaudio )
python? ( ${PYTHON_DEPS} )
speex? ( media-libs/speexdsp )
+ ssl? ( net-libs/mbedtls )
truetype? (
media-libs/fontconfig
media-libs/freetype
)
v4l? ( media-libs/libv4l )
+ vlc? ( media-video/vlc:= )
"
RDEPEND="${DEPEND}"
-CMAKE_REMOVE_MODULES_LIST=( FindFreetype )
-
pkg_setup() {
use python && python-single-r1_pkg_setup
}
@@ -84,9 +85,11 @@ src_configure() {
-DDISABLE_PULSEAUDIO=$(usex !pulseaudio)
-DDISABLE_SPEEXDSP=$(usex !speex)
-DDISABLE_V4L2=$(usex !v4l)
+ -DDISABLE_VLC=$(usex !vlc)
-DLIBOBS_PREFER_IMAGEMAGICK=$(usex imagemagick)
-DOBS_MULTIARCH_SUFFIX=${libdir#lib}
-DUNIX_STRUCTURE=1
+ -DWITH_RTMPS=$(usex ssl)
)
if use luajit || use python; then