Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: svt-av1-0.9.0
@ 2022-02-12 12:55 tibequadorian
  2022-02-28  0:33 ` [PR PATCH] [Updated] " tibequadorian
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: tibequadorian @ 2022-02-12 12:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1294 bytes --]

There is a new pull request by tibequadorian against master on the void-packages repository

https://github.com/tibequadorian/void-packages svt-av1
https://github.com/void-linux/void-packages/pull/35551

New package: svt-av1-0.9.0
closes https://github.com/void-linux/void-packages/issues/35541

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](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/35551.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-svt-av1-35551.patch --]
[-- Type: text/x-diff, Size: 5844 bytes --]

From d87012670b492fb646556889693d81fa1a6b1959 Mon Sep 17 00:00:00 2001
From: tibequadorian <tibequadorian@posteo.de>
Date: Sat, 12 Feb 2022 12:56:31 +0100
Subject: [PATCH 1/2] New package: svt-av1-0.9.0

---
 common/shlibs            |  2 ++
 srcpkgs/libsvt-av1       |  1 +
 srcpkgs/libsvt-av1-devel |  1 +
 srcpkgs/svt-av1/template | 33 +++++++++++++++++++++++++++++++++
 4 files changed, 37 insertions(+)
 create mode 120000 srcpkgs/libsvt-av1
 create mode 120000 srcpkgs/libsvt-av1-devel
 create mode 100644 srcpkgs/svt-av1/template

diff --git a/common/shlibs b/common/shlibs
index 0c60260b4642..aac27fe6419b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4110,3 +4110,5 @@ libawt_xawt.so openjdk17-jre-17.0.1+12_1
 libjava.so openjdk17-jre-17.0.1+12_1
 libjli.so openjdk17-jre-17.0.1+12_1
 libjvm.so openjdk17-jre-17.0.1+12_1
+libSvtAv1Enc.so.0 libsvt-av1-0.9.0_1
+libSvtAv1Dec.so.0 libsvt-av1-0.9.0_1
diff --git a/srcpkgs/libsvt-av1 b/srcpkgs/libsvt-av1
new file mode 120000
index 000000000000..11a5a05a9045
--- /dev/null
+++ b/srcpkgs/libsvt-av1
@@ -0,0 +1 @@
+svt-av1
\ No newline at end of file
diff --git a/srcpkgs/libsvt-av1-devel b/srcpkgs/libsvt-av1-devel
new file mode 120000
index 000000000000..11a5a05a9045
--- /dev/null
+++ b/srcpkgs/libsvt-av1-devel
@@ -0,0 +1 @@
+svt-av1
\ No newline at end of file
diff --git a/srcpkgs/svt-av1/template b/srcpkgs/svt-av1/template
new file mode 100644
index 000000000000..8a1e57d69553
--- /dev/null
+++ b/srcpkgs/svt-av1/template
@@ -0,0 +1,33 @@
+# Template file for 'svt-av1'
+pkgname=svt-av1
+version=0.9.0
+revision=1
+archs="x86_64*"
+wrksrc="SVT-AV1-v${version}"
+build_style=cmake
+hostmakedepends="nasm"
+short_desc="AV1-compliant encoder/decoder library core"
+maintainer="tibequadorian <tibequadorian@posteo.de>"
+license="BSD-3-Clause-Clear"
+homepage="https://gitlab.com/AOMediaCodec/SVT-AV1"
+distfiles="https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v${version}/SVT-AV1-v${version}.tar.gz"
+checksum=51a41fc38ced0e9a56aa4300b1d872f3b43e2421644110852dfdb67440080c63
+
+libsvt-av1_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "/usr/lib/libSvtAv1Dec.so.*"
+		vmove "/usr/lib/libSvtAv1Enc.so.*"
+		vlicense LICENSE.md
+	}
+}
+
+libsvt-av1-devel_package() {
+	short_desc+=" - development files"
+	depends="libsvt-av1>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

From dad048dc5b4e31a2938107a1efedaa40c085d327 Mon Sep 17 00:00:00 2001
From: tibequadorian <tibequadorian@posteo.de>
Date: Sat, 12 Feb 2022 12:57:04 +0100
Subject: [PATCH 2/2] ffmpeg: enable libsvtav1

---
 common/options.description |  1 +
 srcpkgs/ffmpeg/template    | 26 ++++++++++++++------------
 2 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/common/options.description b/common/options.description
index ac0f14c0843d..f9e3d0ce1992 100644
--- a/common/options.description
+++ b/common/options.description
@@ -83,6 +83,7 @@ desc_option_ssl="Enable support for SSL"
 desc_option_startup_notification="Enable support for desktop notification"
 desc_option_static="Enable static linking"
 desc_option_svg="Enable support for SVG images"
+desc_option_svtav1="Enable support for the SVT-AV1 Encoder and Decoder"
 desc_option_tcpwrappers="Enable support for tcpwrappers"
 desc_option_tiff="Enable support for TIFF images"
 desc_option_upower="Enable support for UPower"
diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template
index c5929b4582f3..b7dce8fb11f7 100644
--- a/srcpkgs/ffmpeg/template
+++ b/srcpkgs/ffmpeg/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg
 version=4.4.1
-revision=1
+revision=2
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
@@ -25,15 +25,16 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  $(vopt_if dav1d libdav1d-devel) $(vopt_if zimg zimg-devel)
  $(vopt_if webp libwebp-devel) $(vopt_if sofa libmysofa-devel)
  $(vopt_if vulkan 'vulkan-loader Vulkan-Headers')
- $(vopt_if drm libdrm-devel)"
+ $(vopt_if drm libdrm-devel) $(vopt_if svtav1 libsvt-av1-devel)"
 depends="ffplay>=${version}_${revision}"
 
 build_options="x265 v4l2 vaapi vdpau vpx faac fdk_aac aom nvenc sndio pulseaudio
- dav1d zimg webp sofa vulkan drm"
+ dav1d zimg webp sofa vulkan drm svtav1"
 build_options_default="x265 v4l2 vpx aom sndio pulseaudio dav1d webp vulkan drm"
 
 case "$XBPS_TARGET_MACHINE" in
-	i686*|x86_64*) build_options_default+=" vaapi vdpau nvenc";;
+	x86_64*) build_options_default+=" vaapi vdpau nvenc svtav1";;
+	i686*) build_options_default+=" vaapi vdpau nvenc";;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
 esac
@@ -102,16 +103,17 @@ do_configure() {
 		--disable-libopencore_amrnb --disable-libopencore_amrwb \
 		--disable-libopenjpeg \
 		--enable-postproc --enable-opencl ${_args} \
-		$(vopt_if x265 '--enable-libx265' '--disable-libx265') \
-		$(vopt_if v4l2 '--enable-libv4l2' '--disable-libv4l2') \
+		$(vopt_enable x265 libx265) \
+		$(vopt_enable v4l2 libv4l2) \
 		$(vopt_enable aom libaom) $(vopt_enable vaapi) $(vopt_enable vdpau) \
 		--enable-libbs2b --enable-avresample --enable-libvidstab \
-		$(vopt_if dav1d '--enable-libdav1d') \
-		$(vopt_if zimg '--enable-libzimg') \
-		$(vopt_if webp '--enable-libwebp') \
-		$(vopt_if sofa '--enable-libmysofa') \
-		$(vopt_if vulkan '--enable-vulkan') \
-		$(vopt_if drm '--enable-libdrm')
+		$(vopt_enable dav1d libdav1d) \
+		$(vopt_enable zimg libzimg) \
+		$(vopt_enable webp libwebp) \
+		$(vopt_enable sofa libmysofa) \
+		$(vopt_enable vulkan) \
+		$(vopt_enable drm libdrm) \
+		$(vopt_enable svtav1 libsvtav1)
 }
 do_build() {
 	make ${makejobs}

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PR PATCH] [Updated] New package: svt-av1-0.9.0
  2022-02-12 12:55 [PR PATCH] New package: svt-av1-0.9.0 tibequadorian
@ 2022-02-28  0:33 ` tibequadorian
  2022-02-28  0:42 ` tibequadorian
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: tibequadorian @ 2022-02-28  0:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1381 bytes --]

There is an updated pull request by tibequadorian against master on the void-packages repository

https://github.com/tibequadorian/void-packages svt-av1
https://github.com/void-linux/void-packages/pull/35551

New package: svt-av1-0.9.0
closes https://github.com/void-linux/void-packages/issues/35541

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

I tested this by encoding a video using `ffmpeg -i in.mp4 -c:v libsvtav1 out.mkv`.

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](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/35551.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-svt-av1-35551.patch --]
[-- Type: text/x-diff, Size: 5926 bytes --]

From aae33a4c9278970612c80842c75cf09d1a32fcca Mon Sep 17 00:00:00 2001
From: tibequadorian <tibequadorian@posteo.de>
Date: Sat, 12 Feb 2022 12:56:31 +0100
Subject: [PATCH 1/2] New package: svt-av1-0.9.0

---
 common/shlibs            |  2 ++
 srcpkgs/libsvt-av1       |  1 +
 srcpkgs/libsvt-av1-devel |  1 +
 srcpkgs/svt-av1/template | 34 ++++++++++++++++++++++++++++++++++
 4 files changed, 38 insertions(+)
 create mode 120000 srcpkgs/libsvt-av1
 create mode 120000 srcpkgs/libsvt-av1-devel
 create mode 100644 srcpkgs/svt-av1/template

diff --git a/common/shlibs b/common/shlibs
index 8f171c85d99b..5096ab5dad6b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4115,3 +4115,5 @@ libjvm.so openjdk17-jre-17.0.1+12_1
 librttopo.so.1 librttopo-1.1.0_1
 libspatialite.so.7 libspatialite-5.0.1_1
 mod_spatialite.so.7 libspatialite-5.0.1_1
+libSvtAv1Enc.so.0 libsvt-av1-0.9.0_1
+libSvtAv1Dec.so.0 libsvt-av1-0.9.0_1
diff --git a/srcpkgs/libsvt-av1 b/srcpkgs/libsvt-av1
new file mode 120000
index 000000000000..11a5a05a9045
--- /dev/null
+++ b/srcpkgs/libsvt-av1
@@ -0,0 +1 @@
+svt-av1
\ No newline at end of file
diff --git a/srcpkgs/libsvt-av1-devel b/srcpkgs/libsvt-av1-devel
new file mode 120000
index 000000000000..11a5a05a9045
--- /dev/null
+++ b/srcpkgs/libsvt-av1-devel
@@ -0,0 +1 @@
+svt-av1
\ No newline at end of file
diff --git a/srcpkgs/svt-av1/template b/srcpkgs/svt-av1/template
new file mode 100644
index 000000000000..0c903af4b92e
--- /dev/null
+++ b/srcpkgs/svt-av1/template
@@ -0,0 +1,34 @@
+# Template file for 'svt-av1'
+pkgname=svt-av1
+version=0.9.1
+revision=1
+archs="x86_64*"
+wrksrc="SVT-AV1-v${version}"
+build_style=cmake
+hostmakedepends="nasm"
+short_desc="AV1-compliant encoder/decoder library core"
+maintainer="tibequadorian <tibequadorian@posteo.de>"
+license="BSD-3-Clause-Clear"
+homepage="https://gitlab.com/AOMediaCodec/SVT-AV1"
+changelog="https://gitlab.com/AOMediaCodec/SVT-AV1/-/raw/master/CHANGELOG.md"
+distfiles="https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v${version}/SVT-AV1-v${version}.tar.gz"
+checksum=714154c08a90a5eb1f09c4d0d766621132711137af127468dc122c04ca9784ae
+
+libsvt-av1_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "/usr/lib/libSvtAv1Dec.so.*"
+		vmove "/usr/lib/libSvtAv1Enc.so.*"
+		vlicense LICENSE.md
+	}
+}
+
+libsvt-av1-devel_package() {
+	short_desc+=" - development files"
+	depends="libsvt-av1>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

From 6064820ccaabee6a71bde123ac80874e364b2f82 Mon Sep 17 00:00:00 2001
From: tibequadorian <tibequadorian@posteo.de>
Date: Sat, 12 Feb 2022 12:57:04 +0100
Subject: [PATCH 2/2] ffmpeg: enable libsvtav1

---
 common/options.description |  1 +
 srcpkgs/ffmpeg/template    | 26 ++++++++++++++------------
 2 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/common/options.description b/common/options.description
index ac0f14c0843d..f9e3d0ce1992 100644
--- a/common/options.description
+++ b/common/options.description
@@ -83,6 +83,7 @@ desc_option_ssl="Enable support for SSL"
 desc_option_startup_notification="Enable support for desktop notification"
 desc_option_static="Enable static linking"
 desc_option_svg="Enable support for SVG images"
+desc_option_svtav1="Enable support for the SVT-AV1 Encoder and Decoder"
 desc_option_tcpwrappers="Enable support for tcpwrappers"
 desc_option_tiff="Enable support for TIFF images"
 desc_option_upower="Enable support for UPower"
diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template
index c5929b4582f3..b7dce8fb11f7 100644
--- a/srcpkgs/ffmpeg/template
+++ b/srcpkgs/ffmpeg/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg
 version=4.4.1
-revision=1
+revision=2
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
@@ -25,15 +25,16 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  $(vopt_if dav1d libdav1d-devel) $(vopt_if zimg zimg-devel)
  $(vopt_if webp libwebp-devel) $(vopt_if sofa libmysofa-devel)
  $(vopt_if vulkan 'vulkan-loader Vulkan-Headers')
- $(vopt_if drm libdrm-devel)"
+ $(vopt_if drm libdrm-devel) $(vopt_if svtav1 libsvt-av1-devel)"
 depends="ffplay>=${version}_${revision}"
 
 build_options="x265 v4l2 vaapi vdpau vpx faac fdk_aac aom nvenc sndio pulseaudio
- dav1d zimg webp sofa vulkan drm"
+ dav1d zimg webp sofa vulkan drm svtav1"
 build_options_default="x265 v4l2 vpx aom sndio pulseaudio dav1d webp vulkan drm"
 
 case "$XBPS_TARGET_MACHINE" in
-	i686*|x86_64*) build_options_default+=" vaapi vdpau nvenc";;
+	x86_64*) build_options_default+=" vaapi vdpau nvenc svtav1";;
+	i686*) build_options_default+=" vaapi vdpau nvenc";;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
 esac
@@ -102,16 +103,17 @@ do_configure() {
 		--disable-libopencore_amrnb --disable-libopencore_amrwb \
 		--disable-libopenjpeg \
 		--enable-postproc --enable-opencl ${_args} \
-		$(vopt_if x265 '--enable-libx265' '--disable-libx265') \
-		$(vopt_if v4l2 '--enable-libv4l2' '--disable-libv4l2') \
+		$(vopt_enable x265 libx265) \
+		$(vopt_enable v4l2 libv4l2) \
 		$(vopt_enable aom libaom) $(vopt_enable vaapi) $(vopt_enable vdpau) \
 		--enable-libbs2b --enable-avresample --enable-libvidstab \
-		$(vopt_if dav1d '--enable-libdav1d') \
-		$(vopt_if zimg '--enable-libzimg') \
-		$(vopt_if webp '--enable-libwebp') \
-		$(vopt_if sofa '--enable-libmysofa') \
-		$(vopt_if vulkan '--enable-vulkan') \
-		$(vopt_if drm '--enable-libdrm')
+		$(vopt_enable dav1d libdav1d) \
+		$(vopt_enable zimg libzimg) \
+		$(vopt_enable webp libwebp) \
+		$(vopt_enable sofa libmysofa) \
+		$(vopt_enable vulkan) \
+		$(vopt_enable drm libdrm) \
+		$(vopt_enable svtav1 libsvtav1)
 }
 do_build() {
 	make ${makejobs}

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PR PATCH] [Updated] New package: svt-av1-0.9.0
  2022-02-12 12:55 [PR PATCH] New package: svt-av1-0.9.0 tibequadorian
  2022-02-28  0:33 ` [PR PATCH] [Updated] " tibequadorian
