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

mesa-git: add port #286

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions bootstrap.d/media-libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,93 @@ packages:
DESTDIR: '@THIS_COLLECT_DIR@'
quiet: true

- name: mesa-git
labels: [aarch64]
architecture: '@OPTION:arch@'
metadata:
summary: OpenGL-like graphic library for Linux
description: This package provides an open source implementation of OpenGL, OpenGL ES, Vulkan, and other APIs. Rolling Version.
spdx: 'MIT'
website: 'https://www.mesa3d.org/'
maintainer: "Alexander Richards <[email protected]>"
categories: ['media-libs']
replaces: ['mesa']
source:
subdir: 'ports'
git: 'https://gitlab.freedesktop.org/mesa/mesa.git'
branch: 'main'
rolling_version: true
version: '0.0pl@ROLLING_ID@'
tools_required:
- host-pkg-config
- system-gcc
- wayland-scanner
- virtual: pkgconfig-for-target
triple: "@OPTION:arch-triple@"
- virtual: pkgconfig-for-host
program_name: host-pkg-config
pkgs_required:
- mlibc
- libdrm
- llvm
- wayland
- wayland-protocols
- zlib
- libxshmfence
- libxrandr
- libxdamage
- libxxf86vm
- libxfixes
- libx11
- libxext
- libxcb
- libglvnd
- libexpat
- zstd
configure:
- args: ['cp', '@SOURCE_ROOT@/scripts/meson-@OPTION:[email protected]', 'meson.cross-file']
- args:
- 'sed'
- '-i'
- "/^# sed adds binaries here.$/a llvm-config = '@SOURCE_ROOT@/scripts/cross-llvm-config'"
- 'meson.cross-file'
- args:
- 'meson'
- '--native-file'
- '@SOURCE_ROOT@/scripts/meson.native-file'
- '--cross-file'
- 'meson.cross-file'
- '--prefix=/usr'
- '--libdir=lib'
# The debug build type enables some additional output from Mesa.
- '--buildtype=debugoptimized'
#- '--buildtype=debug'
- '-Dglx=dri'
- '-Dplatforms=wayland,x11'
- '-Dgallium-drivers=swrast'
- '-Dvulkan-drivers='
- '-Dglvnd=true'
# Force Mesa to build with LLVM.
- '-Dllvm=enabled'
- '-Dgallium-nine=false'
- '-Dgallium-va=disabled'
- '-Dgallium-vdpau=disabled'
- '-Dgallium-xa=disabled'
- '-Dshared-glapi=enabled'
- '-Ddri3=enabled'
- '-Degl=enabled'
- '-Dgbm=enabled'
- '-Dgles1=enabled'
- '-Dgles2=enabled'
- '-Dzstd=enabled'
- '@THIS_SOURCE_DIR@'
build:
- args: ['ninja']
- args: ['ninja', 'install']
environ:
DESTDIR: '@THIS_COLLECT_DIR@'
quiet: true

- name: vulkan-loader
architecture: '@OPTION:arch@'
metadata:
Expand Down
Loading