diff options
Diffstat (limited to 'media-video/dcpomatic/dcpomatic-2.11.7.ebuild')
-rw-r--r-- | media-video/dcpomatic/dcpomatic-2.11.7.ebuild | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/media-video/dcpomatic/dcpomatic-2.11.7.ebuild b/media-video/dcpomatic/dcpomatic-2.11.7.ebuild index d254592d7b48..d8f8113508ba 100644 --- a/media-video/dcpomatic/dcpomatic-2.11.7.ebuild +++ b/media-video/dcpomatic/dcpomatic-2.11.7.ebuild @@ -14,7 +14,9 @@ SRC_URI="http://${PN}.com/downloads/${PV}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="+gtk" +IUSE="+alsa +gtk jack pulseaudio" + +REQUIRED_USE="^^ ( alsa jack pulseaudio )" RDEPEND="dev-cpp/cairomm dev-cpp/glibmm:2 @@ -32,7 +34,7 @@ RDEPEND="dev-cpp/cairomm media-libs/libsamplerate media-libs/libsndfile >=media-libs/libsub-1.2.1:1.0 - media-libs/rtaudio + media-libs/rtaudio[alsa?,jack?,pulseaudio?] >=media-video/ffmpeg-3:= net-libs/libssh net-misc/curl @@ -90,6 +92,14 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-2.10.2-imagemagick-7.patch fi + if use alsa ; then + sed -e "s|RtAudio::LINUX_PULSE|RtAudio::LINUX_ALSA|"\ + -i src/wx/wx_util.h || die + elif use jack ; then + sed -e "s|RtAudio::LINUX_PULSE|RtAudio::UNIX_JACK|"\ + -i src/wx/wx_util.h || die + fi + default } |