1 |
commit: 665689c83d6d1b862699258f4edda4a26d8c2725 |
2 |
Author: Michael Weber <xmw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 25 22:29:24 2017 +0000 |
4 |
Commit: Michael Weber <xmw <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 25 22:29:47 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=665689c8 |
7 |
|
8 |
media-video/dcpomatic: Switch between rtaudio output options. |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
media-video/dcpomatic/dcpomatic-2.11.7.ebuild | 14 ++++++++++++-- |
13 |
media-video/dcpomatic/metadata.xml | 5 +++++ |
14 |
2 files changed, 17 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/media-video/dcpomatic/dcpomatic-2.11.7.ebuild b/media-video/dcpomatic/dcpomatic-2.11.7.ebuild |
17 |
index d254592d7b4..d8f8113508b 100644 |
18 |
--- a/media-video/dcpomatic/dcpomatic-2.11.7.ebuild |
19 |
+++ b/media-video/dcpomatic/dcpomatic-2.11.7.ebuild |
20 |
@@ -14,7 +14,9 @@ SRC_URI="http://${PN}.com/downloads/${PV}/${P}.tar.bz2" |
21 |
LICENSE="GPL-2" |
22 |
SLOT="0" |
23 |
KEYWORDS="" |
24 |
-IUSE="+gtk" |
25 |
+IUSE="+alsa +gtk jack pulseaudio" |
26 |
+ |
27 |
+REQUIRED_USE="^^ ( alsa jack pulseaudio )" |
28 |
|
29 |
RDEPEND="dev-cpp/cairomm |
30 |
dev-cpp/glibmm:2 |
31 |
@@ -32,7 +34,7 @@ RDEPEND="dev-cpp/cairomm |
32 |
media-libs/libsamplerate |
33 |
media-libs/libsndfile |
34 |
>=media-libs/libsub-1.2.1:1.0 |
35 |
- media-libs/rtaudio |
36 |
+ media-libs/rtaudio[alsa?,jack?,pulseaudio?] |
37 |
>=media-video/ffmpeg-3:= |
38 |
net-libs/libssh |
39 |
net-misc/curl |
40 |
@@ -90,6 +92,14 @@ src_prepare() { |
41 |
epatch "${FILESDIR}"/${PN}-2.10.2-imagemagick-7.patch |
42 |
fi |
43 |
|
44 |
+ if use alsa ; then |
45 |
+ sed -e "s|RtAudio::LINUX_PULSE|RtAudio::LINUX_ALSA|"\ |
46 |
+ -i src/wx/wx_util.h || die |
47 |
+ elif use jack ; then |
48 |
+ sed -e "s|RtAudio::LINUX_PULSE|RtAudio::UNIX_JACK|"\ |
49 |
+ -i src/wx/wx_util.h || die |
50 |
+ fi |
51 |
+ |
52 |
default |
53 |
} |
54 |
|
55 |
|
56 |
diff --git a/media-video/dcpomatic/metadata.xml b/media-video/dcpomatic/metadata.xml |
57 |
index bc4c75f8360..1fe7fe154da 100644 |
58 |
--- a/media-video/dcpomatic/metadata.xml |
59 |
+++ b/media-video/dcpomatic/metadata.xml |
60 |
@@ -10,4 +10,9 @@ DCP-o-matic is a free, open-source program to create Digital Cinema Packages (DC |
61 |
|
62 |
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. |
63 |
</longdescription> |
64 |
+<use> |
65 |
+ <flag name="alsa">Utilize alsa output of media-libs/rtaudio.</flag> |
66 |
+ <flag name="jack">Utilize jack output of media-libs/rtaudio.</flag> |
67 |
+ <flag name="pulseaudio">Utilize pulseaudio output of media-libs/rtaudio.</flag> |
68 |
+</use> |
69 |
</pkgmetadata> |