@ 2022-02-28  0:42 ` tibequadorian
  2022-02-28  0:47 ` tibequadorian
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: tibequadorian @ 2022-02-28  0:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1381 bytes --]

There is an updated pull request by tibequadorian against master on the void-packages repository

https://github.com/tibequadorian/void-packages svt-av1
https://github.com/void-linux/void-packages/pull/35551

New package: svt-av1-0.9.0
closes https://github.com/void-linux/void-packages/issues/35541

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

I tested this by encoding a video using `ffmpeg -i in.mp4 -c:v libsvtav1 out.mkv`.

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](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/35551.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-svt-av1-35551.patch --]
[-- Type: text/x-diff, Size: 5998 bytes --]

From 6e77db6406c494f95e4416b8399c5f15b1bc1c5d Mon Sep 17 00:00:00 2001
From: tibequadorian <tibequadorian@posteo.de>
Date: Sat, 12 Feb 2022 12:56:31 +0100
Subject: [PATCH 1/2] New package: svt-av1-0.9.0

---
 common/shlibs            |  2 ++
 srcpkgs/libsvt-av1       |  1 +
 srcpkgs/libsvt-av1-devel |  1 +
 srcpkgs/svt-av1/template | 37 +++++++++++++++++++++++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 120000 srcpkgs/libsvt-av1
 create mode 120000 srcpkgs/libsvt-av1-devel
 create mode 100644 srcpkgs/svt-av1/template

