Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: mesa-kisak-fresh #6403

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ mdbook
mdbook-linkcheck
megabasterd-bin
megasync-deb
mesa-kisak-fresh
meson-focal-deb
meson-git
micro
Expand Down
155 changes: 155 additions & 0 deletions packages/mesa-kisak-fresh/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
pkgbase = mesa-kisak-fresh
gives = mesa-kisak-fresh
pkgver = 24.3.0
pkgdesc = Mesa Fresh from Kisak PPA Sources - No opencl
url = https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa
arch = amd64
depends = libx11-dev
depends = libxxf86vm-dev
depends = libsensors4-dev
depends = libxfixes-dev
depends = libxext-dev
depends = libva-dev
depends = libvdpau-dev
depends = libvulkan-dev
depends = x11proto-dev
depends = libx11-xcb-dev
depends = libxcb-dri2-0-dev
depends = libxcb-glx0-dev
depends = libxcb-xfixes0-dev
depends = libxcb-dri3-dev
depends = libxcb-present-dev
depends = libxcb-randr0-dev
depends = libxcb-shm0-dev
depends = libxcb-sync-dev
depends = libxrandr-dev
depends = libxshmfence-dev
depends = libzstd-dev
depends = libelf-dev
depends = libunwind-dev
depends = libglvnd-dev
depends = libexpat1-dev
depends = libomxil-bellagio-dev
depends = zlib1g
depends = libglx-dev
depends = libgl-dev
depends = libudev-dev
depends = libxatracker-dev
depends = libwayland-dev
makedepends = cmake
makedepends = pkg-config
makedepends = flex
makedepends = bison
makedepends = python3-mako
makedepends = python3-ply
makedepends = python3-setuptools
makedepends = libx11-dev
makedepends = libxxf86vm-dev
makedepends = libsensors4-dev
makedepends = libxfixes-dev
makedepends = libxext-dev
makedepends = libva-dev
makedepends = libvdpau-dev
makedepends = libvulkan-dev
makedepends = x11proto-dev
makedepends = libx11-xcb-dev
makedepends = libxcb-dri2-0-dev
makedepends = libxcb-glx0-dev
makedepends = libxcb-xfixes0-dev
makedepends = libxcb-dri3-dev
makedepends = libxcb-present-dev
makedepends = libxcb-randr0-dev
makedepends = libxcb-shm0-dev
makedepends = libxcb-sync-dev
makedepends = libxrandr-dev
makedepends = libxshmfence-dev
makedepends = libzstd-dev
makedepends = libelf-dev
makedepends = libunwind-dev
makedepends = libglvnd-dev
makedepends = libexpat1-dev
makedepends = libomxil-bellagio-dev
makedepends = zlib1g
makedepends = libglx-dev
makedepends = libgl-dev
makedepends = libudev-dev
makedepends = libxatracker-dev
makedepends = libwayland-dev
makedepends = libwayland-egl-backend-dev
makedepends = libclc-15-dev
makedepends = libclc-15
makedepends = libclang-15-dev
makedepends = libclang-cpp15-dev
makedepends = clang-15
makedepends = valgrind
makedepends = llvm-15-dev
makedepends = llvm-15-runtime
makedepends = libllvmspirvlib-15-dev
makedepends = spirv-tools
makedepends = glslang-tools
pacdeps = libdrm
pacdeps = meson-git
pacdeps = directx-headers-git
pacdeps = rust-bindgen-git
pacdeps = wayland-protocols-git
replaces = libxatracker2
replaces = libxatracker-dev
replaces = libd3dadapter9-mesa
replaces = libd3dadapter9-mesa-dev
replaces = libgbm1
replaces = libgbm-dev
replaces = libegl-mesa0
replaces = libegl1-mesa
replaces = libegl1-mesa-dev
replaces = libwayland-egl1-mesa
replaces = libgles2-mesa
replaces = libgles2-mesa-dev
replaces = libglapi-mesa
replaces = libglx-mesa0
replaces = libgl1-mesa-glx
replaces = libgl1-mesa-dri
replaces = libgl1-mesa-dev
replaces = mesa-common-dev
replaces = mesa-libgallium
replaces = libosmesa6
replaces = libosmesa6-dev
replaces = mesa-teflon-delegate
replaces = mesa-va-drivers
replaces = mesa-vdpau-drivers
replaces = mesa-vulkan-drivers
replaces = mesa-opencl-icd
replaces = mesa-drm-shim
provides = libxatracker2=24.3.0
provides = libxatracker-dev=24.3.0
provides = libd3dadapter9-mesa=24.3.0
provides = libd3dadapter9-mesa-dev=24.3.0
provides = libgbm1=24.3.0
provides = libgbm-dev=24.3.0
provides = libegl-mesa0=24.3.0
provides = libegl1-mesa=24.3.0
provides = libegl1-mesa-dev=24.3.0
provides = libwayland-egl1-mesa=24.3.0
provides = libgles2-mesa=24.3.0
provides = libgles2-mesa-dev=24.3.0
provides = libglapi-mesa=24.3.0
provides = libglx-mesa0=24.3.0
provides = libgl1-mesa-glx=24.3.0
provides = libgl1-mesa-dri=24.3.0
provides = libgl1-mesa-dev=24.3.0
provides = mesa-common-dev=24.3.0
provides = mesa-libgallium=24.3.0
provides = libosmesa6=24.3.0
provides = libosmesa6-dev=24.3.0
provides = mesa-teflon-delegate=24.3.0
provides = mesa-va-drivers=24.3.0
provides = mesa-vdpau-drivers=24.3.0
provides = mesa-vulkan-drivers=24.3.0
provides = mesa-opencl-icd=24.3.0
provides = mesa-drm-shim=24.3.0
compatible = debian:bookworm
compatible = ubuntu:jammy
maintainer = xdavius <[email protected]>
repology = project: mesa
source = https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+sourcefiles/mesa/24.3.0~kisak1~j/mesa_24.3.0~kisak1~j.tar.xz

