62 lines
1.8 KiB
Bash
62 lines
1.8 KiB
Bash
#!/usr/bin/env bash
|
|
name='mesa'
|
|
release='4'
|
|
version='24.0.1'
|
|
url='https://gitlab.freedesktop.org/mesa/mesa'
|
|
description='An open-source implementation of the OpenGL specification'
|
|
email='aliriza.keskin@pardus.org.tr'
|
|
maintainer='aliriza'
|
|
license=('GPLv3')
|
|
source=("https://gitlab.freedesktop.org/mesa/mesa/-/archive/mesa-$version/mesa-mesa-$version.tar.gz")
|
|
depends=(libva libvdpau libdrm llvm glslang elfutils libclc py3-mako libglvnd eudev)
|
|
makedepends=(git)
|
|
md5sums=('5aa8b0f26e4c081897ddd79df111c24b')
|
|
group=(media.libs)
|
|
uses=(wayland x11)
|
|
wayland_depends=(wayland wayland-protocols)
|
|
x11_depends=(libxshmfence libXxf86vm libXrandr)
|
|
arch=('x86_64')
|
|
|
|
cd $name-$name-$version
|
|
|
|
setup(){
|
|
meson setup build --prefix=/usr \
|
|
-D b_ndebug=true \
|
|
-D b_lto=true \
|
|
-D platforms=$(use_opt x11 x11 ""),$(use_opt wayland wayland "") \
|
|
-D gallium-drivers=r300,r600,radeonsi,nouveau,virgl,svga,swrast,i915,iris,crocus,zink,d3d12 \
|
|
-D vulkan-drivers=amd,intel,intel_hasvk,swrast,virtio \
|
|
-D vulkan-layers=device-select,intel-nullhw,overlay \
|
|
-D dri3=enabled \
|
|
-D egl=enabled \
|
|
-D gallium-extra-hud=true \
|
|
-D gallium-nine=true \
|
|
-D gallium-opencl=icd \
|
|
-D gallium-va=enabled \
|
|
-D gallium-vdpau=enabled \
|
|
-D gallium-xa=enabled \
|
|
-D gbm=enabled \
|
|
-D gles1=disabled \
|
|
-D gles2=enabled \
|
|
-D glvnd=true \
|
|
-D glx=dri \
|
|
-D llvm=enabled \
|
|
-D osmesa=true \
|
|
-D shared-glapi=enabled \
|
|
-D microsoft-clc=disabled \
|
|
-D video-codecs=vc1dec,h264dec,h264enc,h265dec,h265enc \
|
|
-D valgrind=disabled \
|
|
-D lmsensors=disabled \
|
|
-Dzstd=false
|
|
|
|
}
|
|
|
|
build(){
|
|
ninja -C build ${jobs}
|
|
}
|
|
|
|
package(){
|
|
ninja -C build install
|
|
}
|
|
|