diff --git a/common/shlibs b/common/shlibs
index 8f171c85d99b..5096ab5dad6b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4115,3 +4115,5 @@ libjvm.so openjdk17-jre-17.0.1+12_1
 librttopo.so.1 librttopo-1.1.0_1
 libspatialite.so.7 libspatialite-5.0.1_1
 mod_spatialite.so.7 libspatialite-5.0.1_1
+libSvtAv1Enc.so.0 libsvt-av1-0.9.0_1
+libSvtAv1Dec.so.0 libsvt-av1-0.9.0_1
diff --git a/srcpkgs/libsvt-av1 b/srcpkgs/libsvt-av1
new file mode 120000
index 000000000000..11a5a05a9045
--- /dev/null
+++ b/srcpkgs/libsvt-av1
@@ -0,0 +1 @@
+svt-av1
\ No newline at end of file
diff --git a/srcpkgs/libsvt-av1-devel b/srcpkgs/libsvt-av1-devel
new file mode 120000
index 000000000000..11a5a05a9045
--- /dev/null
+++ b/srcpkgs/libsvt-av1-devel
@@ -0,0 +1 @@
+svt-av1
\ No newline at end of file
diff --git a/srcpkgs/svt-av1/template b/srcpkgs/svt-av1/template
new file mode 100644
index 000000000000..d58a454ec0fb
--- /dev/null
+++ b/srcpkgs/svt-av1/template
@@ -0,0 +1,37 @@
+# Template file for 'svt-av1'
+pkgname=svt-av1
+version=0.9.1
+revision=1
+wrksrc="SVT-AV1-v${version}"
+build_style=cmake
+hostmakedepends="nasm"
+short_desc="AV1-compliant encoder/decoder library core"
+maintainer="tibequadorian <tibequadorian@posteo.de>"
+license="BSD-3-Clause-Clear"
+homepage="https://gitlab.com/AOMediaCodec/SVT-AV1"
+changelog="https://gitlab.com/AOMediaCodec/SVT-AV1/-/raw/master/CHANGELOG.md"
+distfiles="https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v${version}/SVT-AV1-v${version}.tar.gz"
+checksum=714154c08a90a5eb1f09c4d0d766621132711137af127468dc122c04ca9784ae
+
+if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
+	broken="32-bit is not supported"
+fi
+
+libsvt-av1_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "/usr/lib/libSvtAv1Dec.so.*"
+		vmove "/usr/lib/libSvtAv1Enc.so.*"
+		vlicense LICENSE.md
+	}
+}
+
+libsvt-av1-devel_package() {
+	short_desc+=" - development files"
+	depends="libsvt-av1>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

From 45f1b50f4faa25bb08de49f16549269bf3982bd4 Mon Sep 17 00:00:00 2001
From: tibequadorian <tibequadorian@posteo.de>
Date: Sat, 12 Feb 2022 12:57:04 +0100
Subject: [PATCH 2/2] ffmpeg: enable libsvtav1

---
 common/options.description |  1 +
 srcpkgs/ffmpeg/template    | 26 ++++++++++++++------------
 2 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/common/options.description b/common/options.description
index ac0f14c0843d..f9e3d0ce1992 100644
--- a/common/options.description
+++ b/common/options.description
@@ -83,6 +83,7 @@ desc_option_ssl="Enable support for SSL"
 desc_option_startup_notification="Enable support for desktop notification"
 desc_option_static="Enable static linking"
 desc_option_svg="Enable support for SVG images"
+desc_option_svtav1="Enable support for the SVT-AV1 Encoder and Decoder"
 desc_option_tcpwrappers="Enable support for tcpwrappers"
 desc_option_tiff="Enable support for TIFF images"
 desc_option_upower="Enable support for UPower"
diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template
index c5929b4582f3..b7dce8fb11f7 100644
--- a/srcpkgs/ffmpeg/template
+++ b/srcpkgs/ffmpeg/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg
 version=4.4.1
-revision=1
+revision=2
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
@@ -25,15 +25,16 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  $(vopt_if dav1d libdav1d-devel) $(vopt_if zimg zimg-devel)
  $(vopt_if webp libwebp-devel) $(vopt_if sofa libmysofa-devel)
  $(vopt_if vulkan 'vulkan-loader Vulkan-Headers')
- $(vopt_if drm libdrm-devel)"
+ $(vopt_if drm libdrm-devel) $(vopt_if svtav1 libsvt-av1-devel)"
 depends="ffplay>=${version}_${revision}"
 
 build_options="x265 v4l2 vaapi vdpau vpx faac fdk_aac aom nvenc sndio pulseaudio
- dav1d zimg webp sofa vulkan drm"
+ dav1d zimg webp sofa vulkan drm svtav1"
 build_options_default="x265 v4l2 vpx aom sndio pulseaudio dav1d webp vulkan drm"
 
 case "$XBPS_TARGET_MACHINE" in
-	i686*|x86_64*) build_options_default+=" vaapi vdpau nvenc";;
+	x86_64*) build_options_default+=" vaapi vdpau nvenc svtav1";;
+	i686*) build_options_default+=" vaapi vdpau nvenc";;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
 esac
