1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 if [[ ${PV} == *9999 ]]; then
11 EGIT_REPO_URI="https://github.com/jp9000/obs-studio.git"
14 SRC_URI="https://github.com/jp9000/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
18 DESCRIPTION="Software for Recording and Streaming Live Video Content"
19 HOMEPAGE="https://obsproject.com"
23 IUSE="+alsa fdk imagemagick jack pulseaudio truetype v4l"
26 >=dev-libs/jansson-2.5
28 dev-qt/qtdeclarative:5
32 dev-qt/qtquickcontrols:5
39 x11-libs/libXcomposite
42 alsa? ( media-libs/alsa-lib )
43 fdk? ( media-libs/fdk-aac:= )
44 imagemagick? ( media-gfx/imagemagick:= )
45 jack? ( virtual/jack )
46 pulseaudio? ( media-sound/pulseaudio )
51 v4l? ( media-libs/libv4l )
56 CMAKE_REMOVE_MODULES_LIST=(FindFreetype)
58 cmake-utils_src_prepare
62 local libdir="$(get_libdir)"
64 -DDISABLE_ALSA="$(usex !alsa)"
65 -DDISABLE_FREETYPE="$(usex !truetype)"
66 -DDISABLE_JACK="$(usex !jack)"
67 -DDISABLE_LIBFDK="$(usex !fdk)"
68 -DDISABLE_PULSEAUDIO="$(usex !pulseaudio)"
69 -DDISABLE_V4L2="$(usex !v4l)"
70 -DLIBOBS_PREFER_IMAGEMAGICK="$(usex imagemagick)"
71 -DOBS_MULTIARCH_SUFFIX="${libdir#lib}"
75 cmake-utils_src_configure
79 if ! use alsa && ! use pulseaudio; then
80 elog "To be able to use the audio capture features, either the"
81 elog "'alsa' or the 'pulseaudio' USE-flag needs to be enabled."