blob: 9909b2c28dd0d56f1f3065ca2d52e73424d131aa (
plain)
1 # Description: Mesa 3D Graphics Library
2 # URL: https://www.mesa3d.org/
3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
4 # Depends on: elfutils-32 eudev-32 expat-32 libdrm-32 libvdpau-32 llvm-32 mesa3d xorg-dri3proto-32 xorg-glproto-32 xorg-libxdamage-32 xorg-libxshmfence-32 xorg-libxvmc-32 xorg-presentproto-32
5
6 name=mesa3d-32
7 version=17.0.4
8 release=1
9 source=(ftp://ftp.freedesktop.org/pub/mesa/mesa-$version.tar.xz)
10
11 build() {
12 cd mesa-$version
13
14 local f
15 for f in $(grep -r -l llvm-config | xargs); do
16 sed -i -e 's|llvm-config|llvm-config-32|g' $f
17 done
18
19 autoreconf --force --install --symlink
20
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 --libdir=/usr/lib32 \
25 --enable-gallium-llvm \
26 --enable-gbm \
27 --enable-gles1 \
28 --enable-gles2 \
29 --enable-glx-tls \
30 --enable-osmesa \
31 --enable-texture-float \
32 --enable-xa \
33 --enable-vdpau \
34 --enable-llvm-shared-libs \
35 --disable-dependency-tracking \
36 --with-egl-platforms=x11,drm \
37 --with-gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \
38 --with-vulkan-drivers=intel,radeon \
39 --host=i686-pc-linux-gnu
40
41 make
42 make DESTDIR=$PKG install
43
44 rm -r $PKG/usr/include $PKG/etc
45 }
|