@@ -102,16 +103,17 @@ do_configure() {
 		--disable-libopencore_amrnb --disable-libopencore_amrwb \
 		--disable-libopenjpeg \
 		--enable-postproc --enable-opencl ${_args} \
-		$(vopt_if x265 '--enable-libx265' '--disable-libx265') \
-		$(vopt_if v4l2 '--enable-libv4l2' '--disable-libv4l2') \
+		$(vopt_enable x265 libx265) \
+		$(vopt_enable v4l2 libv4l2) \
 		$(vopt_enable aom libaom) $(vopt_enable vaapi) $(vopt_enable vdpau) \
 		--enable-libbs2b --enable-avresample --enable-libvidstab \
-		$(vopt_if dav1d '--enable-libdav1d') \
-		$(vopt_if zimg '--enable-libzimg') \
-		$(vopt_if webp '--enable-libwebp') \
-		$(vopt_if sofa '--enable-libmysofa') \
-		$(vopt_if vulkan '--enable-vulkan') \
-		$(vopt_if drm '--enable-libdrm')
+		$(vopt_enable dav1d libdav1d) \
+		$(vopt_enable zimg libzimg) \
+		$(vopt_enable webp libwebp) \
+		$(vopt_enable sofa libmysofa) \
+		$(vopt_enable vulkan) \
+		$(vopt_enable drm libdrm) \
+		$(vopt_enable svtav1 libsvtav1)
 }
 do_build() {
 	make ${makejobs}

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PR PATCH] [Updated] New package: svt-av1-0.9.0
  2022-02-12 12:55 [PR PATCH] New package: svt-av1-0.9.0 tibequadorian
  2022-02-28  0:33 ` [PR PATCH] [Updated] " tibequadorian
  2022-02-28  0:42 ` tibequadorian
@ 2022-02-28  0:47 ` tibequadorian
  2022-02-28 13:34 ` [PR PATCH] [Updated] New package: svt-av1-0.9.1 tibequadorian
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: tibequadorian @ 2022-02-28  0:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1381 bytes --]

There is an updated pull request by tibequadorian against master on the void-packages repository

https://github.com/tibequadorian/void-packages svt-av1
https://github.com/void-linux/void-packages/pull/35551

New package: svt-av1-0.9.0
closes https://github.com/void-linux/void-packages/issues/35541

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

I tested this by encoding a video using `ffmpeg -i in.mp4 -c:v libsvtav1 out.mkv`.

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](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/35551.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-svt-av1-35551.patch --]
[-- Type: text/x-diff, Size: 5996 bytes --]

From 015e6009309b68c757ddba1a40ea85683aaec730 Mon Sep 17 00:00:00 2001
From: tibequadorian <tibequadorian@posteo.de>
Date: Sat, 12 Feb 2022 12:56:31 +0100
Subject: [PATCH 1/2] New package: svt-av1-0.9.0

---
 common/shlibs            |  2 ++
 srcpkgs/libsvt-av1       |  1 +
 srcpkgs/libsvt-av1-devel |  1 +
 srcpkgs/svt-av1/template | 37 +++++++++++++++++++++++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 120000 srcpkgs/libsvt-av1
 create mode 120000 srcpkgs/libsvt-av1-devel
 create mode 100644 srcpkgs/svt-av1/template

