1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 if [[ ${PV} == 9999 ]]; then
9 EGIT_REPO_URI="https://github.com/PipeWire/pipewire.git"
12 SRC_URI="https://github.com/PipeWire/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
16 DESCRIPTION="Multimedia processing graphs"
17 HOMEPAGE="https://pipewire.org/"
21 IUSE="bluetooth doc ffmpeg libav gstreamer sdl systemd vaapi X"
34 bluetooth? ( media-libs/sbc )
36 !libav? ( media-video/ffmpeg:= )
37 libav? ( media-video/libav:= )
40 media-libs/gstreamer:1.0
41 media-libs/gst-plugins-base:1.0
43 sdl? ( media-libs/libsdl2 )
44 systemd? ( sys-apps/systemd )
45 vaapi? ( x11-libs/libva )
46 X? ( x11-libs/libX11 )
51 "${FILESDIR}"/${P}-alsa-lib-1.1.9.patch
52 "${FILESDIR}"/${P}-reuse-fd-in-pipewiresrc.patch
53 "${FILESDIR}"/${P}-fix-probing-without-starting.patch
54 "${FILESDIR}"/${P}-revert-combine-all-perms.patch
60 sed -e "/.*dependency.*'${2-$1}'/s/'${2-$1}'/'${2-$1}-disabled-by-USE-no-${1}'/" \
61 -i spa/meson.build || die
67 spa_use ffmpeg libavcodec
68 spa_use ffmpeg libavformat
69 spa_use ffmpeg libavfilter
79 $(meson_feature gstreamer)
86 elog "Package has optional sys-auth/rtkit RUNTIME support that may be"
87 elog "disabled by setting DISABLE_RTKIT env var."