mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 15:13:56 -05:00
* Add unbuilt svt_av1 to updater-svt_av1-3.1.2 * updater-svt_av1-3.1.2: Build Run on linux/arm/v7. * updater-svt_av1-3.1.2: Build Run on linux/amd64. * updater-svt_av1-3.1.2: Package File Update Run on linux/amd64 container. * updater-svt_av1-3.1.2: Package File Update Run on linux/arm/v7 container. * updater-svt_av1-3.1.2: Package File Update Run on linux/386 container. * updater-svt_av1-3.1.2: Package File Update Run on linux/amd64 container. * Update sccache.filelist * Update sdl3.filelist * Update sfml.filelist * Update shellcheck.filelist * Update squashfs.filelist * Update strace.filelist * Update stunnel.filelist * Update syncthing.filelist --------- Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com> Co-authored-by: Satadru Pramanik, DO, MPH, MEng <satadru@gmail.com> Co-authored-by: chromebrew-actions[bot] <220035932+chromebrew-actions[bot]@users.noreply.github.com>
43 lines
1.3 KiB
Ruby
43 lines
1.3 KiB
Ruby
require 'package'
|
|
|
|
class Svt_av1 < Package
|
|
description 'Scalable Video Technology AV1 encoder and decoder'
|
|
homepage 'https://gitlab.com/AOMediaCodec/SVT-AV1'
|
|
version '3.1.2'
|
|
license 'BSD-2, Apache-2.0, BSD, ISC, MIT and LGPG-2.1+'
|
|
compatibility 'aarch64 armv7l x86_64'
|
|
source_url 'https://gitlab.com/AOMediaCodec/SVT-AV1.git'
|
|
git_hashtag "v#{version}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '9d1417ff752c6a335c8a8770ee9cb4bcd73c3a9952c17b04777b94be63b57802',
|
|
armv7l: '9d1417ff752c6a335c8a8770ee9cb4bcd73c3a9952c17b04777b94be63b57802',
|
|
x86_64: 'ed776710e27e82fae7bc189699f2a8d2898168587b0c02da5a631ea2dbd23f1c'
|
|
})
|
|
|
|
depends_on 'glibc' # R
|
|
depends_on 'nasm' => :build
|
|
|
|
def self.build
|
|
@arch_flags = ''
|
|
@arch_flags = '-mtune=cortex-a15 -mfloat-abi=hard -mfpu=neon -mtls-dialect=gnu -marm -mlibarch=armv8-a+crc+simd -march=armv8-a+crc+simd' if ARCH == 'armv7l' || ARCH == 'aarch64'
|
|
FileUtils.mkdir_p 'builddir'
|
|
Dir.chdir 'builddir' do
|
|
unless File.file?('build.ninja')
|
|
system "cmake \
|
|
-G Ninja \
|
|
#{CREW_CMAKE_OPTIONS.sub('-pipe', "-pipe #{@arch_flags}")} \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DNATIVE=OFF \
|
|
.."
|
|
end
|
|
end
|
|
system 'ninja -C builddir'
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
|
|
end
|
|
end
|