1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
|
# Maintainer: Márcio Silva <coadde@lavabit.com>
pkgbase=mesa-git
pkgname=(
mesa-git
)
true && pkgname=(
khrplatform-devel-git
libcl-libre-git
libegl-git
libgbm-git
libgl-gallium-git
libgl-git
libglapi-git
libgles-git
libvg-git
libwayland-egl-git
osmesa-git
ati-dri-git
intel-dri-git
nouveau-dri-git
ati-xvmc-git
nouveau-xvmc-git
soft-xvmc-git
mesa-git
)
true && pkgver=9.0.0.git20120904
true && pkgrel=1
_mesaver=9.0
arch=(
i686
x86_64
mips64el
)
makedepends=(
clang
dri2proto
git
glproto-git
imake
libdrm-git
libxdamage
libxml2
libxxf86vm
libxvmc
llvm
python2
wayland
) # wine for d3d1x api
license=(
MIT
Khronos
LGPL
)
url=http://mesa3d.sourceforge.net
_gitroot=git://anongit.freedesktop.org/git/mesa/mesa
_gitname=${pkgbase%-git}
build() {
msg 'Connecting to git.freedesktop.org GIT server....'
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
else
git clone $_gitroot --depth 1
fi
msg 'GIT checkout done or server timeout'
msg 'Starting make...'
cd $srcdir
# Cleanup and prepare the build dir
[ -d build ] && rm -rf build
cp -r $_gitname build
cd build
autoreconf -vfi
./autogen.sh --prefix=/usr \
--enable-dri \
--enable-egl \
--enable-gallium-egl \
--enable-gallium-g3dvl \
--enable-gallium-gbm \
--enable-gallium-llvm \
--enable-gbm \
--enable-gles1 \
--enable-gles2 \
--enable-glx \
--enable-glx-tls \
--enable-opencl \
--enable-openvg \
--enable-osmesa \
--enable-r600-llvm-compiler \
--enable-shared-glapi \
--enable-texture-float \
--enable-xa \
--enable-xvmc \
--with-clang-libdir=/usr/lib \
--with-egl-platforms=drm,x11,wayland \
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
--with-dri-drivers=i915,i965,r200,nouveau,radeon,swrast \
--with-gallium-drivers=r300,r600,nouveau,swrast
#--enable-d3d1x \
echo -e "\ninstall: " >> src/mesa/drivers/osmesa/Makefile
make
}
package_khrplatform-devel-git() {
conflicts=(
khrplatform-devel
)
provides=(
khrplatform-devel=${_mesaver}
)
pkgdesc='Khronos platform development package'
cd $srcdir/build
install -m755 -d $pkgdir/usr/include/KHR
install -m755 -d $pkgdir/usr/share/licenses/khrplatform-devel
bin/minstall include/KHR/khrplatform.h $pkgdir/usr/include/KHR
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/khrplatform-devel
bin/minstall docs/license.html $pkgdir/usr/share/licenses/khrplatform-devel
}
package_libcl-libre-git() {
depends=(
gcc-libs
libdrm-git
libffi
libxcb
udev
)
conflicts=(
libcl
)
provides=(
libcl
)
replaces=(
libcl
)
pkgdesc='A libre version of OpenCL library and ICD loader, (Mesa OpenCL)'
make -C $srcdir/build/src/gallium/targets/opencl DESTDIR=$pkgdir install
cd $srcdir/build
#install -m755 -d $pkgdir/usr/lib/opencl
install -m755 -d $pkgdir/usr/share/licenses/libcl
#bin/minstall src/gallium/targets/opencl/libOpenCL.la $pkgdir/usr/lib
#bin/minstall lib/libOpenCL.so* $pkgdir/usr/lib
#bin/minstall src/gallium/targets/pipe-loader/*.so $pkgdir/usr/lib/opencl
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/libcl
bin/minstall docs/license.html $pkgdir/usr/share/licenses/libcl
}
package_libegl-git() {
depends=(
khrplatform-devel-git
libgbm-git
libxext
libxfixes
libvg-git
wayland
)
conflicts=(
libegl
)
provides=(
libegl=$_mesaver
)
pkgdesc='Mesa EGL libraries and headers'
#make -C $srcdir/build/src/egl DESTDIR=$pkgdir install
make -C $srcdir/build/src/gallium/targets/egl-static DESTDIR=$pkgdir install
cd $srcdir/build
install -m755 -d $pkgdir/usr/include/EGL
#install -m755 -d $pkgdir/usr/lib/egl
install -m755 -d $pkgdir/usr/lib/pkgconfig
#install -m755 -d $pkgdir/usr/share/doc/libegl
install -m755 -d $pkgdir/usr/share/licenses/libegl
bin/minstall include/EGL/* $pkgdir/usr/include/EGL
bin/minstall src/egl/main/libEGL.la $pkgdir/usr/lib
bin/minstall lib/libEGL.so* $pkgdir/usr/lib
#bin/minstall lib/egl/egl_gallium.so $pkgdir/usr/lib/egl
bin/minstall src/egl/main/egl.pc $pkgdir/usr/lib/pkgconfig
#bin/minstall docs/egl.html $pkgdir/usr/share/doc/libegl
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/libegl
bin/minstall docs/license.html $pkgdir/usr/share/licenses/libegl
}
package_libgbm-git() {
depends=(
gcc-libs
libdrm-git
libffi
libglapi-git
libxcb
udev
)
conflicts=(
libgbm
)
provides=(
libgbm=$_mesaver
)
pkgdesc='Mesa GBM libraries and header'
make -C $srcdir/build/src/gbm DESTDIR=$pkgdir install
make -C $srcdir/build/src/gallium/targets/gbm DESTDIR=$pkgdir install
cd $srcdir/build
#install -m755 -d $pkgdir/usr/lib/include
#install -m755 -d $pkgdir/usr/lib/gbm
#install -m755 -d $pkgdir/usr/lib/pkgconfig
install -m755 -d $pkgdir/usr/share/licenses/libgbm
#bin/minstall src/gbm/main/gbm.h $pkgdir/usr/include
#bin/minstall src/gbm/libgbm.la $pkgdir/usr/lib
#bin/minstall lib/libgbm.so* $pkgdir/usr/lib
#bin/minstall src/gallium/targets/gbm/gbm_gallium_drm.so $pkgdir/usr/lib/gbm
bin/minstall src/gallium/targets/pipe-loader/*.so $pkgdir/usr/lib/gbm
#bin/minstall src/gbm/main/gbm.pc $pkgdir/usr/lib/pkgconfig
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/libgbm
bin/minstall docs/license.html $pkgdir/usr/share/licenses/libgbm
}
package_libgl-gallium-git() {
depends=(
expat
gcc-libs
libdrm-git
libglapi-git
libxdamage
libxxf86vm
)
conflicts=(
libgl libgl-git
)
provides=(
libgl=$_mesaver
)
pkgdesc='Mesa 3D OpenGL graphics library and DRI Gallium software rasterizer'
make -C $srcdir/build/src/glx DESTDIR=$pkgdir install
make -C $srcdir/build/src/mesa/libdricore DESTDIR=$pkgdir install
make -C $srcdir/build/src/gallium/targets/dri-swrast DESTDIR=$pkgdir install
cd $srcdir/build
#install -m755 -d $pkgdir/usr/lib/xorg/modules/dri
install -m755 -d $pkgdir/usr/share/licenses/libgl
#bin/minstall src/glx/libGL.la $pkgdir/usr/lib
#bin/minstall lib/libGL.so* $pkgdir/usr/lib
#bin/minstall src/mesa/libdricore/libdricore*.la $pkgdir/usr/lib
#bin/minstall lib/libdricore*.so* $pkgdir/usr/lib
#bin/minstall lib/gallium/swrast_dri.so $pkgdir/usr/lib/xorg/modules/dri
#bin/minstall docs/openGL.txt $pkgdir/usr/share/doc/libgl
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/libgl
bin/minstall docs/license.html $pkgdir/usr/share/licenses/libgl
}
package_libgl-git() {
depends=(
expat
gcc-libs
libdrm-git
libglapi-git
libxdamage
libxxf86vm
)
conflicts=(
libgl libgl-gallium-git
)
provides=(
libgl=$_mesaver
)
pkgdesc='Mesa 3D OpenGL graphics library and DRI software rasterizer'
make -C $srcdir/build/src/glx DESTDIR=$pkgdir install
make -C $srcdir/build/src/mesa/libdricore DESTDIR=$pkgdir install
make -C $srcdir/build/src/mesa/drivers/dri/swrast DESTDIR=$pkgdir install
cd $srcdir/build
#install -m755 -d $pkgdir/usr/lib/xorg/modules/dri
install -m755 -d $pkgdir/usr/share/licenses/libgl
#bin/minstall src/glx/libGL.la $pkgdir/usr/lib
#bin/minstall lib/libGL.so* $pkgdir/usr/lib
#bin/minstall src/mesa/libdricore/libdricore*.la $pkgdir/usr/lib
#bin/minstall lib/libdricore*.so* $pkgdir/usr/lib
#bin/minstall src/mesa/drivers/dri/swrast/swrast_dri.la $pkgdir/usr/lib/xorg/modules/dri
#bin/minstall lib/swrast_dri.so $pkgdir/usr/lib/xorg/modules/dri
#bin/minstall docs/openGL.txt $pkgdir/usr/share/doc/libgl
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/libgl
bin/minstall docs/license.html $pkgdir/usr/share/licenses/libgl
}
package_libglapi-git() {
depends=(
glibc
)
conflicts=(
libglapi
)
provides=(
libglapi=$_mesaver
)
pkgdesc='free implementation of the GL API -- shared library. The Mesa GL API module is responsible for dispatching all the gl* functions'
make -C $srcdir/build/src/mapi/shared-glapi DESTDIR=$pkgdir install
cd $srcdir/build
#install -m755 -d $pkgdir/usr/lib
install -m755 -d $pkgdir/usr/share/licenses/libglapi
#bin/minstall src/mapi/shared-glapi/libglapi.la $pkgdir/usr/lib
#bin/minstall lib/libglapi.so* $pkgdir/usr/lib
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/libglapi
bin/minstall docs/license.html $pkgdir/usr/share/licenses/libglapi
}
package_libgles-git() {
depends=(
khrplatform-devel-git
libdrm-git
libglapi-git
)
conflicts=(
libgles
)
provides=(
libgles=$_mesaver
)
pkgdesc='Mesa GLES libraries and headers'
make -C $srcdir/build/src/mapi/es1api DESTDIR=$pkgdir install
make -C $srcdir/build/src/mapi/es2api DESTDIR=$pkgdir install
cd $srcdir/build
#install -m755 -d $pkgdir/usr/include/GLES
#install -m755 -d $pkgdir/usr/include/GLES2
#install -m755 -d $pkgdir/usr/lib/pkgconfig
install -m755 -d $pkgdir/usr/share/licenses/libgles
#bin/minstall include/GLES/* $pkgdir/usr/include/GLES
#bin/minstall include/GLES2/* $pkgdir/usr/include/GLES2
#bin/minstall src/mapi/es1api/libGLESv1_CM.la $pkgdir/usr/lib
#bin/minstall src/mapi/es2api/libGLESv2.la $pkgdir/usr/lib
#bin/minstall lib/libGLESv*.so* $pkgdir/usr/lib
#bin/minstall src/mapi/es1api/glesv1_cm.pc $pkgdir/usr/lib/pkgconfig
#bin/minstall src/mapi/es2api/glesv2.pc $pkgdir/usr/lib/pkgconfig
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/libgles
bin/minstall docs/license.html $pkgdir/usr/share/licenses/libgles
}
package_libvg-git() {
depends=(
glibc
)
conflicts=(
libvg
)
provides=(
libvg=$_mesaver
)
pkgdesc='Mesa OpenVG libraries and headers'
make -C $srcdir/build/src/mapi/vgapi DESTDIR=$pkgdir install
cd $srcdir/build
#install -m755 -d $pkgdir/usr/include/VG
#install -m755 -d $pkgdir/usr/lib/pkgconfig
#install -m755 -d $pkgdir/usr/share/doc/libvg
install -m755 -d $pkgdir/usr/share/licenses/libvg
#bin/minstall include/VG/* $pkgdir/usr/include/VG
#bin/minstall src/mapi/vgapi/libOpenVG.la $pkgdir/usr/lib
#bin/minstall lib/libOpenVG.so* $pkgdir/usr/lib
#bin/minstall src/mapi/vgapi/vg.pc $pkgdir/usr/lib/pkgconfig
#bin/minstall docs/openvg.html $pkgdir/usr/share/doc/libvg
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/libvg
bin/minstall docs/license.html $pkgdir/usr/share/licenses/libvg
}
package_libwayland-egl-git() {
depends=(
glibc
)
conflicts=(
libwayland-egl
)
provides=(
libwayland-egl=$_mesaver
)
pkgdesc='Mesa Wayland-EGL library'
make -C $srcdir/build/src/egl/wayland/wayland-egl DESTDIR=$pkgdir install
cd $srcdir/build
#install -m755 -d $pkgdir/usr/lib/pkgconfig
install -m755 -d $pkgdir/usr/share/licenses/libwayland
#bin/minstall src/egl/wayland/wayland-egl/libwayland-egl.la $pkgdir/usr/lib
#bin/minstall lib/libwayland-egl.so* $pkgdir/usr/lib
#bin/minstall src/egl/wayland/wayland-egl/wayland-egl.pc $pkgdir/usr/lib/pkgconfig
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/libwayland
bin/minstall docs/license.html $pkgdir/usr/share/licenses/libwayland
}
package_osmesa-git() {
depends=(
mesa-git
)
conflicts=(
osmesa
)
provides=(
osmesa=$_mesaver
)
optdepends=(
'opengl-man-pages: for the OpenGL API man pages'
)
pkgdesc='Mesa 3D off-screen rendering library'
make -C $srcdir/build/src/mesa/drivers/osmesa DESTDIR=$pkgdir install
cd $srcdir/build
#install -m755 -d $pkgdir/usr/lib/pkgconfig
#install -m755 -d $pkgdir/usr/share/doc/osmesa
install -m755 -d $pkgdir/usr/share/licenses/osmesa
#bin/minstall src/mesa/drivers/osmesa/libOSMesa.la $pkgdir/usr/lib
#bin/minstall lib/libOSMesa.so* $pkgdir/usr/lib
#bin/minstall src/mesa/drivers/osmesa/osmesa.pc $pkgdir/usr/lib/pkgconfig
#bin/minstall docs/osmesa.html $pkgdir/usr/share/doc/osmesa
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/osmesa
bin/minstall docs/license.html $pkgdir/usr/share/licenses/osmesa
}
package_ati-dri-git() {
depends=(
libgl-git
)
conflicts=(
ati-dri
'xf86-video-ati<6.9.0-6'
)
provides=(
ati-dri=$_mesaver
)
pkgdesc='Mesa DRI + Gallium3D r300 drivers for AMD/ATI Radeon'
# classic mesa driver for R300 r300_dri.so
#make -C $srcdir/build/src/mesa/drivers/dri/r200 DESTDIR=$pkgdir install
#make -C $srcdir/build/src/mesa/drivers/dri/radeon DESTDIR=$pkgdir install
# gallium3D driver for R300 r300_dri.so
#make -C $srcdir/build/src/gallium/targets/dri-r300 DESTDIR=$pkgdir install
#make -C $srcdir/build/src/gallium/targets/dri-r600 DESTDIR=$pkgdir install
cd $srcdir/build
install -m755 -d $pkgdir/usr/lib/xorg/modules/dri
install -m755 -d $pkgdir/usr/share/licenses/ati-dri
# classic mesa driver for R300 r300_dri.so
bin/minstall lib/r200_dri.so $pkgdir/usr/lib/xorg/modules/dri
bin/minstall lib/radeon_dri.so $pkgdir/usr/lib/xorg/modules/dri
# gallium3D driver for R300 r300_dri.so
bin/minstall lib/gallium/r300_dri.so $pkgdir/usr/lib/xorg/modules/dri
bin/minstall lib/gallium/r600_dri.so $pkgdir/usr/lib/xorg/modules/dri
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/ati-dri
bin/minstall docs/license.html $pkgdir/usr/share/licenses/ati-dri
}
package_intel-dri-git() {
depends=(
libgl-git
)
conflicts=(
intel-dri
)
provides=(
intel-dri=$_mesaver
)
pkgdesc='Mesa DRI drivers for Intel'
#make -C $srcdir/build/src/mesa/drivers/dri/i915 DESTDIR=$pkgdir install
#make -C $srcdir/build/src/mesa/drivers/dri/i965 DESTDIR=$pkgdir install
cd $srcdir/build
install -m755 -d $pkgdir/usr/lib/xorg/modules/dri
install -m755 -d $pkgdir/usr/share/licenses/intel-dri
bin/minstall lib/i915_dri.so $pkgdir/usr/lib/xorg/modules/dri
bin/minstall lib/i965_dri.so $pkgdir/usr/lib/xorg/modules/dri
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/intel-dri
bin/minstall docs/license.html $pkgdir/usr/share/licenses/intel-dri
}
package_nouveau-dri-git() {
depends=(
libgl-git
)
conflicts=(
nouveau-dri
)
provides=(
nouveau-dri=$_mesaver
)
pkgdesc='Mesa classic DRI + Gallium3D drivers for Nouveau'
# classic mesa driver for nv10 , nv20 nouveau_vieux_dri.so
#make -C $srcdir/build/src/mesa/drivers/dri/nouveau DESTDIR=$pkgdir install
# gallium3D driver for nv30 - nv40 - nv50 nouveau_dri.so
#make -C $srcdir/build/src/gallium/targets/dri-nouveau DESTDIR=$pkgdir install
cd $srcdir/build
install -m755 -d $pkgdir/usr/lib/xorg/modules/dri
install -m755 -d $pkgdir/usr/share/licenses/nouveau-dri
bin/minstall lib/nouveau_vieux_dri.so $pkgdir/usr/lib/xorg/modules/dri
bin/minstall lib/gallium/nouveau_dri.so $pkgdir/usr/lib/xorg/modules/dri
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/nouveau-dri
bin/minstall docs/license.html $pkgdir/usr/share/licenses/nouveau-dri
}
package_ati-xvmc-git() {
depends=(
gcc-libs
libdrm-git
libxv
)
conflicts=(
ati-xvmc
)
provides=(
ati-xvmc=$_mesaver
)
pkgdesc='Mesa Gallium3D XvMC libraries for ATI'
make -C $srcdir/build/src/gallium/targets/xvmc-r300 DESTDIR=$pkgdir install
make -C $srcdir/build/src/gallium/targets/xvmc-r600 DESTDIR=$pkgdir install
cd $srcdir/build
#install -m755 -d $pkgdir/usr/lib
install -m755 -d $pkgdir/usr/share/licenses/ati-xvmc
#bin/minstall lib/gallium/libXvMCr?00.so* $pkgdir/usr/lib
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/libxvmc
bin/minstall docs/license.html $pkgdir/usr/share/licenses/libxvmc
}
package_nouveau-xvmc-git() {
depends=(
gcc-libs
libdrm-git
libxv
)
conflicts=(
nouveau-xvmc
)
provides=(
nouveau-xvmc=$_mesaver
)
pkgdesc='Mesa Gallium3D XvMC library for Nouveau'
make -C $srcdir/build/src/gallium/targets/xvmc-nouveau DESTDIR=$pkgdir install
cd $srcdir/build
#install -m755 -d $pkgdir/usr/lib
install -m755 -d $pkgdir/usr/share/licenses/nouveau-xvmc
#bin/minstall lib/gallium/libXvMCnouveau.so* $pkgdir/usr/lib
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/nouveau-xvmc
bin/minstall docs/license.html $pkgdir/usr/share/licenses/nouveau-xvmc
}
package_soft-xvmc-git() {
depends=(
gcc-libs
libdrm-git
libxv
)
conflicts=(
soft-xvmc
)
provides=(
soft-xvmc=$_mesaver
)
pkgdesc='Mesa Gallium3D XvMC library for Software Rasterizer'
make -C $srcdir/build/src/gallium/targets/xvmc-softpipe DESTDIR=$pkgdir install
cd $srcdir/build
#install -m755 -d $pkgdir/usr/lib
install -m755 -d $pkgdir/usr/share/licenses/soft-xvmc
#bin/minstall lib/gallium/libXvMCsoftpipe.so* $pkgdir/usr/lib
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/soft-xvmc
bin/minstall docs/license.html $pkgdir/usr/share/licenses/soft-xvmc
}
package_mesa-git() {
depends=(
dri2proto-git
glproto-git
libgl-git
)
optdepends=(
'ati-dri-git: for ATI Video Hardware'
'intel-dri-git: for Intel Video Hardware'
'nouveau-dri-git: for nVidia Video Hardware'
'ati-xvmc-git: for X11 Video Motion Compensation on ATI Video Hardware'
'nouveau-xvmc-git: for X11 Video Motion Compensation on nVidia Video Hardware'
'soft-xvmc-git: for X11 Video Motion Compensation on DRI Software Rasterizer'
'libcl: for OpenCL Graphics Video Hardware Support'
'libwayland-egl-git: for Wayland Desktop Graphics'
'opengl-man-pages: for the OpenGL API man pages'
)
conflicts=(
mesa
)
provides=(
mesa=$_mesaver
)
pkgdesc='Mesa 3-D graphics libraries and include files'
cd $srcdir/build
make DESTDIR=$pkgdir install
rm -fr $pkgdir/usr/include/{EGL,GLES,GLES2,KHR,VG,gbm.h}
rm -fr $pkgdir/usr/lib/{egl,gbm,opencl,xorg}
rm -f $pkgdir/usr/lib/{libEGL*,libGL*,libGLESv*,libOSMesa*,libOpenCL*,libOpenVG*,libXvMC*,libdricore*,libgbm*,libglapi*,libwayland*}
rm -f $pkgdir/usr/lib/pkgconfig/{egl.pc,gbm.pc,glesv1_cm.pc,glesv2.pc,osmesa.pc,vg.pc,wayland-egl.pc}
install -m755 -d $pkgdir/usr/share/licenses/mesa
bin/minstall docs/COPYING $pkgdir/usr/share/licenses/mesa
bin/minstall docs/license.html $pkgdir/usr/share/licenses/mesa
}
|