Commit dd5cf704 authored by vincowl's avatar vincowl Committed by GitHub

[mesa] Update to 20.0.2 (#3953)

* [mesa] Update to 20.0.2

* [mesa] Remove comments

* [mesa] Remove patch section

* [mesa] Remove Mako version dependency
Co-authored-by: default avatarVincent GIRARD <vincent@heliosphere.fr>
parent 39927666
...@@ -3,72 +3,50 @@ require 'package' ...@@ -3,72 +3,50 @@ require 'package'
class Mesa < Package class Mesa < Package
description 'Open-source implementation of the OpenGL specification' description 'Open-source implementation of the OpenGL specification'
homepage 'https://www.mesa3d.org' homepage 'https://www.mesa3d.org'
version '18.3.1-1' version '20.0.2'
source_url 'https://mesa.freedesktop.org/archive/mesa-18.3.1.tar.xz' source_url 'https://mesa.freedesktop.org/archive/mesa-20.0.2.tar.xz'
source_sha256 '5b1f827d28684a25f6657289f8b7d47ac56395988c7ac23e0ec9a62b644bdc63' source_sha256 'aa54f1cb669550606aab8ceb475105d15aeb814fca5a778ce70d0fd10e98e86f'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/mesa-18.3.1-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/mesa-18.3.1-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/mesa-18.3.1-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/mesa-18.3.1-1-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: 'd51c117379b69128d7c0e6f9a0554c8d4f9666cf3fb13b5ecdd0897214873192',
armv7l: 'd51c117379b69128d7c0e6f9a0554c8d4f9666cf3fb13b5ecdd0897214873192',
i686: '2568b9ad11f52b1554c5720f4b513c26a5ded8d141e97ee01b1eede13e2052bb',
x86_64: '7d633a3f7e772fc527ec70ab01d8a53126e1ccee204c5c1fb58efdc8ff438b39',
}) })
depends_on 'setuptools' => :build
depends_on 'libva' depends_on 'libva'
depends_on 'libvdpau' depends_on 'libvdpau'
depends_on 'wayland_protocols' depends_on 'wayland_protocols'
depends_on 'elfutils' depends_on 'elfutils'
depends_on 'llvm' depends_on 'llvm'
def self.patch
system "wget -O- https://patchwork.freedesktop.org/patch/257229/raw | patch -Rp1"
end
def self.build def self.build
system "pip3 uninstall -y Mako MarkupSafe || :" system "pip3 uninstall -y Mako MarkupSafe || :"
system "pip3 install --prefix \"#{CREW_PREFIX}\" --root \"#{CREW_DEST_DIR}\" Mako==1.0.7" system "pip3 install --prefix \"#{CREW_PREFIX}\" --root \"#{CREW_DEST_DIR}\" Mako"
system "pip3 install --prefix \"#{CREW_PREFIX}\" Mako==1.0.7" system "pip3 install --prefix \"#{CREW_PREFIX}\" Mako"
case ARCH system "meson",
when 'i686'
gallium_drivers = 'i915,nouveau,pl111,svga,swrast,vc4,virgl'
dri_drivers = 'i915,i965,nouveau,radeon,r200,swrast'
when 'x86_64'
gallium_drivers = 'i915,nouveau,r300,r600,radeonsi,pl111,svga,swrast,swr,vc4,virgl'
dri_drivers = 'i915,i965,nouveau,radeon,r200,swrast'
when 'aarch64', 'armv7l'
gallium_drivers = 'nouveau,r300,freedreno,pl111,swrast,tegra,vc4,virgl'
dri_drivers = 'nouveau,radeon,r200,swrast'
end
system "./configure",
"--prefix=#{CREW_PREFIX}", "--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}", "--libdir=#{CREW_LIB_PREFIX}",
"--enable-shared-glapi", "-Dshared-glapi=true",
"--with-gallium-drivers=#{gallium_drivers}", "-Dgallium-drivers=auto",
"--with-dri-drivers=#{dri_drivers}", "-Ddri-drivers=auto",
"--enable-osmesa", "-Dosmesa=classic",
"--enable-opengl", "-Dopengl=true",
"--enable-egl", "-Degl=auto",
"--enable-xvmc", "-Dgallium-xvmc=auto",
"--disable-asm", "-Dgallium-nine=true",
"--enable-nine", "-Dgles1=auto",
"--enable-gles1", "-Dgles2=auto",
"--enable-gles2", "-Dplatforms=x11,drm,wayland",
"--with-platforms=x11,drm,wayland", "-Dgbm=auto",
"--enable-gbm", "-Dgallium-xa=auto",
"--enable-xa", "-Dglx=auto",
"--enable-glx", "-Dllvm=true",
"--enable-dri", "builddir"
"--enable-llvm" system "ninja -C builddir"
system "make"
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment