forked from ports/compat-32
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
# Description: Mesa 3D Graphics Library
|
|
# URL: https://www.mesa3d.org/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# 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
|
|
|
|
name=mesa3d-32
|
|
version=20.0.4
|
|
release=1
|
|
source=(https://mesa.freedesktop.org/archive/mesa-$version.tar.xz
|
|
x86-linux-gnu)
|
|
|
|
build() {
|
|
cd mesa-$version
|
|
|
|
meson build \
|
|
--cross-file=$SRC/x86-linux-gnu \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--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
|
|
|
|
# indirect rendering symlink
|
|
ln -s libGLX_mesa.so.0 $PKG/usr/lib32/libGLX_indirect.so.0
|
|
|
|
rm -r $PKG/usr/{include,share/{drirc.d,glvnd}}
|
|
}
|