summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2017-05-26 00:29:24 +0200
committerMichael Weber <xmw@gentoo.org>2017-05-26 00:29:47 +0200
commit665689c83d6d1b862699258f4edda4a26d8c2725 (patch)
tree38aada72156cd4e63b35fb2b794c5e53848dba96 /media-video
parentmedia-libs/opus: Bump to version 1.2_beta (diff)
downloadgentoo-665689c83d6d1b862699258f4edda4a26d8c2725.tar.gz
gentoo-665689c83d6d1b862699258f4edda4a26d8c2725.tar.bz2
gentoo-665689c83d6d1b862699258f4edda4a26d8c2725.zip
media-video/dcpomatic: Switch between rtaudio output options.
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'media-video')
-rw-r--r--media-video/dcpomatic/dcpomatic-2.11.7.ebuild14
-rw-r--r--media-video/dcpomatic/metadata.xml5
2 files changed, 17 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
}
diff --git a/media-video/dcpomatic/metadata.xml b/media-video/dcpomatic/metadata.xml
index bc4c75f8360f..1fe7fe154da0 100644
--- a/media-video/dcpomatic/metadata.xml
+++ b/media-video/dcpomatic/metadata.xml
@@ -10,4 +10,9 @@ DCP-o-matic is a free, open-source program to create Digital Cinema Packages (DC
It can take files in many different formats, including MP4, Apple ProRes, MOV, AVI, VOB (from DVDs), M2TS (from Blu-Ray), WMV, MKV, JPEG, PNG, TIFF and lots of others.
</longdescription>
+<use>
+ <flag name="alsa">Utilize alsa output of media-libs/rtaudio.</flag>
+ <flag name="jack">Utilize jack output of media-libs/rtaudio.</flag>
+ <flag name="pulseaudio">Utilize pulseaudio output of media-libs/rtaudio.</flag>
+</use>
</pkgmetadata>