2012-11-21 11:12:43 -06:00
|
|
|
# Description: Mesa 3D Graphics Library
|
2017-03-02 22:20:48 +11:00
|
|
|
# URL: https://www.mesa3d.org/
|
2013-02-02 01:54:23 +11:00
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2019-08-27 21:48:19 +10:00
|
|
|
# Depends on: elfutils-32 expat-32 libdrm-32 libglvnd-32 libvdpau-32 llvm-32 mesa3d xorg-libxdamage-32 xorg-libxrandr-32 xorg-libxshmfence-32 xorg-libxvmc-32 xorg-libxxf86vm-32
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
name=mesa3d-32
|
2020-04-03 09:48:31 -05:00
|
|
|
version=20.0.4
|
2019-11-15 10:15:51 -06:00
|
|
|
release=1
|
2019-05-26 22:11:28 +10:00
|
|
|
source=(https://mesa.freedesktop.org/archive/mesa-$version.tar.xz
|
|
|
|
x86-linux-gnu)
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
build() {
|
2015-03-18 23:02:49 -05:00
|
|
|
cd mesa-$version
|
2012-11-21 11:12:43 -06:00
|
|
|
|
2019-05-26 22:11:28 +10:00
|
|
|
meson build \
|
|
|
|
--cross-file=$SRC/x86-linux-gnu \
|
2013-11-23 20:16:25 +11:00
|
|
|
--prefix=/usr \
|
2012-11-21 11:12:43 -06:00
|
|
|
--libdir=/usr/lib32 \
|
2019-05-26 22:11:28 +10:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
-Dllvm=true \
|
|
|
|
-Dgbm=true \
|
|
|
|
-Dgles1=true \
|
|
|
|
-Dgles2=true \
|
|
|
|
-Dosmesa=gallium \
|
|
|
|
-Dgallium-xa=true \
|
|
|
|
-Dgallium-vdpau=true \
|
|
|
|
-Dshared-llvm=true \
|
|
|
|
-Dplatforms=x11,drm \
|
|
|
|
-Dgallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \
|
|
|
|
-Dvulkan-drivers=amd,intel \
|
|
|
|
-Dglvnd=true
|
|
|
|
|
|
|
|
DESTDIR=$PKG ninja -C build -j ${JOBS:-1} install
|
2014-03-19 12:57:26 +11:00
|
|
|
|
2018-08-15 21:18:43 +10:00
|
|
|
# indirect rendering symlink
|
|
|
|
ln -s libGLX_mesa.so.0 $PKG/usr/lib32/libGLX_indirect.so.0
|
|
|
|
|
2018-12-17 00:18:58 +11:00
|
|
|
rm -r $PKG/usr/{include,share/{drirc.d,glvnd}}
|
2012-11-21 11:12:43 -06:00
|
|
|
}
|