1 |
commit: 178a6a0b5c7e20e6ae2ae61cf1bc62b95bf4448d |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 18 19:14:14 2019 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 18 20:09:51 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=178a6a0b |
7 |
|
8 |
media-libs/libglvnd: Install pkg-config files |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
...-pkg-config-files-for-EGL-GL-GLES-and-GLX.patch | 219 +++++++++++++++++++++ |
13 |
...glvnd-1.1.1.ebuild => libglvnd-1.1.1-r1.ebuild} | 7 +- |
14 |
2 files changed, 225 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/media-libs/libglvnd/files/libglvnd-1.1.1-Add-pkg-config-files-for-EGL-GL-GLES-and-GLX.patch b/media-libs/libglvnd/files/libglvnd-1.1.1-Add-pkg-config-files-for-EGL-GL-GLES-and-GLX.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..02996f4f3d3 |
19 |
--- /dev/null |
20 |
+++ b/media-libs/libglvnd/files/libglvnd-1.1.1-Add-pkg-config-files-for-EGL-GL-GLES-and-GLX.patch |
21 |
@@ -0,0 +1,219 @@ |
22 |
+From 0dfaea2bcb7cdcc785f95e244223bd004a2d7fba Mon Sep 17 00:00:00 2001 |
23 |
+From: Kyle Brenneman <kbrenneman@××××××.com> |
24 |
+Date: Tue, 3 Sep 2019 08:13:34 -0600 |
25 |
+Subject: [PATCH] Add pkg-config files for EGL, GL, GLES, and GLX. |
26 |
+ |
27 |
+This preserves the names from Mesa's gl, glesv1_cm, glesv2, and egl pkgconfig |
28 |
+data, and for compatibility with that, gl.pc gives you libGL. |
29 |
+ |
30 |
+Also added glx.pc and opengl.pc for libglvnd's libGLX and libOpenGL libraries. |
31 |
+If newer applications want to explicitly depend on libGLX and the appropriate |
32 |
+rendering API they can ask for the new pkgconfig names. |
33 |
+ |
34 |
+Note that the version numbers in each file are the API versions that each |
35 |
+library exposes, not the libglvnd package version. |
36 |
+--- |
37 |
+ configure.ac | 6 ++++++ |
38 |
+ src/EGL/Makefile.am | 3 +++ |
39 |
+ src/EGL/egl.pc.in | 10 ++++++++++ |
40 |
+ src/GL/Makefile.am | 3 +++ |
41 |
+ src/GL/gl.pc.in | 10 ++++++++++ |
42 |
+ src/GLESv1/Makefile.am | 2 ++ |
43 |
+ src/GLESv1/glesv1_cm.pc.in | 10 ++++++++++ |
44 |
+ src/GLESv2/Makefile.am | 2 ++ |
45 |
+ src/GLESv2/glesv2.pc.in | 10 ++++++++++ |
46 |
+ src/GLX/Makefile.am | 2 ++ |
47 |
+ src/GLX/glx.pc.in | 10 ++++++++++ |
48 |
+ src/OpenGL/Makefile.am | 2 ++ |
49 |
+ src/OpenGL/opengl.pc.in | 10 ++++++++++ |
50 |
+ 13 files changed, 80 insertions(+) |
51 |
+ create mode 100644 src/EGL/egl.pc.in |
52 |
+ create mode 100644 src/GL/gl.pc.in |
53 |
+ create mode 100644 src/GLESv1/glesv1_cm.pc.in |
54 |
+ create mode 100644 src/GLESv2/glesv2.pc.in |
55 |
+ create mode 100644 src/GLX/glx.pc.in |
56 |
+ create mode 100644 src/OpenGL/opengl.pc.in |
57 |
+ |
58 |
+diff --git a/configure.ac b/configure.ac |
59 |
+index cdbb138..7feec30 100644 |
60 |
+--- a/configure.ac |
61 |
++++ b/configure.ac |
62 |
+@@ -324,11 +324,17 @@ AC_CONFIG_FILES([Makefile |
63 |
+ include/Makefile |
64 |
+ src/Makefile |
65 |
+ src/GL/Makefile |
66 |
++ src/GL/gl.pc |
67 |
++ src/OpenGL/opengl.pc |
68 |
+ src/OpenGL/Makefile |
69 |
++ src/GLESv1/glesv1_cm.pc |
70 |
+ src/GLESv1/Makefile |
71 |
++ src/GLESv2/glesv2.pc |
72 |
+ src/GLESv2/Makefile |
73 |
++ src/GLX/glx.pc |
74 |
+ src/GLX/Makefile |
75 |
+ src/EGL/Makefile |
76 |
++ src/EGL/egl.pc |
77 |
+ src/GLdispatch/Makefile |
78 |
+ src/GLdispatch/vnd-glapi/Makefile |
79 |
+ src/util/Makefile |
80 |
+diff --git a/src/EGL/Makefile.am b/src/EGL/Makefile.am |
81 |
+index 5c036dc..c55c83e 100644 |
82 |
+--- a/src/EGL/Makefile.am |
83 |
++++ b/src/EGL/Makefile.am |
84 |
+@@ -106,3 +106,6 @@ g_egldispatchstubs.c : $(GENERATE_DEPS) |
85 |
+ g_egldispatchstubs.h : $(GENERATE_DEPS) |
86 |
+ $(AM_V_GEN)$(PYTHON) $(GENERATE_DISPATCH_SCRIPT) header $(GENERATE_LIST_FILES) > $@ |
87 |
+ endif |
88 |
++ |
89 |
++pkgconfigdir = $(libdir)/pkgconfig |
90 |
++pkgconfig_DATA = egl.pc |
91 |
+diff --git a/src/EGL/egl.pc.in b/src/EGL/egl.pc.in |
92 |
+new file mode 100644 |
93 |
+index 0000000..ffae9e2 |
94 |
+--- /dev/null |
95 |
++++ b/src/EGL/egl.pc.in |
96 |
+@@ -0,0 +1,10 @@ |
97 |
++prefix=@prefix@ |
98 |
++exec_prefix=${prefix} |
99 |
++libdir=@libdir@ |
100 |
++includedir=@includedir@ |
101 |
++ |
102 |
++Name: egl |
103 |
++Description: EGL library and headers |
104 |
++Version: 1.5 |
105 |
++Libs: -L${libdir} -lEGL |
106 |
++Cflags: -I${includedir} |
107 |
+diff --git a/src/GL/Makefile.am b/src/GL/Makefile.am |
108 |
+index ecdcbd0..225fdcb 100644 |
109 |
+--- a/src/GL/Makefile.am |
110 |
++++ b/src/GL/Makefile.am |
111 |
+@@ -70,3 +70,6 @@ libGL_la_LIBADD += ../GLdispatch/libGLdispatch.la |
112 |
+ libGL_la_LIBADD += ../GLdispatch/vnd-glapi/libglapi_gl.la |
113 |
+ libGL_la_LIBADD += ../util/libutils_misc.la |
114 |
+ libGL_la_LIBADD += @LIB_DL@ |
115 |
++ |
116 |
++pkgconfigdir = $(libdir)/pkgconfig |
117 |
++pkgconfig_DATA = gl.pc |
118 |
+diff --git a/src/GL/gl.pc.in b/src/GL/gl.pc.in |
119 |
+new file mode 100644 |
120 |
+index 0000000..0eaa149 |
121 |
+--- /dev/null |
122 |
++++ b/src/GL/gl.pc.in |
123 |
+@@ -0,0 +1,10 @@ |
124 |
++prefix=@prefix@ |
125 |
++exec_prefix=${prefix} |
126 |
++libdir=@libdir@ |
127 |
++includedir=@includedir@ |
128 |
++ |
129 |
++Name: gl |
130 |
++Description: Legacy OpenGL and GLX library and headers |
131 |
++Version: 1.2 |
132 |
++Libs: -L${libdir} -lGL |
133 |
++Cflags: -I${includedir} |
134 |
+diff --git a/src/GLESv1/Makefile.am b/src/GLESv1/Makefile.am |
135 |
+index d20017d..88e07bc 100644 |
136 |
+--- a/src/GLESv1/Makefile.am |
137 |
++++ b/src/GLESv1/Makefile.am |
138 |
+@@ -38,3 +38,5 @@ libGLESv1_CM_la_LIBADD = \ |
139 |
+ ../GLdispatch/vnd-glapi/libglapi_glesv1.la \ |
140 |
+ ../util/libutils_misc.la |
141 |
+ |
142 |
++pkgconfigdir = $(libdir)/pkgconfig |
143 |
++pkgconfig_DATA = glesv1_cm.pc |
144 |
+diff --git a/src/GLESv1/glesv1_cm.pc.in b/src/GLESv1/glesv1_cm.pc.in |
145 |
+new file mode 100644 |
146 |
+index 0000000..daa247f |
147 |
+--- /dev/null |
148 |
++++ b/src/GLESv1/glesv1_cm.pc.in |
149 |
+@@ -0,0 +1,10 @@ |
150 |
++prefix=@prefix@ |
151 |
++exec_prefix=${prefix} |
152 |
++libdir=@libdir@ |
153 |
++includedir=@includedir@ |
154 |
++ |
155 |
++Name: glesv1_cm |
156 |
++Description: OpenGL ES-CM v1 library and headers |
157 |
++Version: 1.0 |
158 |
++Libs: -L${libdir} -lGLESv1_CM |
159 |
++Cflags: -I${includedir} |
160 |
+diff --git a/src/GLESv2/Makefile.am b/src/GLESv2/Makefile.am |
161 |
+index a9c2351..f40e06f 100644 |
162 |
+--- a/src/GLESv2/Makefile.am |
163 |
++++ b/src/GLESv2/Makefile.am |
164 |
+@@ -38,3 +38,5 @@ libGLESv2_la_LIBADD = \ |
165 |
+ ../GLdispatch/vnd-glapi/libglapi_glesv2.la \ |
166 |
+ ../util/libutils_misc.la |
167 |
+ |
168 |
++pkgconfigdir = $(libdir)/pkgconfig |
169 |
++pkgconfig_DATA = glesv2.pc |
170 |
+diff --git a/src/GLESv2/glesv2.pc.in b/src/GLESv2/glesv2.pc.in |
171 |
+new file mode 100644 |
172 |
+index 0000000..a9fe839 |
173 |
+--- /dev/null |
174 |
++++ b/src/GLESv2/glesv2.pc.in |
175 |
+@@ -0,0 +1,10 @@ |
176 |
++prefix=@prefix@ |
177 |
++exec_prefix=${prefix} |
178 |
++libdir=@libdir@ |
179 |
++includedir=@includedir@ |
180 |
++ |
181 |
++Name: gles2 |
182 |
++Description: OpenGL ES v2/v3 library and headers |
183 |
++Version: 3.2 |
184 |
++Libs: -L${libdir} -lGLESv2 |
185 |
++Cflags: -I${includedir} |
186 |
+diff --git a/src/GLX/Makefile.am b/src/GLX/Makefile.am |
187 |
+index 030836b..0d19674 100644 |
188 |
+--- a/src/GLX/Makefile.am |
189 |
++++ b/src/GLX/Makefile.am |
190 |
+@@ -69,3 +69,5 @@ libGLX_la_SOURCES = \ |
191 |
+ libglxmapping.c \ |
192 |
+ libglxproto.c |
193 |
+ |
194 |
++pkgconfigdir = $(libdir)/pkgconfig |
195 |
++pkgconfig_DATA = glx.pc |
196 |
+diff --git a/src/GLX/glx.pc.in b/src/GLX/glx.pc.in |
197 |
+new file mode 100644 |
198 |
+index 0000000..1561181 |
199 |
+--- /dev/null |
200 |
++++ b/src/GLX/glx.pc.in |
201 |
+@@ -0,0 +1,10 @@ |
202 |
++prefix=@prefix@ |
203 |
++exec_prefix=${prefix} |
204 |
++libdir=@libdir@ |
205 |
++includedir=@includedir@ |
206 |
++ |
207 |
++Name: glx |
208 |
++Description: GLX library and headers |
209 |
++Version: 1.4 |
210 |
++Libs: -L${libdir} -lGLX |
211 |
++Cflags: -I${includedir} |
212 |
+diff --git a/src/OpenGL/Makefile.am b/src/OpenGL/Makefile.am |
213 |
+index 647d9e4..4b34dd5 100644 |
214 |
+--- a/src/OpenGL/Makefile.am |
215 |
++++ b/src/OpenGL/Makefile.am |
216 |
+@@ -47,3 +47,5 @@ libOpenGL_la_LIBADD = \ |
217 |
+ ../GLdispatch/vnd-glapi/libglapi_opengl.la \ |
218 |
+ ../util/libutils_misc.la |
219 |
+ |
220 |
++pkgconfigdir = $(libdir)/pkgconfig |
221 |
++pkgconfig_DATA = opengl.pc |
222 |
+diff --git a/src/OpenGL/opengl.pc.in b/src/OpenGL/opengl.pc.in |
223 |
+new file mode 100644 |
224 |
+index 0000000..d560c06 |
225 |
+--- /dev/null |
226 |
++++ b/src/OpenGL/opengl.pc.in |
227 |
+@@ -0,0 +1,10 @@ |
228 |
++prefix=@prefix@ |
229 |
++exec_prefix=${prefix} |
230 |
++libdir=@libdir@ |
231 |
++includedir=@includedir@ |
232 |
++ |
233 |
++Name: opengl |
234 |
++Description: OpenGL (without GLX) headers and interface |
235 |
++Version: 4.5 |
236 |
++Libs: -L${libdir} -lOpenGL |
237 |
++Cflags: -I${includedir} |
238 |
+-- |
239 |
+2.21.0 |
240 |
+ |
241 |
|
242 |
diff --git a/media-libs/libglvnd/libglvnd-1.1.1.ebuild b/media-libs/libglvnd/libglvnd-1.1.1-r1.ebuild |
243 |
similarity index 87% |
244 |
rename from media-libs/libglvnd/libglvnd-1.1.1.ebuild |
245 |
rename to media-libs/libglvnd/libglvnd-1.1.1-r1.ebuild |
246 |
index 89b1d84e95e..090fdd736c4 100644 |
247 |
--- a/media-libs/libglvnd/libglvnd-1.1.1.ebuild |
248 |
+++ b/media-libs/libglvnd/libglvnd-1.1.1-r1.ebuild |
249 |
@@ -27,14 +27,19 @@ IUSE="" |
250 |
|
251 |
RDEPEND=" |
252 |
!media-libs/mesa[-libglvnd(-)] |
253 |
+ !<media-libs/mesa-19.2.0_rc1 |
254 |
x11-libs/libX11[${MULTILIB_USEDEP}] |
255 |
" |
256 |
DEPEND="${PYTHON_DEPS} |
257 |
${RDEPEND}" |
258 |
|
259 |
+PATCHES=( |
260 |
+ "${FILESDIR}"/${P}-Add-pkg-config-files-for-EGL-GL-GLES-and-GLX.patch |
261 |
+) |
262 |
+ |
263 |
src_prepare() { |
264 |
default |
265 |
- [[ $PV = 9999* ]] && eautoreconf |
266 |
+ eautoreconf |
267 |
} |
268 |
|
269 |
multilib_src_configure() { |