[vlc-devel] [PATCH 3/4] Add rav1e to contribs
Rémi Denis-Courmont
remi at remlab.net
Tue Jul 21 15:48:56 CEST 2020
Le tiistaina 21. heinäkuuta 2020, 12.34.07 EEST rustyc a écrit :
> ---
> contrib/src/main.mak | 6 +++---
> contrib/src/rav1e/SHA512SUMS | 1 +
> contrib/src/rav1e/rules.mak | 23 +++++++++++++++++++++++
> 3 files changed, 27 insertions(+), 3 deletions(-)
> create mode 100644 contrib/src/rav1e/SHA512SUMS
> create mode 100644 contrib/src/rav1e/rules.mak
>
> diff --git a/contrib/src/main.mak b/contrib/src/main.mak
> index c8d7df4202..4d00cfda4d 100644
> --- a/contrib/src/main.mak
> +++ b/contrib/src/main.mak
> @@ -440,10 +440,10 @@ else
> MESON = meson $(MESONFLAGS)
> endif
>
> -ifdef HAVE_WIN32
> -RUST_TARGET = i686-pc-windows-gnu
> -else ifdef HAVE_WIN64
> +ifdef HAVE_WIN64
> RUST_TARGET = x86_64-pc-windows-gnu
> +else ifdef HAVE_WIN32
> +RUST_TARGET = i686-pc-windows-gnu
> else ifdef HAVE_BSD
> RUST_TARGET = x86_64-unknown-freebsd
> else ifdef HAVE_ANDROID
> diff --git a/contrib/src/rav1e/SHA512SUMS b/contrib/src/rav1e/SHA512SUMS
> new file mode 100644
> index 0000000000..73d8e9feb8
> --- /dev/null
> +++ b/contrib/src/rav1e/SHA512SUMS
> @@ -0,0 +1 @@
> +140995820053e4ac8de5f31fcd430e991e47642c34b9433abea618ed6262ec593b777e9334e
> 5f138aa34854e0bdd044d1d2dadc3c917394641193643b4e92e0c rav1e-0.3.2.tar.gz
> diff --git a/contrib/src/rav1e/rules.mak b/contrib/src/rav1e/rules.mak new
> file mode 100644
> index 0000000000..f4515adad8
> --- /dev/null
> +++ b/contrib/src/rav1e/rules.mak
> @@ -0,0 +1,23 @@
> +# rav1e
> +
> +RAV1E_VERSION := 0.3.2
> +RAV1E_URL := https://github.com/xiph/rav1e/archive/v$(RAV1E_VERSION).tar.gz
> +
> +ifeq ($(call need_pkg,"rav1e"),)
> +# PKGS_FOUND += rav1e
Why?
> +endif
And the package should presumably be selected when BUILD_ENCODERS is set.
> +
> +$(TARBALLS)/rav1e-$(RAV1E_VERSION).tar.gz:
> + $(call download_pkg,$(RAV1E_URL),rav1e)
> +
> +.sum-rav1e: rav1e-$(RAV1E_VERSION).tar.gz
> +
> +rav1e: rav1e-$(RAV1E_VERSION).tar.gz .sum-rav1e
> + $(UNPACK)
> + $(MOVE)
> +
> +.rav1e: rav1e
> + cd $< && RUSTFLAGS="-C lto -C panic=abort -C opt-level=z" cargo
cinstall \
> + --no-default-features --features asm --prefix=$(PREFIX) \
> + --target=$(RUST_TARGET) --library-type staticlib --release
Indent.
> + touch $@
> \ No newline at end of file
--
雷米‧德尼-库尔蒙
http://www.remlab.net/
More information about the vlc-devel
mailing list