2006-04-07 18:48:00 +02:00
|
|
|
# Description: Mesa 3D Graphics Library
|
2020-06-18 20:33:08 -05:00
|
|
|
# URL: https://www.mesa3d.org/
|
2012-07-13 20:14:36 +02:00
|
|
|
# Maintainer: CRUX Xorg Team, xorg-ports at crux dot nu
|
2019-11-02 12:34:22 -05:00
|
|
|
# Depends on: elfutils libdrm libglvnd libvdpau llvm python3-mako xorg-libxdamage xorg-libxrandr xorg-libxshmfence xorg-libxvmc xorg-libxxf86vm
|
2019-11-02 15:00:45 +11:00
|
|
|
# Optional: libva
|
2006-04-07 18:48:00 +02:00
|
|
|
|
2020-07-22 12:21:45 +00:00
|
|
|
name=mesa
|
2021-04-09 15:35:20 +02:00
|
|
|
version=21.0.2
|
2019-10-25 22:06:35 -05:00
|
|
|
release=1
|
2020-07-22 12:21:45 +00:00
|
|
|
source=(https://mesa.freedesktop.org/archive/$name-$version.tar.xz)
|
2006-04-07 18:48:00 +02:00
|
|
|
|
|
|
|
build() {
|
2020-11-04 17:36:58 +01:00
|
|
|
meson setup build mesa-$version \
|
2014-02-16 22:43:47 +11:00
|
|
|
--prefix=/usr \
|
2015-01-16 20:36:11 +01:00
|
|
|
--sysconfdir=/etc \
|
2020-11-04 17:36:58 +01:00
|
|
|
--buildtype=plain \
|
2020-11-07 15:08:19 +01:00
|
|
|
-D llvm=enabled \
|
|
|
|
-D shared-llvm=enabled \
|
|
|
|
-D gbm=enabled \
|
|
|
|
-D gles1=enabled \
|
|
|
|
-D gles2=enabled \
|
2021-04-09 15:35:20 +02:00
|
|
|
-D osmesa=true \
|
2020-11-07 15:08:19 +01:00
|
|
|
-D gallium-xa=enabled \
|
|
|
|
-D gallium-vdpau=enabled \
|
|
|
|
-D platforms=x11 \
|
2020-11-04 17:36:58 +01:00
|
|
|
-D gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \
|
|
|
|
-D vulkan-drivers=amd,intel \
|
|
|
|
-D glvnd=true
|
2014-02-16 22:43:47 +11:00
|
|
|
|
2020-11-04 17:36:58 +01:00
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2018-08-11 14:10:56 -05:00
|
|
|
|
|
|
|
# indirect rendering symlink
|
|
|
|
ln -s libGLX_mesa.so.0 $PKG/usr/lib/libGLX_indirect.so.0
|
2006-04-07 18:48:00 +02:00
|
|
|
}
|