Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add snappy, libx264, opus, libvpx, ffmpeg, lcms, re2 #211

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions bootstrap.d/app-arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,46 @@ packages:
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: snappy
architecture: '@OPTION:arch@'
metadata:
summary: A high-speed compression/decompression library by Google
description: This package contains a compressor and decompressor for the snappy compression format.
spdx: 'BSD-3-Clause'
website: 'https://github.com/google/snappy'
maintainer: "Dennis Bonke <[email protected]>"
categories: ['app-arch']
source:
subdir: 'ports'
git: 'https://github.com/google/snappy.git'
tag: '1.1.9'
version: '1.1.9'
tools_required:
- system-gcc
- host-cmake
pkgs_required:
- mlibc
configure:
- args:
- 'cmake'
- '-GNinja'
- '-DCMAKE_TOOLCHAIN_FILE=@SOURCE_ROOT@/scripts/CMakeToolchain-@OPTION:[email protected]'
- '-DCMAKE_INSTALL_PREFIX=/usr'
- '-DCMAKE_BUILD_TYPE=Release'
- '-DSNAPPY_BUILD_TESTS=OFF'
- '-DSNAPPY_BUILD_BENCHMARKS=OFF'
- '-DBUILD_SHARED_LIBS=ON'
# Options below are related to benchmarking, that we disable.
- '-DHAVE_LIBZ=NO'
- '-DHAVE_LIBLZO2=NO'
- '-DHAVE_LIBLZ4=NO'
- '@THIS_SOURCE_DIR@'
build:
- args: ['ninja']
- args: ['ninja', 'install']
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: tar
labels: [aarch64]
architecture: '@OPTION:arch@'
Expand Down
32 changes: 32 additions & 0 deletions bootstrap.d/dev-libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1436,6 +1436,38 @@ packages:
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: re2
architecture: '@OPTION:arch@'
metadata:
summary: An efficient, principled regular expression library
description: RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python.
spdx: 'BSD-3-Clause'
website: 'https://github.com/google/re2'
maintainer: "Dennis Bonke <[email protected]>"
categories: ['dev-libs']
source:
subdir: ports
git: 'https://github.com/google/re2.git'
tag: '2022-04-01'
version: '2022.04.01'
tools_required:
- host-cmake
- system-gcc
pkgs_required:
- mlibc
configure:
- args:
- 'cmake'
- '-DCMAKE_TOOLCHAIN_FILE=@SOURCE_ROOT@/scripts/CMakeToolchain-@OPTION:[email protected]'
- '-DCMAKE_INSTALL_PREFIX=/usr'
- '-DBUILD_SHARED_LIBS=ON'
- '@THIS_SOURCE_DIR@'
build:
- args: ['make', '-j@PARALLELISM@']
- args: ['make', 'install']
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: wayland-protocols
labels: [aarch64]
architecture: '@OPTION:arch@'
Expand Down
186 changes: 186 additions & 0 deletions bootstrap.d/media-libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,55 @@ packages:
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: lcms
architecture: '@OPTION:arch@'
metadata:
summary: A lightweight, speed optimized color management engine
description: The Little Color Management System is a small-footprint color management engine, with special focus on accuracy and performance. It uses the International Color Consortium standard (ICC), which is the modern standard for color management.
spdx: 'MIT'
website: 'http://www.littlecms.com/'
maintainer: "Dennis Bonke <[email protected]>"
categories: ['media-libs']
source:
subdir: 'ports'
git: 'https://github.com/mm2/Little-CMS.git'
tag: 'lcms2.13.1'
version: '2.13.1'
tools_required:
- host-autoconf-v2.69
- host-automake-v1.15
- host-libtool
- host-pkg-config
regenerate:
- args: ['./autogen.sh']
environ:
NOCONFIGURE: '1'
- args: ['cp',
'@BUILD_ROOT@/tools/host-automake-v1.15/share/automake-1.15/config.sub',
'@THIS_SOURCE_DIR@/']
tools_required:
- system-gcc
pkgs_required:
- mlibc
- zlib
- libjpeg-turbo
- libtiff
configure:
- args:
- '@THIS_SOURCE_DIR@/configure'
- '--host=@OPTION:arch-triple@'
- '--prefix=/usr'
- '--disable-static'
- '--with-zlib'
- '--with-jpeg'
- '--with-tiff'
- '--with-threads'
build:
- args: ['make', '-j@PARALLELISM@']
- args: ['make', 'install']
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: libepoxy
labels: [aarch64]
architecture: '@OPTION:arch@'
Expand Down Expand Up @@ -697,6 +746,48 @@ packages:
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: libvpx
architecture: '@OPTION:arch@'
metadata:
summary: Open codec for interactive speech and music transmission over the Internet
description: This package provides the reference implementations of the VP8 Codec, used in most current html5 video, and of the next-generation VP9 Codec.
spdx: 'BSD-3-Clause'
website: 'https://www.webmproject.org/'
maintainer: "Dennis Bonke <[email protected]>"
categories: ['media-libs']
source:
subdir: 'ports'
git: 'https://chromium.googlesource.com/webm/libvpx.git'
tag: 'v1.11.0'
version: '1.11.0'
tools_required:
- system-gcc
pkgs_required:
- mlibc
configure:
# Fix ownership and permission of installed files.
- args: ['sed', '-i', 's/cp -p/cp/', '@THIS_SOURCE_DIR@/build/make/Makefile']
- args:
- '@THIS_SOURCE_DIR@/configure'
- '--prefix=/usr'
- '--disable-static'
- '--enable-shared'
# Generic GNU target to disable optimizations
- '--force-target=generic-gnu'
- '--enable-pic'
- '--enable-vp8'
- '--enable-vp9'
- '--enable-multithread'
- '--enable-vp9-highbitdepth'
- '--disable-examples'
- '--disable-install-docs'
- '--disable-docs'
build:
- args: ['make', 'HAVE_GNU_STRIP=no', 'CC=x86_64-managarm-gcc', 'LD=x86_64-managarm-gcc', 'CXX=x86_64-managarm-g++', 'AR=x86_64-managarm-ar', 'NM=x86_64-managarm-nm', '-j@PARALLELISM@']
- args: ['make', 'install']
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: libwebp
architecture: '@OPTION:arch@'
metadata:
Expand Down Expand Up @@ -744,6 +835,57 @@ packages:
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: libx264
architecture: '@OPTION:arch@'
metadata:
summary: A free library for encoding X264/AVC streams
description: This package contains an encoder for X264/AVC streams.
spdx: 'GPL-2.0-only'
website: 'https://www.videolan.org/developers/x264.html'
maintainer: "Dennis Bonke <[email protected]>"
categories: ['media-libs']
source:
subdir: 'ports'
git: 'https://code.videolan.org/videolan/x264.git'
# Check out current master, x264 doesn't do git tags
branch: 'master'
commit: 'bfc87b7a330f75f5c9a21e56081e4b20344f139e'
version: '20220305'
tools_required:
- host-autoconf-v2.69
- host-automake-v1.15
- host-libtool
- host-pkg-config
regenerate:
- args: ['cp',
'@BUILD_ROOT@/tools/host-automake-v1.15/share/automake-1.15/config.sub',
'@THIS_SOURCE_DIR@/']
tools_required:
- system-gcc
pkgs_required:
- mlibc
- nasm
configure:
- args:
- '@THIS_SOURCE_DIR@/configure'
- '--host=x86_64-managarm'
- '--prefix=/usr'
- '--enable-shared'
- '--disable-cli'
- '--disable-avs'
- '--disable-lavf'
- '--disable-swscale'
- '--disable-ffms'
- '--disable-gpac'
- '--disable-opencl'
- '--enable-pic'
- '--cross-prefix=@OPTION:arch-triple@-'
build:
- args: ['make', '-j@PARALLELISM@']
- args: ['make', 'install']
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: mesa
labels: [aarch64]
architecture: '@OPTION:arch@'
Expand Down Expand Up @@ -814,6 +956,50 @@ packages:
DESTDIR: '@THIS_COLLECT_DIR@'
quiet: true

