mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 16:08:08 -05:00
* gcc -> libs and dev * update deps * adjust deps in install.sh * update gcc dep in core * cleanup * add gcc_build * update gcc deps in llvm packages * adjust conflicts command to exclude _build package filelists * remove conflicts_ok from compiler packages
40 lines
1.1 KiB
Ruby
40 lines
1.1 KiB
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/'
|
|
@_ver = '22.3.3'
|
|
version @_ver
|
|
license 'MIT'
|
|
compatibility 'x86_64'
|
|
source_url 'https://github.com/intel/gmmlib.git'
|
|
git_hashtag "intel-gmmlib-#{@_ver}"
|
|
|
|
binary_url({
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gmmlib/22.3.3_x86_64/gmmlib-22.3.3-chromeos-x86_64.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
|