diff --git a/common/shlibs b/common/shlibs
index 8f171c85d99b..5096ab5dad6b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4115,3 +4115,5 @@ libjvm.so openjdk17-jre-17.0.1+12_1
 librttopo.so.1 librttopo-1.1.0_1
 libspatialite.so.7 libspatialite-5.0.1_1
 mod_spatialite.so.7 libspatialite-5.0.1_1
+libSvtAv1Enc.so.0 libsvt-av1-0.9.0_1
+libSvtAv1Dec.so.0 libsvt-av1-0.9.0_1
diff --git a/srcpkgs/libsvt-av1 b/srcpkgs/libsvt-av1
new file mode 120000
index 000000000000..11a5a05a9045
--- /dev/null
+++ b/srcpkgs/libsvt-av1
@@ -0,0 +1 @@
+svt-av1
\ No newline at end of file
diff --git a/srcpkgs/libsvt-av1-devel b/srcpkgs/libsvt-av1-devel
new file mode 120000
index 000000000000..11a5a05a9045
--- /dev/null
+++ b/srcpkgs/libsvt-av1-devel
@@ -0,0 +1 @@
+svt-av1
\ No newline at end of file
diff --git a/srcpkgs/svt-av1/template b/srcpkgs/svt-av1/template
new file mode 100644
index 000000000000..ab9386d90cb7
--- /dev/null
+++ b/srcpkgs/svt-av1/template
@@ -0,0 +1,37 @@
+# Template file for 'svt-av1'
+pkgname=svt-av1
+version=0.9.1
+revision=1
+wrksrc="SVT-AV1-v${version}"
+build_style=cmake
+hostmakedepends="nasm"
+short_desc="AV1-compliant encoder/decoder library core"
+maintainer="tibequadorian <tibequadorian@posteo.de>"
+license="BSD-3-Clause-Clear"
+homepage="https://gitlab.com/AOMediaCodec/SVT-AV1"
+changelog="https://gitlab.com/AOMediaCodec/SVT-AV1/-/raw/master/CHANGELOG.md"
+distfiles="https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v${version}/SVT-AV1-v${version}.tar.gz"
+checksum=714154c08a90a5eb1f09c4d0d766621132711137af127468dc122c04ca9784ae
+
+if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
+	broken="32-bit is not supported"
+fi
+
+libsvt-av1_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "usr/lib/libSvtAv1Dec.so.*"
+		vmove "usr/lib/libSvtAv1Enc.so.*"
+		vlicense LICENSE.md
+	}
+}
+
+libsvt-av1-devel_package() {
+	short_desc+=" - development files"
+	depends="libsvt-av1>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

From d2dbc3e8384e1103ba3d1db13918ccfdb56ae49c Mon Sep 17 00:00:00 2001
From: tibequadorian <tibequadorian@posteo.de>
Date: Sat, 12 Feb 2022 12:57:04 +0100
Subject: [PATCH 2/2] ffmpeg: enable libsvtav1

---
 common/options.description |  1 +
 srcpkgs/ffmpeg/template    | 26 ++++++++++++++------------
 2 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/common/options.description b/common/options.description
index ac0f14c0843d..f9e3d0ce1992 100644
--- a/common/options.description
+++ b/common/options.description
@@ -83,6 +83,7 @@ desc_option_ssl="Enable support for SSL"
 desc_option_startup_notification="Enable support for desktop notification"
 desc_option_static="Enable static linking"
 desc_option_svg="Enable support for SVG images"
+desc_option_svtav1="Enable support for the SVT-AV1 Encoder and Decoder"
 desc_option_tcpwrappers="Enable support for tcpwrappers"
 desc_option_tiff="Enable support for TIFF images"
 desc_option_upower="Enable support for UPower"
diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template
index c5929b4582f3..b7dce8fb11f7 100644
--- a/srcpkgs/ffmpeg/template
+++ b/srcpkgs/ffmpeg/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg
 version=4.4.1
-revision=1
+revision=2
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
@@ -25,15 +25,16 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  $(vopt_if dav1d libdav1d-devel) $(vopt_if zimg zimg-devel)
  $(vopt_if webp libwebp-devel) $(vopt_if sofa libmysofa-devel)
  $(vopt_if vulkan 'vulkan-loader Vulkan-Headers')
- $(vopt_if drm libdrm-devel)"
+ $(vopt_if drm libdrm-devel) $(vopt_if svtav1 libsvt-av1-devel)"
 depends="ffplay>=${version}_${revision}"
 
 build_options="x265 v4l2 vaapi vdpau vpx faac fdk_aac aom nvenc sndio pulseaudio
- dav1d zimg webp sofa vulkan drm"
+ dav1d zimg webp sofa vulkan drm svtav1"
 build_options_default="x265 v4l2 vpx aom sndio pulseaudio dav1d webp vulkan drm"
 
 case "$XBPS_TARGET_MACHINE" in
-	i686*|x86_64*) build_options_default+=" vaapi vdpau nvenc";;
+	x86_64*) build_options_default+=" vaapi vdpau nvenc svtav1";;
+	i686*) build_options_default+=" vaapi vdpau nvenc";;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
 esac
@@ -102,16 +103,17 @@ do_configure() {
 		--disable-libopencore_amrnb --disable-libopencore_amrwb \
 		--disable-libopenjpeg \
 		--enable-postproc --enable-opencl ${_args} \
-		$(vopt_if x265 '--enable-libx265' '--disable-libx265') \
-		$(vopt_if v4l2 '--enable-libv4l2' '--disable-libv4l2') \
+		$(vopt_enable x265 libx265) \
+		$(vopt_enable v4l2 libv4l2) \
 		$(vopt_enable aom libaom) $(vopt_enable vaapi) $(vopt_enable vdpau) \
 		--enable-libbs2b --enable-avresample --enable-libvidstab \
-		$(vopt_if dav1d '--enable-libdav1d') \
-		$(vopt_if zimg '--enable-libzimg') \
-		$(vopt_if webp '--enable-libwebp') \
-		$(vopt_if sofa '--enable-libmysofa') \
-		$(vopt_if vulkan '--enable-vulkan') \
-		$(vopt_if drm '--enable-libdrm')
+		$(vopt_enable dav1d libdav1d) \
+		$(vopt_enable zimg libzimg) \
+		$(vopt_enable webp libwebp) \
+		$(vopt_enable sofa libmysofa) \
+		$(vopt_enable vulkan) \
+		$(vopt_enable drm libdrm) \
+		$(vopt_enable svtav1 libsvtav1)
 }
 do_build() {
 	make ${makejobs}

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PR PATCH] [Updated] New package: svt-av1-0.9.1
  2022-02-12 12:55 [PR PATCH] New package: svt-av1-0.9.0 tibequadorian
                   ` (2 preceding siblings ...)
  2022-02-28  0:47 ` tibequadorian
