Commit 65d33a28 authored by James Larrowe's avatar James Larrowe Committed by Ed Reel

Update Mesa package (#3027)

* Update Mesa package

changes 1

Update Mesa package

Depends on #3024

Fix `pip` install options

Remove r600 target for architectures other than x86_64

* Improve with @uberhacker's suggestions

* Fix indentation
parent 88881fa8
...@@ -3,21 +3,13 @@ require 'package' ...@@ -3,21 +3,13 @@ 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.1.5' version '18.3.1'
source_url 'https://mesa.freedesktop.org/archive/mesa-18.1.5.tar.xz' source_url 'https://mesa.freedesktop.org/archive/mesa-18.3.1.tar.xz'
source_sha256 '69dbe6f1a6660386f5beb85d4fcf003ee23023ed7b9a603de84e9a37e8d98dea' source_sha256 '5b1f827d28684a25f6657289f8b7d47ac56395988c7ac23e0ec9a62b644bdc63'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/mesa-18.1.5-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/mesa-18.1.5-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/mesa-18.1.5-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/mesa-18.1.5-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: 'd400200b0cc619601b7691e9b83ff7986c561d4f7d43d84d3d0f3eab38eae6a5',
armv7l: 'd400200b0cc619601b7691e9b83ff7986c561d4f7d43d84d3d0f3eab38eae6a5',
i686: '375714b84a1e3d3f3b95bd363192c9d6dc793484f973b5d11c7be0748c915812',
x86_64: 'b29ed0fb8b26de64e995de0a3bbc2390d8c0b0ab130cc75711e3ed367296e1a0',
}) })
depends_on 'libdrm' depends_on 'libdrm'
...@@ -27,6 +19,7 @@ class Mesa < Package ...@@ -27,6 +19,7 @@ class Mesa < Package
depends_on 'libxfixes' depends_on 'libxfixes'
depends_on 'libxdamage' depends_on 'libxdamage'
depends_on 'libxcb' depends_on 'libxcb'
depends_on 'libxvmc'
depends_on 'libxtrans' depends_on 'libxtrans'
depends_on 'libxkbfile' depends_on 'libxkbfile'
depends_on 'wayland' depends_on 'wayland'
...@@ -34,48 +27,40 @@ class Mesa < Package ...@@ -34,48 +27,40 @@ class Mesa < Package
depends_on 'bison' depends_on 'bison'
depends_on 'libxshmfence' depends_on 'libxshmfence'
depends_on 'elfutils' depends_on 'elfutils'
depends_on 'llvm'
def self.build def self.build
#system "pip install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} Mako" system "pip uninstall -y Mako MarkupSafe || :"
system "pip install --install-option=\"--prefix=#{CREW_PREFIX}\" Mako" system "pip install --prefix \"#{CREW_PREFIX}\" --root \"#{CREW_DEST_DIR}\" Mako==1.0.7"
system "pip install --prefix \"#{CREW_PREFIX}\" Mako==1.0.7"
case ARCH case ARCH
when 'x86_64', 'i686' when 'i686', 'x86_64'
system "./autogen.sh \ gallium_drivers = 'i915,nouveau,r300,r600,radeonsi,pl111,svga,swrast,swr,vc4,virgl'
--prefix=#{CREW_PREFIX} \ dri_drivers = 'i915,i965,nouveau,radeon,r200,swrast'
--libdir=#{CREW_LIB_PREFIX} \ when 'aarch64', 'armv7l'
--enable-shared-glapi \ gallium_drivers = 'nouveau,r300,freedreno,pl111,swrast,tegra,vc4,virgl'
--with-gallium-drivers=i915,nouveau,r300,r600,radeonsi,pl111,svga,swrast,swr,tegra,vc4,virgl \ dri_drivers = 'nouveau,radeon,r200,swrast'
--with-dri-drivers=i915,i965,nouveau,radeon,r200,swrast \ end
--enable-osmesa \ system "./configure",
--enable-opengl \ "--prefix=#{CREW_PREFIX}",
--enable-egl \ "--libdir=#{CREW_LIB_PREFIX}",
--enable-gles1 \ "--enable-shared-glapi",
--enable-gles2 \ "--with-gallium-drivers=#{gallium_drivers}",
--with-platforms=x11,drm,wayland \ "--with-dri-drivers=#{dri_drivers}",
--enable-gbm \ "--enable-osmesa",
--enable-xa \ "--enable-opengl",
--enable-glx\ "--enable-egl",
--enable-dri \ "--enable-xvmc",
--enable-llvm" "--disable-asm",
when 'aarch64', 'armv7l' "--enable-nine",
system "./configure \ "--enable-gles1",
--prefix=#{CREW_PREFIX} \ "--enable-gles2",
--libdir=#{CREW_LIB_PREFIX} \ "--with-platforms=x11,drm,wayland",
--enable-shared-glapi \ "--enable-gbm",
--with-gallium-drivers=nouveau,r300,freedreno,pl111,swrast,tegra,vc4,virgl \ "--enable-xa",
--with-dri-drivers=nouveau,radeon,r200,swrast \ "--enable-glx",
--enable-osmesa \ "--enable-dri",
--enable-opengl \ "--enable-llvm"
--enable-egl \
--enable-gles1 \
--enable-gles2 \
--with-platforms=x11,drm,wayland \
--enable-gbm \
--enable-xa \
--enable-glx\
--enable-dri \
--enable-llvm"
end
system "make" system "make"
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