1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake-utils gnome2-utils
8 if [[ ${PV} == *9999 ]]; then
10 EGIT_REPO_URI="https://github.com/jp9000/obs-studio.git"
13 SRC_URI="https://github.com/jp9000/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86"
17 DESCRIPTION="Software for Recording and Streaming Live Video Content"
18 HOMEPAGE="https://obsproject.com"
22 IUSE="+alsa fdk imagemagick jack pulseaudio truetype v4l"
25 >=dev-libs/jansson-2.5
27 dev-qt/qtdeclarative:5
31 dev-qt/qtquickcontrols:5
36 media-video/ffmpeg:=[x264]
38 x11-libs/libXcomposite
41 alsa? ( media-libs/alsa-lib )
42 fdk? ( media-libs/fdk-aac:= )
43 imagemagick? ( media-gfx/imagemagick:= )
44 jack? ( virtual/jack )
45 pulseaudio? ( media-sound/pulseaudio )
50 v4l? ( media-libs/libv4l )
54 CMAKE_REMOVE_MODULES_LIST=( FindFreetype )
57 local libdir=$(get_libdir)
59 -DDISABLE_ALSA=$(usex !alsa)
60 -DDISABLE_FREETYPE=$(usex !truetype)
61 -DDISABLE_JACK=$(usex !jack)
62 -DDISABLE_LIBFDK=$(usex !fdk)
63 -DDISABLE_PULSEAUDIO=$(usex !pulseaudio)
64 -DDISABLE_V4L2=$(usex !v4l)
65 -DLIBOBS_PREFER_IMAGEMAGICK=$(usex imagemagick)
66 -DOBS_MULTIARCH_SUFFIX=${libdir#lib}
69 cmake-utils_src_configure
73 gnome2_icon_cache_update
75 if ! use alsa && ! use pulseaudio; then
77 elog "For the audio capture features to be available,"
78 elog "either the 'alsa' or the 'pulseaudio' USE-flag needs to"
83 if ! has_version "sys-apps/dbus"; then
85 elog "The 'sys-apps/dbus' package is not installed, but"
86 elog "could be used for disabling hibernating, screensaving,"
87 elog "and sleeping. Where it is not installed,"
88 elog "'xdg-screensaver reset' is used instead"
89 elog "(if 'x11-misc/xdg-utils' is installed)."
93 if ! has_version "media-libs/speex"; then
95 elog "For the speexdsp-based noise suppression filter"
96 elog "to be available, the 'media-libs/speex' package needs"
97 elog "to be installed."
103 gnome2_icon_cache_update