compat-32/mesa-32/Pkgfile

52 lines
1.6 KiB
Plaintext
Raw Normal View History

# Description: Mesa 3D Graphics Library
2017-03-02 22:20:48 +11:00
# 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
# Optional: glslang wayland-32 wayland-protocols
2020-07-22 17:54:19 -05:00
name=mesa-32
2021-09-24 22:45:47 +10:00
version=21.2.2
2019-11-15 10:15:51 -06:00
release=1
2020-11-10 00:27:04 +11:00
source=(https://archive.mesa3d.org/mesa-$version.tar.xz
x86-linux-gnu
gallium-llvm13.patch)
build() {
prt-get isinst wayland-32 wayland-protocols && PKGMK_MESA_PLATFORMS+=',wayland'
prt-get isinst glslang && PKGMK_MESA_PLATFORMS+=' -D vulkan-overlay-layer=true -D vulkan-device-select-layer=true'
patch -d mesa-$version -p1 -i $SRC/gallium-llvm13.patch
meson setup mesa-$version build $PKGMK_MESA3D \
2019-05-26 22:11:28 +10:00
--cross-file=$SRC/x86-linux-gnu \
--prefix=/usr \
--libdir=/usr/lib32 \
2019-05-26 22:11:28 +10:00
--sysconfdir=/etc \
2020-11-10 00:27:04 +11:00
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
2021-01-03 01:20:30 +11:00
-D llvm=enabled \
2020-12-18 22:49:40 +11:00
-D shared-llvm=enabled \
2021-01-03 01:20:30 +11:00
-D gbm=enabled \
-D gles1=disabled \
2021-01-03 01:20:30 +11:00
-D gles2=enabled \
2021-04-11 01:26:27 +10:00
-D osmesa=true \
-D platforms=x11$PKGMK_MESA_PLATFORMS \
2020-12-18 22:49:40 +11:00
-D gallium-xa=enabled \
-D gallium-vdpau=enabled \
2021-08-20 14:23:00 -05:00
-D gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau,iris,virgl \
2020-11-10 00:27:04 +11:00
-D vulkan-drivers=amd,intel \
-D glvnd=true \
-D dri3=enabled \
-D egl=enabled
2019-05-26 22:11:28 +10:00
2020-11-10 00:27:04 +11:00
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
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}}
}