Commit 0902c08b authored by Ed Reel's avatar Ed Reel Committed by GitHub

Fix compatibility error for intel_media_driver (#5574)

parent d6e779cc
...@@ -6,21 +6,20 @@ class Intel_media_driver < Package ...@@ -6,21 +6,20 @@ class Intel_media_driver < Package
@_ver = '20.4.5' @_ver = '20.4.5'
version "#{@_ver}-1" version "#{@_ver}-1"
license 'BSD-3, and MIT' license 'BSD-3, and MIT'
case ARCH compatibility 'x86_64'
when 'x86_64'
compatibility 'x86_64' source_url "https://github.com/intel/media-driver/archive/intel-media-#{@_ver}.tar.gz"
source_url "https://github.com/intel/media-driver/archive/intel-media-#{@_ver}.tar.gz" source_sha256 '3d856a963127ddd6690fc6dac521d7674947675d5f20452f1e6f45c0fc83f9e6'
source_sha256 '3d856a963127ddd6690fc6dac521d7674947675d5f20452f1e6f45c0fc83f9e6'
binary_url({
binary_url({ x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/intel_media_driver-20.4.5-1-chromeos-x86_64.tar.xz'
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/intel_media_driver-20.4.5-1-chromeos-x86_64.tar.xz' })
}) binary_sha256({
binary_sha256({ x86_64: '0cc7a352ff10ca44659c49e8ebace37dc8c96a936d66fd28c1c17b7d8c709419'
x86_64: '0cc7a352ff10ca44659c49e8ebace37dc8c96a936d66fd28c1c17b7d8c709419' })
})
depends_on 'gmmlib' depends_on 'gmmlib'
depends_on 'libva' depends_on 'libva'
end
def self.preflight def self.preflight
abort 'Not an Intel processor, aborting.'.lightred unless `grep -c 'GenuineIntel' /proc/cpuinfo`.to_i.positive? abort 'Not an Intel processor, aborting.'.lightred unless `grep -c 'GenuineIntel' /proc/cpuinfo`.to_i.positive?
......
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