diff options
author | Jimi Huotari <chiitoo@gentoo.org> | 2018-07-11 03:40:09 +0300 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2018-07-13 10:36:15 +0100 |
commit | 382a92ff3fd5952e93ceb950f7ee215f7cb19e2b (patch) | |
tree | 26c7b39d4d415007eab262cb75afa5a7ee8b641c | |
parent | media-video/obs-studio: add support for scripting (diff) | |
download | gentoo-382a92ff3fd5952e93ceb950f7ee215f7cb19e2b.tar.gz gentoo-382a92ff3fd5952e93ceb950f7ee215f7cb19e2b.tar.bz2 gentoo-382a92ff3fd5952e93ceb950f7ee215f7cb19e2b.zip |
media-video/obs-studio: add USE="speexdsp"
This can be used to enable/disable support for the SpeexDSP-based
Noise Suppression filter
Package-Manager: Portage-2.3.41, Repoman-2.3.9
-rw-r--r-- | media-video/obs-studio/metadata.xml | 2 | ||||
-rw-r--r-- | media-video/obs-studio/obs-studio-9999.ebuild | 12 |
2 files changed, 5 insertions, 9 deletions
diff --git a/media-video/obs-studio/metadata.xml b/media-video/obs-studio/metadata.xml index 20792bdd8baa..5567b005a9c5 100644 --- a/media-video/obs-studio/metadata.xml +++ b/media-video/obs-studio/metadata.xml @@ -17,6 +17,8 @@ <flag name="luajit">Build support for scripting via Luajit.</flag> <flag name="nvenc">Enable NVENC encoding for nVidia video cards.</flag> <flag name="python">Build support for scripting via Python 3.</flag> + <flag name="speexdsp">Enable noise suppression filter support via + <pkg>media-libs/speexdsp</pkg>.</flag> </use> <upstream> <remote-id type="github">jp9000/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 b1dee2913b2b..315620af94b3 100644 --- a/media-video/obs-studio/obs-studio-9999.ebuild +++ b/media-video/obs-studio/obs-studio-9999.ebuild @@ -22,7 +22,7 @@ HOMEPAGE="https://obsproject.com" LICENSE="GPL-2" SLOT="0" -IUSE="+alsa fdk imagemagick jack luajit nvenc pulseaudio python truetype v4l" +IUSE="+alsa fdk imagemagick jack luajit nvenc pulseaudio python speexdsp truetype v4l" COMMON_DEPEND=" >=dev-libs/jansson-2.5 @@ -49,6 +49,7 @@ COMMON_DEPEND=" nvenc? ( media-video/ffmpeg:=[nvenc] ) pulseaudio? ( media-sound/pulseaudio ) python? ( ${PYTHON_DEPS} ) + speexdsp? ( media-libs/speexdsp ) truetype? ( media-libs/fontconfig media-libs/freetype @@ -73,6 +74,7 @@ src_configure() { -DDISABLE_JACK=$(usex !jack) -DDISABLE_LIBFDK=$(usex !fdk) -DDISABLE_PULSEAUDIO=$(usex !pulseaudio) + -DDISABLE_SPEEXDSP=$(usex !speexdsp) -DDISABLE_V4L2=$(usex !v4l) -DLIBOBS_PREFER_IMAGEMAGICK=$(usex imagemagick) -DOBS_MULTIARCH_SUFFIX=${libdir#lib} @@ -112,14 +114,6 @@ pkg_postinst() { elog "(if 'x11-misc/xdg-utils' is installed)." elog fi - - if ! has_version "media-libs/speexdsp"; then - elog - elog "For the speexdsp-based noise suppression filter" - elog "to be available, the 'media-libs/speexdsp' package needs" - elog "to be installed." - elog - fi } pkg_postrm() { |