pkgname = mesa-kisak-fresh
230 changes: 230 additions & 0 deletions packages/mesa-kisak-fresh/mesa-kisak-fresh.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
pkgname="mesa-kisak-fresh"
gives="mesa-kisak-fresh"
pkgver="24.3.0"
pkgdesc="Mesa Fresh from Kisak PPA Sources - No opencl"
arch=('amd64')
url='https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa'
source=("https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+sourcefiles/mesa/${pkgver}~kisak1~j/mesa_${pkgver}~kisak1~j.tar.xz")
sha256sum=("3cad69b5a773928040a14e9cfadbca9f074660c9201eba7e73b2e6163ae6514e")

depends=(
"libx11-dev"
"libxxf86vm-dev"
"libsensors4-dev"
"libxfixes-dev"
"libxext-dev"
"libva-dev"
"libvdpau-dev"
"libvulkan-dev"
"x11proto-dev"
"libx11-xcb-dev"
"libxcb-dri2-0-dev"
"libxcb-glx0-dev"
"libxcb-xfixes0-dev"
"libxcb-dri3-dev"
"libxcb-present-dev"
"libxcb-randr0-dev"
"libxcb-shm0-dev"
"libxcb-sync-dev"
"libxrandr-dev"
"libxshmfence-dev"
"libzstd-dev"
"libelf-dev"
"libunwind-dev"
"libglvnd-dev"
"libexpat1-dev"
"libomxil-bellagio-dev"
"zlib1g"
"libglx-dev"
"libgl-dev"
"libudev-dev"
"libxatracker-dev"
"libwayland-dev"
)

provides=(
"libxatracker2=${pkgver}"
"libxatracker-dev=${pkgver}"
"libd3dadapter9-mesa=${pkgver}"
"libd3dadapter9-mesa-dev=${pkgver}"
"libgbm1=${pkgver}"
"libgbm-dev=${pkgver}"
"libegl-mesa0=${pkgver}"
"libegl1-mesa=${pkgver}"
"libegl1-mesa-dev=${pkgver}"
"libwayland-egl1-mesa=${pkgver}"
"libgles2-mesa=${pkgver}"
"libgles2-mesa-dev=${pkgver}"
"libglapi-mesa=${pkgver}"
"libglx-mesa0=${pkgver}"
"libgl1-mesa-glx=${pkgver}"
"libgl1-mesa-dri=${pkgver}"
"libgl1-mesa-dev=${pkgver}"
"mesa-common-dev=${pkgver}"
"mesa-libgallium=${pkgver}"
"libosmesa6=${pkgver}"
"libosmesa6-dev=${pkgver}"
"mesa-teflon-delegate=${pkgver}"
"mesa-va-drivers=${pkgver}"
"mesa-vdpau-drivers=${pkgver}"
"mesa-vulkan-drivers=${pkgver}"
"mesa-opencl-icd=${pkgver}"
"mesa-drm-shim=${pkgver}"
)

