Files
chromebrew/packages/gmmlib.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

37 lines
1009 B
Ruby

require 'package'
class Gmmlib < Package
description 'The Intel(R) Graphics Memory Management Library provides device specific and buffer management for the Intel(R) Graphics Compute Runtime for OpenCL(TM) and the Intel(R) Media Driver for VAAPI.'
homepage 'https://github.com/intel/gmmlib/'
version '22.3.3'
license 'MIT'
compatibility 'x86_64'
source_url 'https://github.com/intel/gmmlib.git'
git_hashtag "intel-gmmlib-#{version}"
binary_compression 'tar.zst'
binary_sha256({
x86_64: '73746485904173970cd608975011f0c91628ebdd5c68d09fd615d27327da27da'
})
depends_on 'libva' => :build
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
def self.build
FileUtils.mkdir('builddir')
Dir.chdir('builddir') do
system "cmake -G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DRUN_TEST_SUITE=OFF \
-Wno-dev \
.."
end
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end