compat-32/mesa-32/Pkgfile

40 lines
1.1 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
2020-07-22 17:54:19 -05:00
# 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
2020-07-22 17:54:19 -05:00
name=mesa-32
2021-03-27 18:13:01 +11:00
version=20.3.5
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
2019-05-26 22:11:28 +10:00
x86-linux-gnu)
build() {
2020-11-10 00:27:04 +11:00
meson setup build mesa-$version \
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 \
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=enabled \
-D gles2=enabled \
2020-11-10 00:27:04 +11:00
-D osmesa=gallium \
2020-12-18 22:49:40 +11:00
-D gallium-xa=enabled \
-D gallium-vdpau=enabled \
-D platforms=x11 \
2020-11-10 00:27:04 +11:00
-D gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \
-D vulkan-drivers=amd,intel \
-D glvnd=true
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}}
}