@ 2022-02-28 13:34 ` tibequadorian
  2022-02-28 13:36 ` leahneukirchen
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: tibequadorian @ 2022-02-28 13:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1381 bytes --]

There is an updated pull request by tibequadorian against master on the void-packages repository

https://github.com/tibequadorian/void-packages svt-av1
https://github.com/void-linux/void-packages/pull/35551

New package: svt-av1-0.9.1
closes https://github.com/void-linux/void-packages/issues/35541

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

I tested this by encoding a video using `ffmpeg -i in.mp4 -c:v libsvtav1 out.mkv`.

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](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/35551.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-svt-av1-35551.patch --]
[-- Type: text/x-diff, Size: 5996 bytes --]

From e933b93a3aa4987807717ceafdfce41157365302 Mon Sep 17 00:00:00 2001
From: tibequadorian <tibequadorian@posteo.de>
Date: Sat, 12 Feb 2022 12:56:31 +0100
Subject: [PATCH 1/2] New package: svt-av1-0.9.1

---
 common/shlibs            |  2 ++
 srcpkgs/libsvt-av1       |  1 +
 srcpkgs/libsvt-av1-devel |  1 +
 srcpkgs/svt-av1/template | 37 +++++++++++++++++++++++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 120000 srcpkgs/libsvt-av1
 create mode 120000 srcpkgs/libsvt-av1-devel
 create mode 100644 srcpkgs/svt-av1/template

diff --git a/common/shlibs b/common/shlibs
index 8f171c85d99b..5096ab5dad6b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4115,3 +4115,5 @@ libjvm.so openjdk17-jre-17.0.1+12_1
 librttopo.so.1 librttopo-1.1.0_1
 libspatialite.so.7 libspatialite-5.0.1_1
 mod_spatialite.so.7 libspatialite-5.0.1_1
+libSvtAv1Enc.so.0 libsvt-av1-0.9.0_1
+libSvtAv1Dec.so.0 libsvt-av1-0.9.0_1
diff --git a/srcpkgs/libsvt-av1 b/srcpkgs/libsvt-av1
new file mode 120000
index 000000000000..11a5a05a9045
--- /dev/null
+++ b/srcpkgs/libsvt-av1
@@ -0,0 +1 @@
+svt-av1
\ No newline at end of file
diff --git a/srcpkgs/libsvt-av1-devel b/srcpkgs/libsvt-av1-devel
new file mode 120000
index 000000000000..11a5a05a9045
--- /dev/null
+++ b/srcpkgs/libsvt-av1-devel
@@ -0,0 +1 @@
+svt-av1
\ No newline at end of file
diff --git a/srcpkgs/svt-av1/template b/srcpkgs/svt-av1/template
new file mode 100644
index 000000000000..ab9386d90cb7
--- /dev/null
+++ b/srcpkgs/svt-av1/template
@@ -0,0 +1,37 @@
+# Template file for 'svt-av1'
+pkgname=svt-av1
+version=0.9.1
+revision=1
+wrksrc="SVT-AV1-v${version}"
+build_style=cmake
+hostmakedepends="nasm"
+short_desc="AV1-compliant encoder/decoder library core"
+maintainer="tibequadorian <tibequadorian@posteo.de>"
+license="BSD-3-Clause-Clear"
+homepage="https://gitlab.com/AOMediaCodec/SVT-AV1"
+changelog="https://gitlab.com/AOMediaCodec/SVT-AV1/-/raw/master/CHANGELOG.md"
+distfiles="https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v${version}/SVT-AV1-v${version}.tar.gz"
+checksum=714154c08a90a5eb1f09c4d0d766621132711137af127468dc122c04ca9784ae
+
+if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
+	broken="32-bit is not supported"
+fi
+
+libsvt-av1_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "usr/lib/libSvtAv1Dec.so.*"
+		vmove "usr/lib/libSvtAv1Enc.so.*"
+		vlicense LICENSE.md
+	}
+}
+
+libsvt-av1-devel_package() {
+	short_desc+=" - development files"
+	depends="libsvt-av1>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

From 27d13774d6b42f846b321421f4843b5478d5be64 Mon Sep 17 00:00:00 2001
From: tibequadorian <tibequadorian@posteo.de>
Date: Sat, 12 Feb 2022 12:57:04 +0100
Subject: [PATCH 2/2] ffmpeg: enable libsvtav1

---
 common/options.description |  1 +
 srcpkgs/ffmpeg/template    | 26 ++++++++++++++------------
 2 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/common/options.description b/common/options.description
index ac0f14c0843d..f9e3d0ce1992 100644
--- a/common/options.description
+++ b/common/options.description
@@ -83,6 +83,7 @@ desc_option_ssl="Enable support for SSL"
 desc_option_startup_notification="Enable support for desktop notification"
 desc_option_static="Enable static linking"
 desc_option_svg="Enable support for SVG images"
+desc_option_svtav1="Enable support for the SVT-AV1 Encoder and Decoder"
 desc_option_tcpwrappers="Enable support for tcpwrappers"
 desc_option_tiff="Enable support for TIFF images"
 desc_option_upower="Enable support for UPower"
diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template
index c5929b4582f3..b7dce8fb11f7 100644
--- a/srcpkgs/ffmpeg/template
+++ b/srcpkgs/ffmpeg/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg
 version=4.4.1
-revision=1
+revision=2
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
@@ -25,15 +25,16 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  $(vopt_if dav1d libdav1d-devel) $(vopt_if zimg zimg-devel)
  $(vopt_if webp libwebp-devel) $(vopt_if sofa libmysofa-devel)
  $(vopt_if vulkan 'vulkan-loader Vulkan-Headers')
- $(vopt_if drm libdrm-devel)"
+ $(vopt_if drm libdrm-devel) $(vopt_if svtav1 libsvt-av1-devel)"
 depends="ffplay>=${version}_${revision}"
 
 build_options="x265 v4l2 vaapi vdpau vpx faac fdk_aac aom nvenc sndio pulseaudio
- dav1d zimg webp sofa vulkan drm"
+ dav1d zimg webp sofa vulkan drm svtav1"
 build_options_default="x265 v4l2 vpx aom sndio pulseaudio dav1d webp vulkan drm"
 
 case "$XBPS_TARGET_MACHINE" in
-	i686*|x86_64*) build_options_default+=" vaapi vdpau nvenc";;
+	x86_64*) build_options_default+=" vaapi vdpau nvenc svtav1";;
+	i686*) build_options_default+=" vaapi vdpau nvenc";;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
 esac
