From: oreo639 <oreo639@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] libavif: enable encoding support
Date: Mon, 03 Apr 2023 10:24:59 +0200 [thread overview]
Message-ID: <20230403082459.vj1O2KLQYV8gcYc6jvlfRFfLp0-EWixtD1hU8l78Kv0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42438@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages rav1e
https://github.com/void-linux/void-packages/pull/42438
libavif: enable encoding support
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
Allows tests to pass for https://github.com/void-linux/void-packages/pull/42426
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/42438.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-rav1e-42438.patch --]
[-- Type: text/x-diff, Size: 5668 bytes --]
From 47a589c2d426e60408aecd8f9c31c874e88d959d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 24 Feb 2023 19:34:16 -0800
Subject: [PATCH 1/3] New package: cargo-c-0.9.14_1
---
srcpkgs/cargo-c/template | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 srcpkgs/cargo-c/template
diff --git a/srcpkgs/cargo-c/template b/srcpkgs/cargo-c/template
new file mode 100644
index 000000000000..461ac18cc1e8
--- /dev/null
+++ b/srcpkgs/cargo-c/template
@@ -0,0 +1,20 @@
+# Template file for 'cargo-c'
+pkgname=cargo-c
+version=0.9.17
+revision=1
+build_style=cargo
+hostmakedepends="pkg-config"
+makedepends="openssl-devel"
+short_desc="Build and install C-compatible rust libraries"
+maintainer="oreo639 <oreo6391@gmail.com>"
+license="MIT"
+homepage="https://crates.io/crates/cargo-c"
+distfiles="https://github.com/lu-zero/cargo-c/archive/v${version}.tar.gz
+ https://github.com/lu-zero/cargo-c/releases/download/v${version}/Cargo.lock"
+checksum="95fcf50505516dfa6a941e666d1388810da9d7a9e1c623c09068faef5d50b3b9
+ 53a6340faee4ae1c56ca8a61087908b0fccce0352a070de404bcce05d20f369a"
+skip_extraction="Cargo.lock"
+
+post_install() {
+ vlicense LICENSE
+}
From dab4ebcac84604471c365374fb90a0a90c141dc6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 24 Feb 2023 19:35:15 -0800
Subject: [PATCH 2/3] New package: rav1e-0.6.3_1
---
common/shlibs | 1 +
srcpkgs/rav1e-devel | 1 +
srcpkgs/rav1e/template | 42 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 44 insertions(+)
create mode 120000 srcpkgs/rav1e-devel
create mode 100644 srcpkgs/rav1e/template
diff --git a/common/shlibs b/common/shlibs
index ddd0a3266a36..1acd0c7ad7c6 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3572,6 +3572,7 @@ libcsfml-system.so.2.5 CSFML-2.5_1
libcsfml-network.so.2.5 CSFML-2.5_1
libtokyocabinet.so.9 tokyocabinet-1.4.48_1
libdav1d.so.6 libdav1d6-1.0.0_1
+librav1e.so.0 rav1e-0.6.3_1
libdqlite.so.0 dqlite-0.2.1_1
libwoff2common.so.1.0.2 libwoff2common1.0.2-1.0.2_1
libwoff2enc.so.1.0.2 libwoff2enc1.0.2-1.0.2_1
diff --git a/srcpkgs/rav1e-devel b/srcpkgs/rav1e-devel
new file mode 120000
index 000000000000..c810b6809ce8
--- /dev/null
+++ b/srcpkgs/rav1e-devel
@@ -0,0 +1 @@
+rav1e
\ No newline at end of file
diff --git a/srcpkgs/rav1e/template b/srcpkgs/rav1e/template
new file mode 100644
index 000000000000..e4589a60170e
--- /dev/null
+++ b/srcpkgs/rav1e/template
@@ -0,0 +1,42 @@
+# Template file for 'rav1e'
+pkgname=rav1e
+version=0.6.3
+revision=1
+build_style=cargo
+hostmakedepends="nasm cargo-c"
+short_desc="Fastest and safest AV1 encoder"
+maintainer="oreo639 <oreo6391@gmail.com>"
+license="BSD-2-Clause"
+homepage="https://crates.io/crates/rav1e"
+distfiles="https://static.crates.io/crates/rav1e/rav1e-${version}.crate"
+checksum=277898094f0d03c6a609e491324102daf5080e71c06b4b25e5acf8b89d26c945
+
+if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
+ # error: ran out of registers during register allocation
+ # LLVM ERROR: Cannot emit physreg copy instruction
+ make_check=no # Tests fail to compile
+fi
+
+post_build() {
+ cargo auditable cbuild --release --target ${RUST_TARGET} \
+ --library-type cdylib --library-type staticlib \
+ --destdir="${DESTDIR}" --prefix="/usr" ${configure_args}
+}
+
+post_install() {
+ cargo auditable cinstall --release --target ${RUST_TARGET} \
+ --library-type cdylib --library-type staticlib \
+ --destdir="${DESTDIR}" --prefix="/usr" --offline --locked ${configure_args}
+
+ vlicense LICENSE
+}
+
+rav1e-devel_package() {
+ depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove "usr/lib/*.so"
+ vmove usr/lib/pkgconfig
+ vmove usr/include
+ }
+}
From a3737ea75dc9466bbd4f07977e80863e4431d20b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 24 Feb 2023 19:36:06 -0800
Subject: [PATCH 3/3] libavif: enable encoding support
---
srcpkgs/libavif/template | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/libavif/template b/srcpkgs/libavif/template
index 7a00dba5b3e5..1edeb56fc725 100644
--- a/srcpkgs/libavif/template
+++ b/srcpkgs/libavif/template
@@ -1,13 +1,16 @@
# Template file for 'libavif'
pkgname=libavif
version=0.11.1
-revision=1
+revision=2
build_style=cmake
configure_args="-DAVIF_BUILD_APPS=ON -DAVIF_BUILD_GDK_PIXBUF=ON
- -DAVIF_CODEC_DAV1D=ON"
+ -DAVIF_CODEC_AOM=ON $(vopt_bool dav1d AVIF_CODEC_DAV1D) $(vopt_bool rav1e AVIF_CODEC_RAV1E)
+ $(vopt_bool svt AVIF_CODEC_SVT)"
hostmakedepends="gdk-pixbuf-devel pkg-config"
-makedepends="gdk-pixbuf-devel libdav1d-devel
- libjpeg-turbo-devel libpng-devel zlib-devel"
+makedepends="gdk-pixbuf-devel libaom-devel
+ libjpeg-turbo-devel libpng-devel zlib-devel
+ $(vopt_if dav1d "libdav1d-devel") $(vopt_if rav1e "rav1e-devel")
+ $(vopt_if svt "libsvt-av1-devel")"
short_desc="Library for encoding and decoding .avif files"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-2-Clause"
@@ -16,6 +19,17 @@ changelog="https://github.com/AOMediaCodec/libavif/blob/main/CHANGELOG.md"
distfiles="https://github.com/AOMediaCodec/libavif/archive/refs/tags/v${version}.tar.gz"
checksum=0eb49965562a0e5e5de58389650d434cff32af84c34185b6c9b7b2fccae06d4e
+build_options="dav1d rav1e svt"
+build_options_default="dav1d rav1e"
+
+desc_option_dav1d="Enable support for DAV1D decoder"
+desc_option_rav1e="Enable support for RAV1E encoder"
+desc_option_svt="Enable support for SVT-AV1 encoder (64-bit only)"
+
+if [ "$XBPS_TARGET_WORDSIZE" != "32" ]; then
+ build_options_default+=" svt"
+fi
+
post_install() {
vlicense LICENSE
}
next prev parent reply other threads:[~2023-04-03 8:24 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-25 3:44 [PR PATCH] " oreo639
2023-02-25 3:45 ` [PR PATCH] [Updated] " oreo639
2023-02-25 3:57 ` oreo639
2023-02-25 4:51 ` lemmi
2023-02-25 5:26 ` oreo639
2023-02-25 5:26 ` oreo639
2023-02-25 5:27 ` oreo639
2023-02-25 5:28 ` oreo639
2023-02-25 5:30 ` oreo639
2023-02-25 5:30 ` oreo639
2023-02-25 5:34 ` oreo639
2023-02-25 5:34 ` oreo639
2023-02-25 5:36 ` oreo639
2023-02-25 5:46 ` [PR PATCH] [Updated] " oreo639
2023-02-25 6:54 ` lemmi
2023-02-25 7:06 ` oreo639
2023-02-25 7:14 ` oreo639
2023-02-25 7:14 ` oreo639
2023-02-25 7:14 ` oreo639
2023-02-25 7:52 ` oreo639
2023-04-03 2:39 ` [PR PATCH] [Updated] " oreo639
2023-04-03 8:22 ` oreo639
2023-04-03 8:24 ` oreo639 [this message]
2023-04-06 5:22 ` [PR PATCH] [Merged]: " lemmi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230403082459.vj1O2KLQYV8gcYc6jvlfRFfLp0-EWixtD1hU8l78Kv0@z \
--to=oreo639@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).