media-video/obs-studio: add USE="ssl vlc"
authorJimi Huotari <chiitoo@gentoo.org>
Fri, 11 Oct 2019 09:50:05 +0000 (12:50 +0300)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 3 Nov 2019 17:19:17 +0000 (18:19 +0100)
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>
media-video/obs-studio/metadata.xml
media-video/obs-studio/obs-studio-9999.ebuild

index 89c066c043bd51130281a62328e9bf539353f4fd..cd2070e38ea05365ec6ad289a3825da30dee225a 100644 (file)
@@ -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>
index d86c6eab447525e18bab4a74abb535e8399b4e8a..46578dd8dba10335729a3ab4a77624cdfe828ba4 100644 (file)
@@ -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