replaces=(
"libxatracker2"
"libxatracker-dev"
"libd3dadapter9-mesa"
"libd3dadapter9-mesa-dev"
"libgbm1"
"libgbm-dev"
"libegl-mesa0"
"libegl1-mesa"
"libegl1-mesa-dev"
"libwayland-egl1-mesa"
"libgles2-mesa"
"libgles2-mesa-dev"
"libglapi-mesa"
"libglx-mesa0"
"libgl1-mesa-glx"
"libgl1-mesa-dri"
"libgl1-mesa-dev"
"mesa-common-dev"
"mesa-libgallium"
"libosmesa6"
"libosmesa6-dev"
"mesa-teflon-delegate"
"mesa-va-drivers"
"mesa-vdpau-drivers"
"mesa-vulkan-drivers"
"mesa-opencl-icd"
"mesa-drm-shim"
)

makedepends=(
"cmake"
"pkg-config"
"flex"
"bison"
"python3-mako"
"python3-ply"
"python3-setuptools"
"libx11-dev"
"libxxf86vm-dev"
"libsensors4-dev"
"libxfixes-dev"
"libxext-dev"
"libva-dev"
"libvdpau-dev"
"libvulkan-dev"
"x11proto-dev"
"libx11-xcb-dev"
"libxcb-dri2-0-dev"
"libxcb-glx0-dev"
"libxcb-xfixes0-dev"
"libxcb-dri3-dev"
"libxcb-present-dev"
"libxcb-randr0-dev"
"libxcb-shm0-dev"
"libxcb-sync-dev"
"libxrandr-dev"
"libxshmfence-dev"
"libzstd-dev"
"libelf-dev"
"libunwind-dev"
"libglvnd-dev"
"libexpat1-dev"
"libomxil-bellagio-dev"
"zlib1g"
"libglx-dev"
"libgl-dev"
"libudev-dev"
"libxatracker-dev"
"libwayland-dev"
"libwayland-egl-backend-dev"
"libclc-15-dev"
"libclc-15"
"libclang-15-dev"
"libclang-cpp15-dev"
"clang-15"
"valgrind"
"llvm-15-dev"
"llvm-15-runtime"
"libllvmspirvlib-15-dev"
"spirv-tools"
"glslang-tools"
)

pacdeps=("libdrm" "meson-git" "directx-headers-git" "rust-bindgen-git" "wayland-protocols-git")
repology=("project: mesa")
maintainer=("xdavius <[email protected]>")
compatible=("debian:bookworm" "ubuntu:jammy")

prepare() {

cd mesa-j
cp debian/patches/* ./
for patch in *.patch; do
patch -p1 < "${patch}"
done

for patch in *.diff; do
patch -p1 < "${patch}"
done
}

build() {
cd mesa-j
# shellcheck disable=SC2054
local meson_options=(
-D android-libbacktrace=disabled
-D b_ndebug=true
-D dri3=enabled
-D egl=enabled
-D gbm=enabled
-D gles1=disabled
-D gles2=enabled
-D glvnd=enabled
-D glx=dri
-D intel-clc=enabled
-D libunwind=enabled
-D llvm=enabled
-D lmsensors=enabled
-D microsoft-clc=disabled
-D osmesa=true
-D platforms=x11,wayland
-D rust_std=2021
-D shared-glapi=enabled
-D valgrind=enabled
-D video-codecs=all
-D vulkan-drivers=amd,intel,intel_hasvk,swrast,virtio
-D vulkan-layers=device-select,intel-nullhw,overlay
-D gallium-drivers=r300,r600,radeonsi,nouveau,virgl,svga,softpipe,llvmpipe,i915,iris,crocus,zink,d3d12
-D gallium-extra-hud=true
-D gallium-nine=true
-D gallium-omx=bellagio
-D gallium-opencl=disabled # opencl-clover (icd,standalone,disabled)
-D gallium-rusticl=false # opencl-rusticl (true,false)
-D gallium-va=enabled
-D gallium-vdpau=enabled
-D gallium-xa=enabled
)

# Build only minimal debug info to reduce size
CFLAGS+=' -g1'
CXXFLAGS+=' -g1'

meson --prefix=/usr "${meson_options[@]}" build
meson configure --no-pager build # Print config
meson compile -C build
}

package() {
cd mesa-j
DESTDIR="${pkgdir}" meson install -C build
rm -fr "${pkgdir:?}/usr/bin"

# Add indirect rendering
ln -sr "${pkgdir}"/usr/lib/x86_64-linux-gnu/libGLX_{mesa,indirect}.so.0
}
Loading
Loading