[vlc-devel] [PATCH 3/4] Add rav1e to contrib

Steve Lhomme robux4 at ycbcr.xyz
Thu Jul 23 07:26:06 CEST 2020


On 2020-07-22 12:56, Kartik Ohri wrote:
> I have added the BUILD_ENCODERS as Remi suggested but kept it disabled by
> default as Thomas suggested that rust contribs and modules should not be
> built by default for the time being.

You don't need to comment the PKG_FOUND part. It won't force the build 
but at least inform the user when it's available.

> On Wed, Jul 22, 2020 at 4:24 PM rustyc <kartikohri13 at gmail.com> wrote:
> 
>> From: Kartik Ohri <kartikohri13 at gmail.com>
>>
>> ---
>>   contrib/src/rav1e/SHA512SUMS |  1 +
>>   contrib/src/rav1e/rules.mak  | 27 +++++++++++++++++++++++++++
>>   2 files changed, 28 insertions(+)
>>   create mode 100644 contrib/src/rav1e/SHA512SUMS
>>   create mode 100644 contrib/src/rav1e/rules.mak
>>
>> 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 @@
>> +140995820053e4ac8de5f31fcd430e991e47642c34b9433abea618ed6262ec593b777e9334e5f138aa34854e0bdd044d1d2dadc3c917394641193643b4e92e0c
>> 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..bca9ca1ac8
>> --- /dev/null
>> +++ b/contrib/src/rav1e/rules.mak
>> @@ -0,0 +1,27 @@
>> +# rav1e
>> +
>> +RAV1E_VERSION := 0.3.2
>> +RAV1E_URL :=
>> https://github.com/xiph/rav1e/archive/v$(RAV1E_VERSION).tar.gz
>> +
>> +ifdef BUILD_ENCODERS
>> +# PKGS += rav1e
>> +endif
>> +
>> +ifeq ($(call need_pkg,"rav1e"),)
>> +# PKGS_FOUND += rav1e
>> +endif
>> +
>> +$(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)
>> \
>> +       --no-default-features --features asm
>> +       touch $@
>> +
>> --
>> 2.25.1
>>
>>
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list