blob: 890f871129a222026fccd9b111c41af17f53eed3 (
plain)
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
|
# Maintainer: Márcio Silva <coadde@parabola.nu>
# Contributor: André Silva <emulatorman@parabola.nu>
pkgbase=mesa
_pkgname=libcl
pkgname=$pkgbase-$_pkgname
pkgver=10.6.7
pkgrel=1
pkgdesc='Mesa 3-D OpenCL library and ICD loader'
arch=('i686' 'x86_64')
url="http://${pkgbase}3d.sourceforge.net"
license=('custom')
depends=("$pkgbase" 'libclc' 'clang')
makedepends=('python2-mako' 'dri2proto' 'dri3proto' 'glproto' 'presentproto' 'python2' 'llvm')
provides=("$_pkgname" 'opencl-icd-loader')
conflicts=("$_pkgname" "$_pkgname-libre" 'opencl-nvidia' 'opencl-nvidia-304xx' 'ocl-icd')
replaces=("$_pkgname" "$_pkgname-libre" 'opencl-nvidia' 'opencl-nvidia-304xx')
source=(ftp://ftp.freedesktop.org/pub/$pkgbase/$pkgver/$pkgbase-$pkgver.tar.xz{,.sig}
0001-i965-Remove-early-release-of-DRI2-miptree.patch)
sha512sums=('c966bb56472bda5642c425255761e4e20fdcdf9d3a56fa3f5dcb2605525c09155e01a641a14f2a2a0b8fbba08646dbf04b69a388ff4a9dd63ab52e1eeb4f4107'
'SKIP'
'86bfab88131440d1e5aefd157f12d8927c1a71af4f29b43c607bd2c37ee87f8164c92dc4309fade3c667f7d5907f99d0aa79b5fee1b8ff0eafe5f6d869bbed99')
validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D') # Emil Velikov <emil.l.velikov@gmail.com>
prepare() {
cd $srcdir/$pkgbase-$pkgver
# Should fix FS#45750, tested by heftig - Not merged upstream
patch -Np1 -i ../0001-i965-Remove-early-release-of-DRI2-miptree.patch
}
build() {
cd $srcdir/$pkgbase-$pkgver
#autoreconf -vfi # our automake is far too new for their build system :)
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast \
--with-egl-platforms=x11,drm,wayland \
--enable-llvm-shared-libs \
--enable-egl \
--enable-gallium-llvm \
--enable-opencl \
--with-clang-libdir=/usr/lib
make
# fake installation
mkdir $srcdir/fakeinstall
make DESTDIR=$srcdir/fakeinstall install
}
package() {
cd $srcdir/$pkgbase-$pkgver
install -vm755 -d $pkgdir/usr/lib/
mv -v $srcdir/fakeinstall/usr/lib/libOpenCL* $pkgdir/usr/lib/
install -vm755 -d $pkgdir/usr/lib/gallium-pipe
mv -v $srcdir/fakeinstall/usr/lib/gallium-pipe/pipe_{nouveau,r300,swrast,vmwgfx}.so $pkgdir/usr/lib/gallium-pipe/
install -vm755 -d $pkgdir/usr/share/licenses/$pkgname
install -vm644 docs/COPYING $pkgdir/usr/share/licenses/$pkgname
install -vm644 docs/license.html $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
# vim:set ts=2 sw=2 et:
|