1 |
commit: 6eb2c35a78f5dee16bb28199dfdb4c978fa2ce64 |
2 |
Author: Chi-Thanh Christopher Nguyen <chithanh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 27 14:51:26 2014 +0000 |
4 |
Commit: Chi-Thanh Christopher Nguyen <chithanh <AT> cs <DOT> tu-berlin <DOT> de> |
5 |
CommitDate: Tue May 27 14:51:26 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=6eb2c35a |
7 |
|
8 |
media-libs/mesa: perform registration of OpenMAX drivers |
9 |
|
10 |
--- |
11 |
media-libs/mesa/mesa-9999.ebuild | 21 +++++++++++++++++++++ |
12 |
1 file changed, 21 insertions(+) |
13 |
|
14 |
diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild |
15 |
index 2ebdb37..195c212 100644 |
16 |
--- a/media-libs/mesa/mesa-9999.ebuild |
17 |
+++ b/media-libs/mesa/mesa-9999.ebuild |
18 |
@@ -398,6 +398,12 @@ multilib_src_install() { |
19 |
fi |
20 |
eend $? |
21 |
fi |
22 |
+ |
23 |
+ if use openmax; then |
24 |
+ echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share/mesa/xdg\"" > "${T}/99mesaxdgomx" |
25 |
+ doenvd "${T}"/99mesaxdgomx |
26 |
+ keepdir /usr/share/mesa/xdg |
27 |
+ fi |
28 |
} |
29 |
|
30 |
multilib_src_install_all() { |
31 |
@@ -446,6 +452,15 @@ pkg_postinst() { |
32 |
eselect opencl set --use-old ${PN} |
33 |
fi |
34 |
|
35 |
+ # run omxregister-bellagio to make the OpenMAX drivers known system-wide |
36 |
+ if use openmax; then |
37 |
+ ebegin "Registering OpenMAX drivers" |
38 |
+ BELLAGIO_SEARCH_PATH="${EPREFIX}/usr/$(get_libdir)/libomxil-bellagio0" \ |
39 |
+ OMX_BELLAGIO_REGISTRY=${EPREFIX}/usr/share/mesa/xdg/.omxregister \ |
40 |
+ omxregister-bellagio |
41 |
+ eend $? |
42 |
+ fi |
43 |
+ |
44 |
# warn about patent encumbered texture-float |
45 |
if use !bindist; then |
46 |
elog "USE=\"bindist\" was not set. Potentially patent encumbered code was" |
47 |
@@ -467,6 +482,12 @@ pkg_postinst() { |
48 |
fi |
49 |
} |
50 |
|
51 |
+pkg_prerm() { |
52 |
+ if use openmax; then |
53 |
+ rm ${EPREFIX}/usr/share/mesa/xdg/.omxregister |
54 |
+ fi |
55 |
+} |
56 |
+ |
57 |
# $1 - VIDEO_CARDS flag |
58 |
# other args - names of DRI drivers to enable |
59 |
# TODO: avoid code duplication for a more elegant implementation |