mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* Add unbuilt libvpx to updater-libvpx-1.15.2 * Update compatibility. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * updater-libvpx-1.15.2: Package File Update Run on linux/amd64 container. * updater-libvpx-1.15.2: Package File Update Run on linux/arm/v7 container. --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com>
48 lines
1.3 KiB
Ruby
48 lines
1.3 KiB
Ruby
require 'package'
|
|
|
|
class Libvpx < Package
|
|
description 'VP8/VP9 Codec SDK'
|
|
homepage 'https://www.webmproject.org/code/'
|
|
version '1.15.2'
|
|
license 'BSD'
|
|
compatibility 'aarch64 armv7l x86_64'
|
|
source_url 'https://chromium.googlesource.com/webm/libvpx.git'
|
|
git_hashtag "v#{version}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '00e81914069c08483411380bdb4b992e63e172504d3f6257664c4d0114952cf8',
|
|
armv7l: '00e81914069c08483411380bdb4b992e63e172504d3f6257664c4d0114952cf8',
|
|
x86_64: 'e38a5ea3a9eb39cf7d4d55b6c1c0b2691bbf014276bd1c6dc3b4ff6fec6e00b0'
|
|
})
|
|
|
|
depends_on 'ccache' => :build
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'libyuv' => :build
|
|
depends_on 'yasm' => :build
|
|
|
|
def self.build
|
|
Dir.chdir 'build' do
|
|
system "../configure #{CREW_CONFIGURE_OPTIONS.sub(/--mandir=.*/, '')} \
|
|
--disable-debug-libs \
|
|
--disable-install-docs \
|
|
--enable-ccache \
|
|
--enable-libyuv \
|
|
--enable-pic \
|
|
--enable-runtime-cpu-detect \
|
|
--enable-shared \
|
|
--enable-vp8 \
|
|
--enable-vp9 \
|
|
--enable-vp9-highbitdepth"
|
|
system 'make'
|
|
end
|
|
end
|
|
|
|
def self.install
|
|
Dir.chdir 'build' do
|
|
system "make DESTDIR=#{CREW_DEST_DIR} install"
|
|
end
|
|
end
|
|
end
|