1 |
commit: f991530ac74c41404da667d70b093798ea26c0f1 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 27 16:30:06 2019 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 27 16:30:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f991530a |
7 |
|
8 |
media-tv/v4l-utils: Add bpf useflag. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/678894 |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
12 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
13 |
|
14 |
media-tv/v4l-utils/metadata.xml | 3 ++ |
15 |
media-tv/v4l-utils/v4l-utils-1.16.3-r1.ebuild | 68 +++++++++++++++++++++++++++ |
16 |
2 files changed, 71 insertions(+) |
17 |
|
18 |
diff --git a/media-tv/v4l-utils/metadata.xml b/media-tv/v4l-utils/metadata.xml |
19 |
index 681f0dcf3b5..c7efa529292 100644 |
20 |
--- a/media-tv/v4l-utils/metadata.xml |
21 |
+++ b/media-tv/v4l-utils/metadata.xml |
22 |
@@ -5,4 +5,7 @@ |
23 |
<email>tetromino@g.o</email> |
24 |
<name>Alexandre Rostovtsev</name> |
25 |
</maintainer> |
26 |
+<use> |
27 |
+ <flag name="bpf">Enables support for IR BPF decoders.</flag> |
28 |
+</use> |
29 |
</pkgmetadata> |
30 |
|
31 |
diff --git a/media-tv/v4l-utils/v4l-utils-1.16.3-r1.ebuild b/media-tv/v4l-utils/v4l-utils-1.16.3-r1.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..648290a0728 |
34 |
--- /dev/null |
35 |
+++ b/media-tv/v4l-utils/v4l-utils-1.16.3-r1.ebuild |
36 |
@@ -0,0 +1,68 @@ |
37 |
+# Copyright 1999-2019 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+inherit flag-o-matic udev xdg-utils |
42 |
+ |
43 |
+DESCRIPTION="Separate utilities ebuild from upstream v4l-utils package" |
44 |
+HOMEPAGE="http://git.linuxtv.org/v4l-utils.git" |
45 |
+SRC_URI="http://linuxtv.org/downloads/v4l-utils/${P}.tar.bz2" |
46 |
+ |
47 |
+LICENSE="GPL-2+ LGPL-2.1+" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~sparc ~x86" |
50 |
+IUSE="+bpf opengl qt5" |
51 |
+ |
52 |
+RDEPEND=">=media-libs/libv4l-${PV}[jpeg] |
53 |
+ qt5? ( |
54 |
+ dev-qt/qtcore:5 |
55 |
+ dev-qt/qtgui:5 |
56 |
+ opengl? ( dev-qt/qtopengl:5[-gles2(-)] virtual/opengl ) |
57 |
+ media-libs/alsa-lib |
58 |
+ ) |
59 |
+ virtual/libudev |
60 |
+ >=virtual/jpeg-0-r2:0= |
61 |
+ bpf? ( virtual/libelf:= sys-devel/clang:*[llvm_targets_BPF] ) |
62 |
+ !media-tv/v4l2-ctl |
63 |
+ !<media-tv/ivtv-utils-1.4.0-r2" |
64 |
+DEPEND="${RDEPEND}" |
65 |
+BDEPEND=" |
66 |
+ sys-devel/gettext |
67 |
+ virtual/pkgconfig" |
68 |
+ |
69 |
+src_configure() { |
70 |
+ if use qt5; then |
71 |
+ append-cxxflags -std=c++11 |
72 |
+ local qt5_paths=( \ |
73 |
+ MOC="$(pkg-config --variable=host_bins Qt5Core)/moc" \ |
74 |
+ UIC="$(pkg-config --variable=host_bins Qt5Core)/uic" \ |
75 |
+ RCC="$(pkg-config --variable=host_bins Qt5Core)/rcc" \ |
76 |
+ ) |
77 |
+ if use !opengl; then |
78 |
+ sed -e 's/Qt5OpenGL/DiSaBlEd/g' -i configure || die |
79 |
+ fi |
80 |
+ fi |
81 |
+ # Hard disable the flags that apply only to the libs. |
82 |
+ econf \ |
83 |
+ --disable-static \ |
84 |
+ $(use_enable qt5 qv4l2) \ |
85 |
+ $(use_enable qt5 qvidcap) \ |
86 |
+ $(use_enable bpf) \ |
87 |
+ --with-udevdir="$(get_udevdir)" \ |
88 |
+ --with-jpeg \ |
89 |
+ "${qt5_paths[@]}" |
90 |
+} |
91 |
+ |
92 |
+src_install() { |
93 |
+ emake -C utils DESTDIR="${D}" install |
94 |
+ emake -C contrib DESTDIR="${D}" install |
95 |
+ |
96 |
+ dodoc README |
97 |
+ newdoc utils/libv4l2util/TODO TODO.libv4l2util |
98 |
+ newdoc utils/libmedia_dev/README README.libmedia_dev |
99 |
+ newdoc utils/dvb/README README.dvb |
100 |
+ newdoc utils/v4l2-compliance/fixme.txt fixme.txt.v4l2-compliance |
101 |
+} |
102 |
+ |
103 |
+pkg_postinst() { xdg_icon_cache_update; } |
104 |
+pkg_postrm() { xdg_icon_cache_update; } |