diff --git a/common/shlibs b/common/shlibs index 990b7fc4011..45ab7fa8c51 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3574,6 +3574,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 00000000000..c810b6809ce --- /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 00000000000..e4589a60170 --- /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 " +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 + } +}