@@ -102,16 +103,17 @@ do_configure() {
 		--disable-libopencore_amrnb --disable-libopencore_amrwb \
 		--disable-libopenjpeg \
 		--enable-postproc --enable-opencl ${_args} \
-		$(vopt_if x265 '--enable-libx265' '--disable-libx265') \
-		$(vopt_if v4l2 '--enable-libv4l2' '--disable-libv4l2') \
+		$(vopt_enable x265 libx265) \
+		$(vopt_enable v4l2 libv4l2) \
 		$(vopt_enable aom libaom) $(vopt_enable vaapi) $(vopt_enable vdpau) \
 		--enable-libbs2b --enable-avresample --enable-libvidstab \
-		$(vopt_if dav1d '--enable-libdav1d') \
-		$(vopt_if zimg '--enable-libzimg') \
-		$(vopt_if webp '--enable-libwebp') \
-		$(vopt_if sofa '--enable-libmysofa') \
-		$(vopt_if vulkan '--enable-vulkan') \
-		$(vopt_if drm '--enable-libdrm')
+		$(vopt_enable dav1d libdav1d) \
+		$(vopt_enable zimg libzimg) \
+		$(vopt_enable webp libwebp) \
+		$(vopt_enable sofa libmysofa) \
+		$(vopt_enable vulkan) \
+		$(vopt_enable drm libdrm) \
+		$(vopt_enable svtav1 libsvtav1)
 }
 do_build() {
 	make ${makejobs}

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: New package: svt-av1-0.9.1
  2022-02-12 12:55 [PR PATCH] New package: svt-av1-0.9.0 tibequadorian
                   ` (3 preceding siblings ...)
  2022-02-28 13:34 ` [PR PATCH] [Updated] New package: svt-av1-0.9.1 tibequadorian
@ 2022-02-28 13:36 ` leahneukirchen
  2022-02-28 14:33 ` [PR PATCH] [Updated] " tibequadorian
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: leahneukirchen @ 2022-02-28 13:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 215 bytes --]

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/pull/35551#issuecomment-1054264114

Comment:
Not clear to me how x86_64 specific this is, if it is, set archs=.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PR PATCH] [Updated] New package: svt-av1-0.9.1
  2022-02-12 12:55 [PR PATCH] New package: svt-av1-0.9.0 tibequadorian
                   ` (4 preceding siblings ...)
  2022-02-28 13:36 ` leahneukirchen
