Gentoo Archives: gentoo-commits

From: "Jörg Bornkessel" <hd_brummy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/vdr-xineliboutput/
Date: Sun, 03 May 2020 08:56:48
Message-Id: 1588496106.edd486548f1f6eb3af268636bc1f491c0bfd6a4a.hd_brummy@gentoo
1 commit: edd486548f1f6eb3af268636bc1f491c0bfd6a4a
2 Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 3 08:55:06 2020 +0000
4 Commit: Jörg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
5 CommitDate: Sun May 3 08:55:06 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edd48654
7
8 media-plugins/vdr-xineliboutput: fixed not detecting opengl in pkg-config
9
10 thx to josef95 @ bug 711978 to detect the solution for this
11
12 Closes: https://bugs.gentoo.org/711978
13 Package-Manager: Portage-2.3.90, Repoman-2.3.20
14 Signed-off-by: Joerg Bornkessel <hd_brummy <AT> gentoo.org>
15
16 .../vdr-xineliboutput-2.1.0-r2.ebuild | 156 +++++++++++++++++++++
17 .../vdr-xineliboutput-2.2.0-r2.ebuild | 154 ++++++++++++++++++++
18 2 files changed, 310 insertions(+)
19
20 diff --git a/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.1.0-r2.ebuild b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.1.0-r2.ebuild
21 new file mode 100644
22 index 00000000000..57b4c4f49d7
23 --- /dev/null
24 +++ b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.1.0-r2.ebuild
25 @@ -0,0 +1,156 @@
26 +# Copyright 1999-2020 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +inherit toolchain-funcs vdr-plugin-2
32 +
33 +GENTOO_VDR_CONDITIONAL=yes
34 +
35 +DESCRIPTION="VDR Plugin: Xinelib PlugIn"
36 +HOMEPAGE="https://sourceforge.net/projects/xineliboutput/"
37 +SRC_URI="mirror://sourceforge/${PN#vdr-}/${P}.tgz"
38 +
39 +SLOT="0"
40 +LICENSE="GPL-2+"
41 +KEYWORDS="~amd64 ~x86"
42 +IUSE="bluray caps cec dbus fbcon jpeg libextractor nls opengl +vdr vaapi vdpau +X +xine xinerama"
43 +
44 +COMMON_DEPEND="
45 + vdr? (
46 + media-video/vdr
47 + libextractor? ( >=media-libs/libextractor-0.5.20 )
48 + caps? ( sys-libs/libcap )
49 + )
50 +
51 + xine? (
52 + ( >=media-libs/xine-lib-1.2
53 + media-video/ffmpeg )
54 + fbcon? ( jpeg? ( virtual/jpeg:* ) )
55 + X? (
56 + x11-libs/libX11
57 + x11-libs/libXext
58 + x11-libs/libXrender
59 + bluray? ( media-libs/libbluray )
60 + dbus? ( dev-libs/dbus-glib dev-libs/glib:2 )
61 + jpeg? ( virtual/jpeg:* )
62 + opengl? ( virtual/opengl )
63 + vaapi? ( x11-libs/libva >=media-libs/xine-lib-1.2[vaapi] )
64 + vdpau? ( x11-libs/libvdpau >=media-libs/xine-lib-1.2[vdpau] )
65 + xinerama? ( x11-libs/libXinerama )
66 + )
67 + )"
68 +
69 +DEPEND="${COMMON_DEPEND}
70 + virtual/pkgconfig
71 + sys-kernel/linux-headers
72 + nls? ( sys-devel/gettext )
73 + xine? (
74 + X? (
75 + x11-base/xorg-proto
76 + x11-libs/libXxf86vm
77 + )
78 + )"
79 +RDEPEND="${COMMON_DEPEND}"
80 +
81 +REQUIRED_USE=" || ( vdr xine )"
82 +
83 +VDR_CONFD_FILE="${FILESDIR}/confd-2.0.0"
84 +
85 +pkg_setup() {
86 + vdr-plugin-2_pkg_setup
87 +
88 + if use xine; then
89 + XINE_PLUGIN_DIR=$(pkg-config --variable=plugindir libxine)
90 + [ -z "${XINE_PLUGIN_DIR}" ] && die "Could not find xine plugin dir"
91 + fi
92 +}
93 +
94 +src_prepare() {
95 + vdr-plugin-2_src_prepare
96 +
97 + # bug 711978
98 + sed -e "s:X11 opengl:X11 OpenGl:" -i configure || die
99 +}
100 +
101 +src_configure() {
102 + local myconf
103 +
104 + if has_version ">=media-libs/xine-lib-1.2"; then
105 + myconf="${myconf} --enable-libavutil"
106 + else
107 + myconf="${myconf} --disable-libavutil"
108 + fi
109 +
110 + # No autotools based configure script
111 + ./configure \
112 + --cc=$(tc-getCC) \
113 + --cxx=$(tc-getCXX) \
114 + $(use_enable X x11) \
115 + $(use_enable X xshm) \
116 + $(use_enable X xdpms) \
117 + $(use_enable X xshape) \
118 + $(use_enable X xrandr) \
119 + $(use_enable X xrender) \
120 + $(use_enable fbcon fb) \
121 + $(use_enable vdr) \
122 + $(use_enable xine libxine) \
123 + $(use_enable libextractor) \
124 + $(use_enable caps libcap) \
125 + $(use_enable cec libcec) \
126 + $(use_enable jpeg libjpeg) \
127 + $(use_enable xinerama) \
128 + $(use_enable vdpau) \
129 + $(use_enable dbus dbus-glib-1) \
130 + $(use_enable nls i18n) \
131 + $(use_enable bluray libbluray) \
132 + $(use_enable opengl) \
133 + ${myconf} \
134 + || die
135 +
136 + # UINT64_C is needed by ffmpeg headers
137 + append-cxxflags -D__STDC_CONSTANT_MACROS
138 +}
139 +
140 +src_install() {
141 + if use vdr; then
142 + vdr-plugin-2_src_install
143 +
144 + # bug 346989
145 + insinto /etc/vdr/plugins/xineliboutput/
146 + doins examples/allowed_hosts.conf
147 + fowners -R vdr:vdr /etc/vdr/
148 +
149 + if use nls; then
150 + emake DESTDIR="${D}" i18n
151 + fi
152 +
153 + if use xine; then
154 + doinitd "${FILESDIR}"/vdr-frontend
155 +
156 + insinto $XINE_PLUGIN_DIR
157 + doins xineplug_inp_xvdr.so
158 +
159 + insinto $XINE_PLUGIN_DIR/post
160 + doins xineplug_post_*.so
161 +
162 + if use fbcon; then
163 + dobin vdr-fbfe
164 +
165 + insinto $VDR_PLUGIN_DIR
166 + doins libxineliboutput-fbfe.so.*
167 + fi
168 +
169 + if use X; then
170 + dobin vdr-sxfe
171 +
172 + insinto $VDR_PLUGIN_DIR
173 + doins libxineliboutput-sxfe.so.*
174 + fi
175 + fi
176 + else
177 + emake DESTDIR="${D}" install
178 +
179 + dodoc HISTORY README
180 + fi
181 +}
182
183 diff --git a/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.2.0-r2.ebuild b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.2.0-r2.ebuild
184 new file mode 100644
185 index 00000000000..05f03857fb3
186 --- /dev/null
187 +++ b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.2.0-r2.ebuild
188 @@ -0,0 +1,154 @@
189 +# Copyright 1999-2020 Gentoo Authors
190 +# Distributed under the terms of the GNU General Public License v2
191 +
192 +EAPI=7
193 +
194 +inherit toolchain-funcs vdr-plugin-2
195 +
196 +GENTOO_VDR_CONDITIONAL=yes
197 +
198 +DESCRIPTION="VDR Plugin: Xinelib PlugIn"
199 +HOMEPAGE="https://sourceforge.net/projects/xineliboutput/"
200 +SRC_URI="mirror://sourceforge/${PN#vdr-}/${P}.tgz"
201 +
202 +SLOT="0"
203 +LICENSE="GPL-2+"
204 +KEYWORDS="~amd64 ~x86"
205 +IUSE="bluray caps cec dbus fbcon jpeg libextractor nls opengl +vdr vaapi vdpau +X +xine xinerama"
206 +
207 +COMMON_DEPEND="
208 + vdr? (
209 + media-video/vdr
210 + libextractor? ( >=media-libs/libextractor-0.5.20 )
211 + caps? ( sys-libs/libcap )
212 + )
213 +
214 + xine? (
215 + ( >=media-libs/xine-lib-1.2
216 + media-video/ffmpeg )
217 + fbcon? ( jpeg? ( virtual/jpeg:* ) )
218 + X? (
219 + x11-libs/libX11
220 + x11-libs/libXext
221 + x11-libs/libXrender
222 + bluray? ( media-libs/libbluray )
223 + dbus? ( dev-libs/dbus-glib dev-libs/glib:2 )
224 + jpeg? ( virtual/jpeg:* )
225 + opengl? ( virtual/opengl )
226 + vaapi? ( x11-libs/libva >=media-libs/xine-lib-1.2[vaapi] )
227 + vdpau? ( x11-libs/libvdpau >=media-libs/xine-lib-1.2[vdpau] )
228 + xinerama? ( x11-libs/libXinerama )
229 + )
230 + )"
231 +
232 +DEPEND="${COMMON_DEPEND}
233 + virtual/pkgconfig
234 + sys-kernel/linux-headers
235 + nls? ( sys-devel/gettext )
236 + xine? (
237 + X? (
238 + x11-base/xorg-proto
239 + x11-libs/libXxf86vm
240 + )
241 + )"
242 +RDEPEND="${COMMON_DEPEND}"
243 +
244 +REQUIRED_USE=" || ( vdr xine )"
245 +
246 +VDR_CONFD_FILE="${FILESDIR}/confd-2.0.0"
247 +
248 +pkg_setup() {
249 + vdr-plugin-2_pkg_setup
250 +
251 + if use xine; then
252 + XINE_PLUGIN_DIR=$(pkg-config --variable=plugindir libxine)
253 + [ -z "${XINE_PLUGIN_DIR}" ] && die "Could not find xine plugin dir"
254 + fi
255 +}
256 +
257 +src_prepare() {
258 + vdr-plugin-2_src_prepare
259 +
260 + # bug 711978
261 + sed -e "s:X11 opengl:X11 OpenGl:" -i configure || die
262 +}
263 +src_configure() {
264 + local myconf
265 +
266 + if has_version ">=media-libs/xine-lib-1.2"; then
267 + myconf="${myconf} --enable-libavutil"
268 + else
269 + myconf="${myconf} --disable-libavutil"
270 + fi
271 +
272 + # No autotools based configure script
273 + ./configure \
274 + --cc=$(tc-getCC) \
275 + --cxx=$(tc-getCXX) \
276 + $(use_enable X x11) \
277 + $(use_enable X xshm) \
278 + $(use_enable X xdpms) \
279 + $(use_enable X xshape) \
280 + $(use_enable X xrandr) \
281 + $(use_enable X xrender) \
282 + $(use_enable fbcon fb) \
283 + $(use_enable vdr) \
284 + $(use_enable xine libxine) \
285 + $(use_enable libextractor) \
286 + $(use_enable caps libcap) \
287 + $(use_enable cec libcec) \
288 + $(use_enable jpeg libjpeg) \
289 + $(use_enable xinerama) \
290 + $(use_enable dbus dbus-glib-1) \
291 + $(use_enable nls i18n) \
292 + $(use_enable bluray libbluray) \
293 + $(use_enable opengl) \
294 + ${myconf} \
295 + || die
296 +
297 + # UINT64_C is needed by ffmpeg headers
298 + append-cxxflags -D__STDC_CONSTANT_MACROS
299 +}
300 +
301 +src_install() {
302 + if use vdr; then
303 + vdr-plugin-2_src_install
304 +
305 + # bug 346989
306 + insinto /etc/vdr/plugins/xineliboutput/
307 + doins examples/allowed_hosts.conf
308 + fowners -R vdr:vdr /etc/vdr/
309 +
310 + if use nls; then
311 + emake DESTDIR="${D}" i18n
312 + fi
313 +
314 + if use xine; then
315 + doinitd "${FILESDIR}"/vdr-frontend
316 +
317 + insinto $XINE_PLUGIN_DIR
318 + doins xineplug_inp_xvdr.so
319 +
320 + insinto $XINE_PLUGIN_DIR/post
321 + doins xineplug_post_*.so
322 +
323 + if use fbcon; then
324 + dobin vdr-fbfe
325 +
326 + insinto $VDR_PLUGIN_DIR
327 + doins libxineliboutput-fbfe.so.*
328 + fi
329 +
330 + if use X; then
331 + dobin vdr-sxfe
332 +
333 + insinto $VDR_PLUGIN_DIR
334 + doins libxineliboutput-sxfe.so.*
335 + fi
336 + fi
337 + else
338 + emake DESTDIR="${D}" install
339 +
340 + dodoc HISTORY README
341 + fi
342 +}