- name: opus
architecture: '@OPTION:arch@'
metadata:
summary: Open codec for interactive speech and music transmission over the Internet
description: Opus is a lossy audio compression format developed by the Internet Engineering Task Force (IETF) that is particularly suitable for interactive speech and audio transmission over the Internet. This package provides the Opus development library and headers.
spdx: 'BSD-3-Clause'
website: 'https://opus-codec.org/'
maintainer: "Dennis Bonke <[email protected]>"
categories: ['media-libs']
source:
subdir: 'ports'
git: 'https://gitlab.xiph.org/xiph/opus.git'
tag: 'v1.3.1'
version: '1.3.1'
tools_required:
- host-autoconf-v2.69
- host-automake-v1.15
- host-libtool
- host-pkg-config
regenerate:
- args: ['./autogen.sh']
tools_required:
- system-gcc
- host-autoconf-v2.69
- host-automake-v1.15
- host-libtool
- host-pkg-config
pkgs_required:
- mlibc
configure:
- args:
- '@THIS_SOURCE_DIR@/configure'
- '--host=@OPTION:arch-triple@'
- '--prefix=/usr'
- '--docdir=/usr/share/doc/opus-1.3.1'
- '--disable-static'
- '--disable-intrinsics'
- '--disable-doc'
build:
- args: ['make', '-j@PARALLELISM@']
- args: ['make', 'install']
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: sdl2
architecture: '@OPTION:arch@'
metadata:
Expand Down
Loading