@ 2022-02-28 14:33 ` tibequadorian
  2022-02-28 15:28 ` tibequadorian
  2022-03-01 15:06 ` [PR PATCH] [Merged]: " leahneukirchen
  7 siblings, 0 replies; 9+ messages in thread
From: tibequadorian @ 2022-02-28 14:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1381 bytes --]

There is an updated pull request by tibequadorian against master on the void-packages repository

https://github.com/tibequadorian/void-packages svt-av1
https://github.com/void-linux/void-packages/pull/35551

New package: svt-av1-0.9.1
closes https://github.com/void-linux/void-packages/issues/35541

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

I tested this by encoding a video using `ffmpeg -i in.mp4 -c:v libsvtav1 out.mkv`.

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](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/35551.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-svt-av1-35551.patch --]
[-- Type: text/x-diff, Size: 5982 bytes --]

From 822a01315cac805c6ac899c27318f5dddccd2b60 Mon Sep 17 00:00:00 2001
From: tibequadorian <tibequadorian@posteo.de>
Date: Sat, 12 Feb 2022 12:56:31 +0100
Subject: [PATCH 1/2] New package: svt-av1-0.9.1

---
 common/shlibs            |  2 ++
 srcpkgs/libsvt-av1       |  1 +
 srcpkgs/libsvt-av1-devel |  1 +
 srcpkgs/svt-av1/template | 37 +++++++++++++++++++++++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 120000 srcpkgs/libsvt-av1
 create mode 120000 srcpkgs/libsvt-av1-devel
 create mode 100644 srcpkgs/svt-av1/template

diff --git a/common/shlibs b/common/shlibs
index 8f171c85d99b..5096ab5dad6b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4115,3 +4115,5 @@ libjvm.so openjdk17-jre-17.0.1+12_1
 librttopo.so.1 librttopo-1.1.0_1
 libspatialite.so.7 libspatialite-5.0.1_1
 mod_spatialite.so.7 libspatialite-5.0.1_1
+libSvtAv1Enc.so.0 libsvt-av1-0.9.0_1
+libSvtAv1Dec.so.0 libsvt-av1-0.9.0_1
diff --git a/srcpkgs/libsvt-av1 b/srcpkgs/libsvt-av1
new file mode 120000
index 000000000000..11a5a05a9045
--- /dev/null
+++ b/srcpkgs/libsvt-av1
@@ -0,0 +1 @@
+svt-av1
\ No newline at end of file
diff --git a/srcpkgs/libsvt-av1-devel b/srcpkgs/libsvt-av1-devel
new file mode 120000
index 000000000000..11a5a05a9045
--- /dev/null
+++ b/srcpkgs/libsvt-av1-devel
@@ -0,0 +1 @@
+svt-av1
\ No newline at end of file
diff --git a/srcpkgs/svt-av1/template b/srcpkgs/svt-av1/template
new file mode 100644
index 000000000000..ab9386d90cb7
--- /dev/null
+++ b/srcpkgs/svt-av1/template
@@ -0,0 +1,37 @@
+# Template file for 'svt-av1'
+pkgname=svt-av1
+version=0.9.1
+revision=1
+wrksrc="SVT-AV1-v${version}"
+build_style=cmake
+hostmakedepends="nasm"
+short_desc="AV1-compliant encoder/decoder library core"
+maintainer="tibequadorian <tibequadorian@posteo.de>"
+license="BSD-3-Clause-Clear"
+homepage="https://gitlab.com/AOMediaCodec/SVT-AV1"
+changelog="https://gitlab.com/AOMediaCodec/SVT-AV1/-/raw/master/CHANGELOG.md"
+distfiles="https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v${version}/SVT-AV1-v${version}.tar.gz"
+checksum=714154c08a90a5eb1f09c4d0d766621132711137af127468dc122c04ca9784ae
+
+if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
+	broken="32-bit is not supported"
+fi
+
+libsvt-av1_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "usr/lib/libSvtAv1Dec.so.*"
+		vmove "usr/lib/libSvtAv1Enc.so.*"
+		vlicense LICENSE.md
+	}
+}
+
+libsvt-av1-devel_package() {
+	short_desc+=" - development files"
+	depends="libsvt-av1>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

From df19e21259a60ba6ff2bc816100340a1c32b63eb Mon Sep 17 00:00:00 2001
From: tibequadorian <tibequadorian@posteo.de>
Date: Sat, 12 Feb 2022 12:57:04 +0100
Subject: [PATCH 2/2] ffmpeg: enable libsvtav1

---
 common/options.description |  1 +
 srcpkgs/ffmpeg/template    | 27 ++++++++++++++++-----------
 2 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/common/options.description b/common/options.description
index ac0f14c0843d..f9e3d0ce1992 100644
--- a/common/options.description
+++ b/common/options.description
@@ -83,6 +83,7 @@ desc_option_ssl="Enable support for SSL"
 desc_option_startup_notification="Enable support for desktop notification"
 desc_option_static="Enable static linking"
 desc_option_svg="Enable support for SVG images"
+desc_option_svtav1="Enable support for the SVT-AV1 Encoder and Decoder"
 desc_option_tcpwrappers="Enable support for tcpwrappers"
 desc_option_tiff="Enable support for TIFF images"
 desc_option_upower="Enable support for UPower"
diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template
index c5929b4582f3..213aae8bbfa0 100644
--- a/srcpkgs/ffmpeg/template
+++ b/srcpkgs/ffmpeg/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg
 version=4.4.1
-revision=1
+revision=2
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
@@ -25,11 +25,11 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  $(vopt_if dav1d libdav1d-devel) $(vopt_if zimg zimg-devel)
  $(vopt_if webp libwebp-devel) $(vopt_if sofa libmysofa-devel)
  $(vopt_if vulkan 'vulkan-loader Vulkan-Headers')
- $(vopt_if drm libdrm-devel)"
+ $(vopt_if drm libdrm-devel) $(vopt_if svtav1 libsvt-av1-devel)"
 depends="ffplay>=${version}_${revision}"
 
 build_options="x265 v4l2 vaapi vdpau vpx faac fdk_aac aom nvenc sndio pulseaudio
- dav1d zimg webp sofa vulkan drm"
+ dav1d zimg webp sofa vulkan drm svtav1"
 build_options_default="x265 v4l2 vpx aom sndio pulseaudio dav1d webp vulkan drm"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -38,6 +38,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*) CFLAGS="-mnan=legacy";;
 esac
 
+if [ "$XBPS_TARGET_WORDSIZE" != "32" ]; then
+	build_options_default+=" svtav1"
+fi
+
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
 fi
@@ -102,16 +106,17 @@ do_configure() {
 		--disable-libopencore_amrnb --disable-libopencore_amrwb \
 		--disable-libopenjpeg \
 		--enable-postproc --enable-opencl ${_args} \
-		$(vopt_if x265 '--enable-libx265' '--disable-libx265') \
-		$(vopt_if v4l2 '--enable-libv4l2' '--disable-libv4l2') \
+		$(vopt_enable x265 libx265) \
+		$(vopt_enable v4l2 libv4l2) \
 		$(vopt_enable aom libaom) $(vopt_enable vaapi) $(vopt_enable vdpau) \
 		--enable-libbs2b --enable-avresample --enable-libvidstab \
-		$(vopt_if dav1d '--enable-libdav1d') \
-		$(vopt_if zimg '--enable-libzimg') \
-		$(vopt_if webp '--enable-libwebp') \
-		$(vopt_if sofa '--enable-libmysofa') \
-		$(vopt_if vulkan '--enable-vulkan') \
-		$(vopt_if drm '--enable-libdrm')
+		$(vopt_enable dav1d libdav1d) \
+		$(vopt_enable zimg libzimg) \
+		$(vopt_enable webp libwebp) \
+		$(vopt_enable sofa libmysofa) \
+		$(vopt_enable vulkan) \
+		$(vopt_enable drm libdrm) \
+		$(vopt_enable svtav1 libsvtav1)
 }
 do_build() {
 	make ${makejobs}

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: New package: svt-av1-0.9.1
  2022-02-12 12:55 [PR PATCH] New package: svt-av1-0.9.0 tibequadorian
                   ` (5 preceding siblings ...)
  2022-02-28 14:33 ` [PR PATCH] [Updated] " tibequadorian
@ 2022-02-28 15:28 ` tibequadorian
  2022-03-01 15:06 ` [PR PATCH] [Merged]: " leahneukirchen
  7 siblings, 0 replies; 9+ messages in thread
From: tibequadorian @ 2022-02-28 15:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

New comment by tibequadorian on void-packages repository

https://github.com/void-linux/void-packages/pull/35551#issuecomment-1054372379

Comment:
@leahneukirchen yes sorry I forgot to change this in ffmpeg. It compiles for all our 64bit targets. Tested the x86_64-glibc and aarch64-musl build.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PR PATCH] [Merged]: New package: svt-av1-0.9.1
  2022-02-12 12:55 [PR PATCH] New package: svt-av1-0.9.0 tibequadorian
                   ` (6 preceding siblings ...)
  2022-02-28 15:28 ` tibequadorian
@ 2022-03-01 15:06 ` leahneukirchen
  7 siblings, 0 replies; 9+ messages in thread
From: leahneukirchen @ 2022-03-01 15:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]

There's a merged pull request on the void-packages repository

New package: svt-av1-0.9.1
https://github.com/void-linux/void-packages/pull/35551

Description:
closes https://github.com/void-linux/void-packages/issues/35541

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

I tested this by encoding a video using `ffmpeg -i in.mp4 -c:v libsvtav1 out.mkv`.

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](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
-->


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-03-01 15:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-12 12:55 [PR PATCH] New package: svt-av1-0.9.0 tibequadorian
2022-02-28  0:33 ` [PR PATCH] [Updated] " tibequadorian
2022-02-28  0:42 ` tibequadorian
2022-02-28  0:47 ` tibequadorian
2022-02-28 13:34 ` [PR PATCH] [Updated] New package: svt-av1-0.9.1 tibequadorian
2022-02-28 13:36 ` leahneukirchen
2022-02-28 14:33 ` [PR PATCH] [Updated] " tibequadorian
2022-02-28 15:28 ` tibequadorian
2022-03-01 15:06 ` [PR PATCH] [Merged]: " leahneukirchen

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).