forked from ports/compat-32
40 lines
1.1 KiB
Plaintext
40 lines
1.1 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 mesa xorg-libxdamage-32 xorg-libxrandr-32 xorg-libxshmfence-32 xorg-libxvmc-32 xorg-libxxf86vm-32 zstd-32
|
|
|
|
name=mesa-32
|
|
version=21.1.0
|
|
release=1
|
|
source=(https://archive.mesa3d.org/mesa-$version.tar.xz
|
|
x86-linux-gnu)
|
|
|
|
build() {
|
|
meson setup build mesa-$version \
|
|
--cross-file=$SRC/x86-linux-gnu \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--sysconfdir=/etc \
|
|
--buildtype=plain \
|
|
-D llvm=enabled \
|
|
-D shared-llvm=enabled \
|
|
-D gbm=enabled \
|
|
-D gles1=enabled \
|
|
-D gles2=enabled \
|
|
-D osmesa=true \
|
|
-D gallium-xa=enabled \
|
|
-D gallium-vdpau=enabled \
|
|
-D platforms=x11 \
|
|
-D gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \
|
|
-D vulkan-drivers=amd,intel \
|
|
-D glvnd=true
|
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
# 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}}
|
|
}
|