Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: libvpl-2.12.0
@ 2024-07-27 14:23 zlice
  2024-07-27 14:26 ` zlice
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: zlice @ 2024-07-27 14:23 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

New package: libvpl-2.12.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From a1dd69312cc7f789bac81e429225d360a062a4be Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/4] New package: libvpl-2.12.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 43 ++++++-------------
 6 files changed, 58 insertions(+), 31 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index cd16c67d207c6f..2fd5f0f8f4a37c 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4504,7 +4504,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..9ba84df8a571d8
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.12.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=efc19e5a8544704100f814753eb5e09e85a68e3386508b164042c1f1f761bae8
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..c9a5becc45575a 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
 license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From dbc14ce024c72fa7d5f78a7366e013b1d7e09aeb Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/4] ffmpeg6: revbump for libvpl

---
 ...decode-multiple-slice-params-buffers.patch | 159 ++++++++++++++++++
 ...the-same-slice-buffer-multiple-times.patch |  89 ++++++++++
 srcpkgs/ffmpeg6/template                      |  10 +-
 3 files changed, 253 insertions(+), 5 deletions(-)
 create mode 100644 srcpkgs/ffmpeg6/patches/00001-vaapi_decode-multiple-slice-params-buffers.patch
 create mode 100644 srcpkgs/ffmpeg6/patches/00002-lavc-vaapi_av1-Avoid-sending-the-same-slice-buffer-multiple-times.patch

diff --git a/srcpkgs/ffmpeg6/patches/00001-vaapi_decode-multiple-slice-params-buffers.patch b/srcpkgs/ffmpeg6/patches/00001-vaapi_decode-multiple-slice-params-buffers.patch
new file mode 100644
index 00000000000000..2350577fd6ec58
--- /dev/null
+++ b/srcpkgs/ffmpeg6/patches/00001-vaapi_decode-multiple-slice-params-buffers.patch
@@ -0,0 +1,159 @@
+diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c
+index d0339b2..6f33f03 100644
+--- a/libavcodec/vaapi_av1.c
++++ b/libavcodec/vaapi_av1.c
+@@ -421,7 +421,7 @@ static int vaapi_av1_decode_slice(AVCodecContext *avctx,
+             .tg_end            = s->tg_end,
+         };
+ 
+-        err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &slice_param,
++        err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &slice_param, 1,
+                                                 sizeof(VASliceParameterBufferAV1),
+                                                 buffer,
+                                                 size);
+diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c
+index 134f10e..c6d90ac 100644
+--- a/libavcodec/vaapi_decode.c
++++ b/libavcodec/vaapi_decode.c
+@@ -61,6 +61,7 @@ int ff_vaapi_decode_make_param_buffer(AVCodecContext *avctx,
+ int ff_vaapi_decode_make_slice_buffer(AVCodecContext *avctx,
+                                       VAAPIDecodePicture *pic,
+                                       const void *params_data,
++				      int nb_params,
+                                       size_t params_size,
+                                       const void *slice_data,
+                                       size_t slice_size)
+@@ -89,7 +90,7 @@ int ff_vaapi_decode_make_slice_buffer(AVCodecContext *avctx,
+ 
+     vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context,
+                          VASliceParameterBufferType,
+-                         params_size, 1, (void*)params_data,
++                         params_size, nb_params, (void*)params_data,
+                          &pic->slice_buffers[index]);
+     if (vas != VA_STATUS_SUCCESS) {
+         av_log(avctx, AV_LOG_ERROR, "Failed to create slice "
+diff --git a/libavcodec/vaapi_decode.h b/libavcodec/vaapi_decode.h
+index 6beda14..22c8c54 100644
+--- a/libavcodec/vaapi_decode.h
++++ b/libavcodec/vaapi_decode.h
+@@ -73,6 +73,7 @@ int ff_vaapi_decode_make_param_buffer(AVCodecContext *avctx,
+ int ff_vaapi_decode_make_slice_buffer(AVCodecContext *avctx,
+                                       VAAPIDecodePicture *pic,
+                                       const void *params_data,
++				      int nb_params,
+                                       size_t params_size,
+                                       const void *slice_data,
+                                       size_t slice_size);
+diff --git a/libavcodec/vaapi_h264.c b/libavcodec/vaapi_h264.c
+index 9332aa6..0536ee8 100644
+--- a/libavcodec/vaapi_h264.c
++++ b/libavcodec/vaapi_h264.c
+@@ -375,7 +375,7 @@ static int vaapi_h264_decode_slice(AVCodecContext *avctx,
+                                        slice_param.chroma_offset_l1);
+ 
+     err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
+-                                            &slice_param, sizeof(slice_param),
++                                            &slice_param, 1, sizeof(slice_param),
+                                             buffer, size);
+     if (err) {
+         ff_vaapi_decode_cancel(avctx, pic);
+diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c
+index 20fb36a..6f022a7 100644
+--- a/libavcodec/vaapi_hevc.c
++++ b/libavcodec/vaapi_hevc.c
+@@ -305,7 +305,7 @@ static int vaapi_hevc_end_frame(AVCodecContext *avctx)
+     if (pic->last_size) {
+         last_slice_param->LongSliceFlags.fields.LastSliceOfPic = 1;
+         ret = ff_vaapi_decode_make_slice_buffer(avctx, &pic->pic,
+-                                                &pic->last_slice_param, slice_param_size,
++                                                &pic->last_slice_param, 1, slice_param_size,
+                                                 pic->last_buffer, pic->last_size);
+         if (ret < 0)
+             goto fail;
+@@ -423,7 +423,7 @@ static int vaapi_hevc_decode_slice(AVCodecContext *avctx,
+ 
+     if (!sh->first_slice_in_pic_flag) {
+         err = ff_vaapi_decode_make_slice_buffer(avctx, &pic->pic,
+-                                                &pic->last_slice_param, slice_param_size,
++                                                &pic->last_slice_param, 1, slice_param_size,
+                                                 pic->last_buffer, pic->last_size);
+         pic->last_buffer = NULL;
+         pic->last_size   = 0;
+diff --git a/libavcodec/vaapi_mjpeg.c b/libavcodec/vaapi_mjpeg.c
+index 8158211..3ee1663 100644
+--- a/libavcodec/vaapi_mjpeg.c
++++ b/libavcodec/vaapi_mjpeg.c
+@@ -131,7 +131,7 @@ static int vaapi_mjpeg_decode_slice(AVCodecContext *avctx,
+         sp.components[i].ac_table_selector  = s->ac_index[i];
+     }
+ 
+-    err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &sp, sizeof(sp), buffer, size);
++    err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &sp, 1, sizeof(sp), buffer, size);
+     if (err)
+         goto fail;
+ 
+diff --git a/libavcodec/vaapi_mpeg2.c b/libavcodec/vaapi_mpeg2.c
+index 5e2b889..8b37239 100644
+--- a/libavcodec/vaapi_mpeg2.c
++++ b/libavcodec/vaapi_mpeg2.c
+@@ -162,7 +162,7 @@ static int vaapi_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
+     };
+ 
+     err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
+-                                            &slice_param, sizeof(slice_param),
++                                            &slice_param, 1, sizeof(slice_param),
+                                             buffer, size);
+     if (err < 0) {
+         ff_vaapi_decode_cancel(avctx, pic);
+diff --git a/libavcodec/vaapi_mpeg4.c b/libavcodec/vaapi_mpeg4.c
+index 4e74e03..d2e1d15 100644
+--- a/libavcodec/vaapi_mpeg4.c
++++ b/libavcodec/vaapi_mpeg4.c
+@@ -169,7 +169,7 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
+     };
+ 
+     err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
+-                                            &slice_param, sizeof(slice_param),
++                                            &slice_param, 1, sizeof(slice_param),
+                                             buffer, size);
+     if (err < 0) {
+         ff_vaapi_decode_cancel(avctx, pic);
+diff --git a/libavcodec/vaapi_vc1.c b/libavcodec/vaapi_vc1.c
+index fb2132e..a4933c9 100644
+--- a/libavcodec/vaapi_vc1.c
++++ b/libavcodec/vaapi_vc1.c
+@@ -490,7 +490,7 @@ static int vaapi_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer,
+     };
+ 
+     err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
+-                                            &slice_param, sizeof(slice_param),
++                                            &slice_param, 1, sizeof(slice_param),
+                                             buffer, size);
+     if (err < 0) {
+         ff_vaapi_decode_cancel(avctx, pic);
+diff --git a/libavcodec/vaapi_vp8.c b/libavcodec/vaapi_vp8.c
+index 5b18bf8..3c16e6d 100644
+--- a/libavcodec/vaapi_vp8.c
++++ b/libavcodec/vaapi_vp8.c
+@@ -209,7 +209,7 @@ static int vaapi_vp8_decode_slice(AVCodecContext *avctx,
+     for (i = 0; i < 8; i++)
+         sp.partition_size[i+1] = s->coeff_partition_size[i];
+ 
+-    err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &sp, sizeof(sp), data, data_size);
++    err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &sp, 1, sizeof(sp), data, data_size);
+     if (err)
+         goto fail;
+ 
+diff --git a/libavcodec/vaapi_vp9.c b/libavcodec/vaapi_vp9.c
+index 776382f..237f6c5 100644
+--- a/libavcodec/vaapi_vp9.c
++++ b/libavcodec/vaapi_vp9.c
+@@ -158,7 +158,7 @@ static int vaapi_vp9_decode_slice(AVCodecContext *avctx,
+     }
+ 
+     err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
+-                                            &slice_param, sizeof(slice_param),
++                                            &slice_param, 1, sizeof(slice_param),
+                                             buffer, size);
+     if (err) {
+         ff_vaapi_decode_cancel(avctx, pic);
diff --git a/srcpkgs/ffmpeg6/patches/00002-lavc-vaapi_av1-Avoid-sending-the-same-slice-buffer-multiple-times.patch b/srcpkgs/ffmpeg6/patches/00002-lavc-vaapi_av1-Avoid-sending-the-same-slice-buffer-multiple-times.patch
new file mode 100644
index 00000000000000..a9e84d606a4f04
--- /dev/null
+++ b/srcpkgs/ffmpeg6/patches/00002-lavc-vaapi_av1-Avoid-sending-the-same-slice-buffer-multiple-times.patch
@@ -0,0 +1,89 @@
+diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c
+index d0339b2..c4b55cb 100644
+--- a/libavcodec/vaapi_av1.c
++++ b/libavcodec/vaapi_av1.c
+@@ -19,6 +19,7 @@
+  */
+ 
+ #include "libavutil/frame.h"
++#include "libavutil/mem.h"
+ #include "libavutil/pixdesc.h"
+ #include "hwconfig.h"
+ #include "vaapi_decode.h"
+@@ -43,6 +44,9 @@ typedef struct VAAPIAV1DecContext {
+     */
+     VAAPIAV1FrameRef ref_tab[AV1_NUM_REF_FRAMES];
+     AVFrame *tmp_frame;
++
++    int nb_slice_params;
++    VASliceParameterBufferAV1 *slice_params;
+ } VAAPIAV1DecContext;
+ 
+ static VASurfaceID vaapi_av1_surface_id(AV1Frame *vf)
+@@ -109,6 +113,8 @@ static int vaapi_av1_decode_uninit(AVCodecContext *avctx)
+         av_frame_free(&ctx->ref_tab[i].frame);
+     }
+ 
++    av_freep(&ctx->slice_params);
++
+     return ff_vaapi_decode_uninit(avctx);
+ }
+ 
+@@ -405,13 +411,24 @@ static int vaapi_av1_decode_slice(AVCodecContext *avctx,
+ {
+     const AV1DecContext *s = avctx->priv_data;
+     VAAPIDecodePicture *pic = s->cur_frame.hwaccel_picture_private;
+-    VASliceParameterBufferAV1 slice_param;
+-    int err = 0;
++    VAAPIAV1DecContext *ctx = avctx->internal->hwaccel_priv_data;
++    int err, nb_params;
++
++    nb_params = s->tg_end - s->tg_start + 1;
++    if (ctx->nb_slice_params < nb_params) {
++        ctx->slice_params = av_realloc_array(ctx->slice_params,
++                                             nb_params,
++                                             sizeof(*ctx->slice_params));
++        if (!ctx->slice_params) {
++            ctx->nb_slice_params = 0;
++            err = AVERROR(ENOMEM);
++            goto fail;
++        }
++        ctx->nb_slice_params = nb_params;
++    }
+ 
+     for (int i = s->tg_start; i <= s->tg_end; i++) {
+-        memset(&slice_param, 0, sizeof(VASliceParameterBufferAV1));
+-
+-        slice_param = (VASliceParameterBufferAV1) {
++	ctx->slice_params[i - s->tg_start] = (VASliceParameterBufferAV1) {
+             .slice_data_size   = s->tile_group_info[i].tile_size,
+             .slice_data_offset = s->tile_group_info[i].tile_offset,
+             .slice_data_flag   = VA_SLICE_DATA_FLAG_ALL,
+@@ -421,17 +438,19 @@ static int vaapi_av1_decode_slice(AVCodecContext *avctx,
+             .tg_end            = s->tg_end,
+         };
+ 
+-        err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &slice_param, 1,
+-                                                sizeof(VASliceParameterBufferAV1),
+-                                                buffer,
+-                                                size);
+-        if (err) {
+-            ff_vaapi_decode_cancel(avctx, pic);
+-            return err;
+-        }
+     }
++    err = ff_vaapi_decode_make_slice_buffer(avctx, pic, ctx->slice_params, nb_params,
++                                            sizeof(VASliceParameterBufferAV1),
++                                            buffer,
++                                            size);
++    if (err)
++        goto fail;
+ 
+     return 0;
++
++fail:
++    ff_vaapi_decode_cancel(avctx, pic);
++    return err;
+ }
+ 
+ const AVHWAccel ff_av1_vaapi_hwaccel = {
diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index 819f7715bca396..c6dff47a3f1b40 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.0.1
-revision=1
+revision=3
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -15,7 +15,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  zimg-devel libmysofa-devel
  $(vopt_if svtav1 libsvt-av1-devel) $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -25,7 +25,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=9b16b8731d78e596b4be0d720428ca42df642bb2d78342881ff7f5bc29fc9623
 
-build_options="vaapi vdpau fdk_aac nvcodec svtav1 onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec svtav1 libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -35,7 +35,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -107,7 +107,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable svtav1 libsvtav1) \
 		$(vopt_enable nvcodec nvenc) \
 		$(vopt_enable nvcodec nvdec)

From 73aca7c1164b046946562069eb57bdc585ad0c67 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/4] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 345425785d435d..7853bf370b40ba 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -1,7 +1,7 @@
 # Template file for 'gst-plugins-bad1'
 pkgname=gst-plugins-bad1
 version=1.24.4
-revision=2
+revision=3
 build_helper="gir"
 build_style=meson
 configure_args="-Dpackage-origin=https://voidlinux.org -Ddoc=disabled
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=260bd0a463b4faff9a42f41e5e028f787f10a92b779af8959aec64586f546bd3
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From 375d44cdbe01b51379ef986dca0d4544287b062d Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/4] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index 4860878805e0cc..c59a8aefd16e14 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.1
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

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

* Re: New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
@ 2024-07-27 14:26 ` zlice
  2024-07-27 14:26 ` zlice
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-07-27 14:26 UTC (permalink / raw)
  To: ml

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

New comment by zlice on void-packages repository

https://github.com/void-linux/void-packages/pull/51496#issuecomment-2254163635

Comment:
"Error: license 'MIT', but no use of vlicense"

I'd assume ignore this? Removing it complains license is missing.

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

* Re: New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
  2024-07-27 14:26 ` zlice
@ 2024-07-27 14:26 ` zlice
  2024-07-27 14:30 ` icp1994
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-07-27 14:26 UTC (permalink / raw)
  To: ml

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

New comment by zlice on void-packages repository

https://github.com/void-linux/void-packages/pull/51496#issuecomment-2254163635

Comment:
oneVPL template - "Error: license 'MIT', but no use of vlicense"

I'd assume ignore this? Removing it complains license is missing.

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

* Re: New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
  2024-07-27 14:26 ` zlice
  2024-07-27 14:26 ` zlice
@ 2024-07-27 14:30 ` icp1994
  2024-07-28 13:43 ` icp1994
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: icp1994 @ 2024-07-27 14:30 UTC (permalink / raw)
  To: ml

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

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/pull/51496#issuecomment-2254164651

Comment:
Yes, similar to wlroots

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

* Re: New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (2 preceding siblings ...)
  2024-07-27 14:30 ` icp1994
@ 2024-07-28 13:43 ` icp1994
  2024-07-28 13:45 ` [PR PATCH] [Updated] " zlice
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: icp1994 @ 2024-07-28 13:43 UTC (permalink / raw)
  To: ml

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

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/pull/51496#issuecomment-2254523939

Comment:
I read the Manual today and it says:

> Empty meta-packages that don't include any files
  and thus have and require no license should use
  `Public Domain`.

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

* Re: [PR PATCH] [Updated] New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (3 preceding siblings ...)
  2024-07-28 13:43 ` icp1994
@ 2024-07-28 13:45 ` zlice
  2024-07-31 14:47 ` zlice
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-07-28 13:45 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

New package: libvpl-2.12.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From 568a1c9c6b958a678d67618c6a87bc712ba3a890 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/4] New package: libvpl-2.12.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index cd16c67d207c6f..2fd5f0f8f4a37c 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4504,7 +4504,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..9ba84df8a571d8
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.12.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=efc19e5a8544704100f814753eb5e09e85a68e3386508b164042c1f1f761bae8
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From 648900c54d244f59f8ec29b45f74d99bc9fa4445 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/4] ffmpeg6: revbump for libvpl

---
 ...decode-multiple-slice-params-buffers.patch | 159 ++++++++++++++++++
 ...the-same-slice-buffer-multiple-times.patch |  89 ++++++++++
 srcpkgs/ffmpeg6/template                      |  10 +-
 3 files changed, 253 insertions(+), 5 deletions(-)
 create mode 100644 srcpkgs/ffmpeg6/patches/00001-vaapi_decode-multiple-slice-params-buffers.patch
 create mode 100644 srcpkgs/ffmpeg6/patches/00002-lavc-vaapi_av1-Avoid-sending-the-same-slice-buffer-multiple-times.patch

diff --git a/srcpkgs/ffmpeg6/patches/00001-vaapi_decode-multiple-slice-params-buffers.patch b/srcpkgs/ffmpeg6/patches/00001-vaapi_decode-multiple-slice-params-buffers.patch
new file mode 100644
index 00000000000000..2350577fd6ec58
--- /dev/null
+++ b/srcpkgs/ffmpeg6/patches/00001-vaapi_decode-multiple-slice-params-buffers.patch
@@ -0,0 +1,159 @@
+diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c
+index d0339b2..6f33f03 100644
+--- a/libavcodec/vaapi_av1.c
++++ b/libavcodec/vaapi_av1.c
+@@ -421,7 +421,7 @@ static int vaapi_av1_decode_slice(AVCodecContext *avctx,
+             .tg_end            = s->tg_end,
+         };
+ 
+-        err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &slice_param,
++        err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &slice_param, 1,
+                                                 sizeof(VASliceParameterBufferAV1),
+                                                 buffer,
+                                                 size);
+diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c
+index 134f10e..c6d90ac 100644
+--- a/libavcodec/vaapi_decode.c
++++ b/libavcodec/vaapi_decode.c
+@@ -61,6 +61,7 @@ int ff_vaapi_decode_make_param_buffer(AVCodecContext *avctx,
+ int ff_vaapi_decode_make_slice_buffer(AVCodecContext *avctx,
+                                       VAAPIDecodePicture *pic,
+                                       const void *params_data,
++				      int nb_params,
+                                       size_t params_size,
+                                       const void *slice_data,
+                                       size_t slice_size)
+@@ -89,7 +90,7 @@ int ff_vaapi_decode_make_slice_buffer(AVCodecContext *avctx,
+ 
+     vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context,
+                          VASliceParameterBufferType,
+-                         params_size, 1, (void*)params_data,
++                         params_size, nb_params, (void*)params_data,
+                          &pic->slice_buffers[index]);
+     if (vas != VA_STATUS_SUCCESS) {
+         av_log(avctx, AV_LOG_ERROR, "Failed to create slice "
+diff --git a/libavcodec/vaapi_decode.h b/libavcodec/vaapi_decode.h
+index 6beda14..22c8c54 100644
+--- a/libavcodec/vaapi_decode.h
++++ b/libavcodec/vaapi_decode.h
+@@ -73,6 +73,7 @@ int ff_vaapi_decode_make_param_buffer(AVCodecContext *avctx,
+ int ff_vaapi_decode_make_slice_buffer(AVCodecContext *avctx,
+                                       VAAPIDecodePicture *pic,
+                                       const void *params_data,
++				      int nb_params,
+                                       size_t params_size,
+                                       const void *slice_data,
+                                       size_t slice_size);
+diff --git a/libavcodec/vaapi_h264.c b/libavcodec/vaapi_h264.c
+index 9332aa6..0536ee8 100644
+--- a/libavcodec/vaapi_h264.c
++++ b/libavcodec/vaapi_h264.c
+@@ -375,7 +375,7 @@ static int vaapi_h264_decode_slice(AVCodecContext *avctx,
+                                        slice_param.chroma_offset_l1);
+ 
+     err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
+-                                            &slice_param, sizeof(slice_param),
++                                            &slice_param, 1, sizeof(slice_param),
+                                             buffer, size);
+     if (err) {
+         ff_vaapi_decode_cancel(avctx, pic);
+diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c
+index 20fb36a..6f022a7 100644
+--- a/libavcodec/vaapi_hevc.c
++++ b/libavcodec/vaapi_hevc.c
+@@ -305,7 +305,7 @@ static int vaapi_hevc_end_frame(AVCodecContext *avctx)
+     if (pic->last_size) {
+         last_slice_param->LongSliceFlags.fields.LastSliceOfPic = 1;
+         ret = ff_vaapi_decode_make_slice_buffer(avctx, &pic->pic,
+-                                                &pic->last_slice_param, slice_param_size,
++                                                &pic->last_slice_param, 1, slice_param_size,
+                                                 pic->last_buffer, pic->last_size);
+         if (ret < 0)
+             goto fail;
+@@ -423,7 +423,7 @@ static int vaapi_hevc_decode_slice(AVCodecContext *avctx,
+ 
+     if (!sh->first_slice_in_pic_flag) {
+         err = ff_vaapi_decode_make_slice_buffer(avctx, &pic->pic,
+-                                                &pic->last_slice_param, slice_param_size,
++                                                &pic->last_slice_param, 1, slice_param_size,
+                                                 pic->last_buffer, pic->last_size);
+         pic->last_buffer = NULL;
+         pic->last_size   = 0;
+diff --git a/libavcodec/vaapi_mjpeg.c b/libavcodec/vaapi_mjpeg.c
+index 8158211..3ee1663 100644
+--- a/libavcodec/vaapi_mjpeg.c
++++ b/libavcodec/vaapi_mjpeg.c
+@@ -131,7 +131,7 @@ static int vaapi_mjpeg_decode_slice(AVCodecContext *avctx,
+         sp.components[i].ac_table_selector  = s->ac_index[i];
+     }
+ 
+-    err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &sp, sizeof(sp), buffer, size);
++    err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &sp, 1, sizeof(sp), buffer, size);
+     if (err)
+         goto fail;
+ 
+diff --git a/libavcodec/vaapi_mpeg2.c b/libavcodec/vaapi_mpeg2.c
+index 5e2b889..8b37239 100644
+--- a/libavcodec/vaapi_mpeg2.c
++++ b/libavcodec/vaapi_mpeg2.c
+@@ -162,7 +162,7 @@ static int vaapi_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
+     };
+ 
+     err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
+-                                            &slice_param, sizeof(slice_param),
++                                            &slice_param, 1, sizeof(slice_param),
+                                             buffer, size);
+     if (err < 0) {
+         ff_vaapi_decode_cancel(avctx, pic);
+diff --git a/libavcodec/vaapi_mpeg4.c b/libavcodec/vaapi_mpeg4.c
+index 4e74e03..d2e1d15 100644
+--- a/libavcodec/vaapi_mpeg4.c
++++ b/libavcodec/vaapi_mpeg4.c
+@@ -169,7 +169,7 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
+     };
+ 
+     err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
+-                                            &slice_param, sizeof(slice_param),
++                                            &slice_param, 1, sizeof(slice_param),
+                                             buffer, size);
+     if (err < 0) {
+         ff_vaapi_decode_cancel(avctx, pic);
+diff --git a/libavcodec/vaapi_vc1.c b/libavcodec/vaapi_vc1.c
+index fb2132e..a4933c9 100644
+--- a/libavcodec/vaapi_vc1.c
++++ b/libavcodec/vaapi_vc1.c
+@@ -490,7 +490,7 @@ static int vaapi_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer,
+     };
+ 
+     err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
+-                                            &slice_param, sizeof(slice_param),
++                                            &slice_param, 1, sizeof(slice_param),
+                                             buffer, size);
+     if (err < 0) {
+         ff_vaapi_decode_cancel(avctx, pic);
+diff --git a/libavcodec/vaapi_vp8.c b/libavcodec/vaapi_vp8.c
+index 5b18bf8..3c16e6d 100644
+--- a/libavcodec/vaapi_vp8.c
++++ b/libavcodec/vaapi_vp8.c
+@@ -209,7 +209,7 @@ static int vaapi_vp8_decode_slice(AVCodecContext *avctx,
+     for (i = 0; i < 8; i++)
+         sp.partition_size[i+1] = s->coeff_partition_size[i];
+ 
+-    err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &sp, sizeof(sp), data, data_size);
++    err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &sp, 1, sizeof(sp), data, data_size);
+     if (err)
+         goto fail;
+ 
+diff --git a/libavcodec/vaapi_vp9.c b/libavcodec/vaapi_vp9.c
+index 776382f..237f6c5 100644
+--- a/libavcodec/vaapi_vp9.c
++++ b/libavcodec/vaapi_vp9.c
+@@ -158,7 +158,7 @@ static int vaapi_vp9_decode_slice(AVCodecContext *avctx,
+     }
+ 
+     err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
+-                                            &slice_param, sizeof(slice_param),
++                                            &slice_param, 1, sizeof(slice_param),
+                                             buffer, size);
+     if (err) {
+         ff_vaapi_decode_cancel(avctx, pic);
diff --git a/srcpkgs/ffmpeg6/patches/00002-lavc-vaapi_av1-Avoid-sending-the-same-slice-buffer-multiple-times.patch b/srcpkgs/ffmpeg6/patches/00002-lavc-vaapi_av1-Avoid-sending-the-same-slice-buffer-multiple-times.patch
new file mode 100644
index 00000000000000..a9e84d606a4f04
--- /dev/null
+++ b/srcpkgs/ffmpeg6/patches/00002-lavc-vaapi_av1-Avoid-sending-the-same-slice-buffer-multiple-times.patch
@@ -0,0 +1,89 @@
+diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c
+index d0339b2..c4b55cb 100644
+--- a/libavcodec/vaapi_av1.c
++++ b/libavcodec/vaapi_av1.c
+@@ -19,6 +19,7 @@
+  */
+ 
+ #include "libavutil/frame.h"
++#include "libavutil/mem.h"
+ #include "libavutil/pixdesc.h"
+ #include "hwconfig.h"
+ #include "vaapi_decode.h"
+@@ -43,6 +44,9 @@ typedef struct VAAPIAV1DecContext {
+     */
+     VAAPIAV1FrameRef ref_tab[AV1_NUM_REF_FRAMES];
+     AVFrame *tmp_frame;
++
++    int nb_slice_params;
++    VASliceParameterBufferAV1 *slice_params;
+ } VAAPIAV1DecContext;
+ 
+ static VASurfaceID vaapi_av1_surface_id(AV1Frame *vf)
+@@ -109,6 +113,8 @@ static int vaapi_av1_decode_uninit(AVCodecContext *avctx)
+         av_frame_free(&ctx->ref_tab[i].frame);
+     }
+ 
++    av_freep(&ctx->slice_params);
++
+     return ff_vaapi_decode_uninit(avctx);
+ }
+ 
+@@ -405,13 +411,24 @@ static int vaapi_av1_decode_slice(AVCodecContext *avctx,
+ {
+     const AV1DecContext *s = avctx->priv_data;
+     VAAPIDecodePicture *pic = s->cur_frame.hwaccel_picture_private;
+-    VASliceParameterBufferAV1 slice_param;
+-    int err = 0;
++    VAAPIAV1DecContext *ctx = avctx->internal->hwaccel_priv_data;
++    int err, nb_params;
++
++    nb_params = s->tg_end - s->tg_start + 1;
++    if (ctx->nb_slice_params < nb_params) {
++        ctx->slice_params = av_realloc_array(ctx->slice_params,
++                                             nb_params,
++                                             sizeof(*ctx->slice_params));
++        if (!ctx->slice_params) {
++            ctx->nb_slice_params = 0;
++            err = AVERROR(ENOMEM);
++            goto fail;
++        }
++        ctx->nb_slice_params = nb_params;
++    }
+ 
+     for (int i = s->tg_start; i <= s->tg_end; i++) {
+-        memset(&slice_param, 0, sizeof(VASliceParameterBufferAV1));
+-
+-        slice_param = (VASliceParameterBufferAV1) {
++	ctx->slice_params[i - s->tg_start] = (VASliceParameterBufferAV1) {
+             .slice_data_size   = s->tile_group_info[i].tile_size,
+             .slice_data_offset = s->tile_group_info[i].tile_offset,
+             .slice_data_flag   = VA_SLICE_DATA_FLAG_ALL,
+@@ -421,17 +438,19 @@ static int vaapi_av1_decode_slice(AVCodecContext *avctx,
+             .tg_end            = s->tg_end,
+         };
+ 
+-        err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &slice_param, 1,
+-                                                sizeof(VASliceParameterBufferAV1),
+-                                                buffer,
+-                                                size);
+-        if (err) {
+-            ff_vaapi_decode_cancel(avctx, pic);
+-            return err;
+-        }
+     }
++    err = ff_vaapi_decode_make_slice_buffer(avctx, pic, ctx->slice_params, nb_params,
++                                            sizeof(VASliceParameterBufferAV1),
++                                            buffer,
++                                            size);
++    if (err)
++        goto fail;
+ 
+     return 0;
++
++fail:
++    ff_vaapi_decode_cancel(avctx, pic);
++    return err;
+ }
+ 
+ const AVHWAccel ff_av1_vaapi_hwaccel = {
diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index 819f7715bca396..c6dff47a3f1b40 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.0.1
-revision=1
+revision=3
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -15,7 +15,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  zimg-devel libmysofa-devel
  $(vopt_if svtav1 libsvt-av1-devel) $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -25,7 +25,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=9b16b8731d78e596b4be0d720428ca42df642bb2d78342881ff7f5bc29fc9623
 
-build_options="vaapi vdpau fdk_aac nvcodec svtav1 onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec svtav1 libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -35,7 +35,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -107,7 +107,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable svtav1 libsvtav1) \
 		$(vopt_enable nvcodec nvenc) \
 		$(vopt_enable nvcodec nvdec)

From d91da1db57484a6c87a66d3e832fb7bd028f7bb6 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/4] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 345425785d435d..7853bf370b40ba 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -1,7 +1,7 @@
 # Template file for 'gst-plugins-bad1'
 pkgname=gst-plugins-bad1
 version=1.24.4
-revision=2
+revision=3
 build_helper="gir"
 build_style=meson
 configure_args="-Dpackage-origin=https://voidlinux.org -Ddoc=disabled
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=260bd0a463b4faff9a42f41e5e028f787f10a92b779af8959aec64586f546bd3
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From 925a6716ab5488b4ddac5702bcb87bb49e2a74c9 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/4] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index 4860878805e0cc..c59a8aefd16e14 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.1
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

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

* Re: [PR PATCH] [Updated] New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (4 preceding siblings ...)
  2024-07-28 13:45 ` [PR PATCH] [Updated] " zlice
@ 2024-07-31 14:47 ` zlice
  2024-07-31 16:36 ` zlice
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-07-31 14:47 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

New package: libvpl-2.12.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From 277f09ff664a4ea804885776f01af9d54278805a Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/4] New package: libvpl-2.12.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index 12436fd372718c..f946987be1cdeb 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4499,7 +4499,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..9ba84df8a571d8
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.12.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=efc19e5a8544704100f814753eb5e09e85a68e3386508b164042c1f1f761bae8
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From 30671288082962782e1dcf5bc890bcbf005f9609 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/4] ffmpeg6: revbump for libvpl

---
 srcpkgs/ffmpeg6/template | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index 1dcdd089c5354c..c6dff47a3f1b40 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.0.1
-revision=2
+revision=3
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -15,7 +15,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  zimg-devel libmysofa-devel
  $(vopt_if svtav1 libsvt-av1-devel) $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -25,7 +25,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=9b16b8731d78e596b4be0d720428ca42df642bb2d78342881ff7f5bc29fc9623
 
-build_options="vaapi vdpau fdk_aac nvcodec svtav1 onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec svtav1 libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -35,7 +35,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -107,7 +107,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable svtav1 libsvtav1) \
 		$(vopt_enable nvcodec nvenc) \
 		$(vopt_enable nvcodec nvdec)

From 99fa1f20087cc024a9c08fce5443e06339d1bbe9 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/4] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 345425785d435d..7853bf370b40ba 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -1,7 +1,7 @@
 # Template file for 'gst-plugins-bad1'
 pkgname=gst-plugins-bad1
 version=1.24.4
-revision=2
+revision=3
 build_helper="gir"
 build_style=meson
 configure_args="-Dpackage-origin=https://voidlinux.org -Ddoc=disabled
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=260bd0a463b4faff9a42f41e5e028f787f10a92b779af8959aec64586f546bd3
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From f7fe067724e7f9692403862a9cac55e5fa4e9195 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/4] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index 4860878805e0cc..c59a8aefd16e14 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.1
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

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

* Re: [PR PATCH] [Updated] New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (5 preceding siblings ...)
  2024-07-31 14:47 ` zlice
@ 2024-07-31 16:36 ` zlice
  2024-08-02 22:09 ` zlice
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-07-31 16:36 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

New package: libvpl-2.12.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From 54f15e1772b1ae9e615af9ee9274baf66a9a9770 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/4] New package: libvpl-2.12.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index 12436fd372718c..f946987be1cdeb 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4499,7 +4499,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..9ba84df8a571d8
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.12.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=efc19e5a8544704100f814753eb5e09e85a68e3386508b164042c1f1f761bae8
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From fa49cffde710206b2ce6b260edcad82343f46af9 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/4] ffmpeg6: revbump for libvpl

---
 srcpkgs/ffmpeg6/template | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index 1dcdd089c5354c..c6dff47a3f1b40 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.0.1
-revision=2
+revision=3
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -15,7 +15,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  zimg-devel libmysofa-devel
  $(vopt_if svtav1 libsvt-av1-devel) $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -25,7 +25,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=9b16b8731d78e596b4be0d720428ca42df642bb2d78342881ff7f5bc29fc9623
 
-build_options="vaapi vdpau fdk_aac nvcodec svtav1 onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec svtav1 libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -35,7 +35,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -107,7 +107,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable svtav1 libsvtav1) \
 		$(vopt_enable nvcodec nvenc) \
 		$(vopt_enable nvcodec nvdec)

From 1d95123b0beef8491d82ce24e876233bf4103dd9 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/4] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 92d87d7a661cbd..4207fbb65a6994 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -1,7 +1,7 @@
 # Template file for 'gst-plugins-bad1'
 pkgname=gst-plugins-bad1
 version=1.24.6
-revision=1
+revision=2
 build_helper="gir"
 build_style=meson
 configure_args="-Dpackage-origin=https://voidlinux.org -Ddoc=disabled
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=8f4d965513e7827c1f547c1e749e4ef2812b371974fe64857fe5029a19c5b64c
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From de686ce201104790ad1a1c7c017d7b20236f093e Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/4] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index 4860878805e0cc..c59a8aefd16e14 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.1
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

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

* Re: [PR PATCH] [Updated] New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (6 preceding siblings ...)
  2024-07-31 16:36 ` zlice
@ 2024-08-02 22:09 ` zlice
  2024-08-02 22:26 ` zlice
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-08-02 22:09 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

New package: libvpl-2.12.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From 54f15e1772b1ae9e615af9ee9274baf66a9a9770 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/5] New package: libvpl-2.12.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index 12436fd372718c..f946987be1cdeb 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4499,7 +4499,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..9ba84df8a571d8
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.12.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=efc19e5a8544704100f814753eb5e09e85a68e3386508b164042c1f1f761bae8
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From fa49cffde710206b2ce6b260edcad82343f46af9 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/5] ffmpeg6: revbump for libvpl

---
 srcpkgs/ffmpeg6/template | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index 1dcdd089c5354c..c6dff47a3f1b40 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.0.1
-revision=2
+revision=3
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -15,7 +15,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  zimg-devel libmysofa-devel
  $(vopt_if svtav1 libsvt-av1-devel) $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -25,7 +25,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=9b16b8731d78e596b4be0d720428ca42df642bb2d78342881ff7f5bc29fc9623
 
-build_options="vaapi vdpau fdk_aac nvcodec svtav1 onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec svtav1 libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -35,7 +35,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -107,7 +107,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable svtav1 libsvtav1) \
 		$(vopt_enable nvcodec nvenc) \
 		$(vopt_enable nvcodec nvdec)

From 1d95123b0beef8491d82ce24e876233bf4103dd9 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/5] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 92d87d7a661cbd..4207fbb65a6994 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -1,7 +1,7 @@
 # Template file for 'gst-plugins-bad1'
 pkgname=gst-plugins-bad1
 version=1.24.6
-revision=1
+revision=2
 build_helper="gir"
 build_style=meson
 configure_args="-Dpackage-origin=https://voidlinux.org -Ddoc=disabled
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=8f4d965513e7827c1f547c1e749e4ef2812b371974fe64857fe5029a19c5b64c
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From de686ce201104790ad1a1c7c017d7b20236f093e Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/5] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index 4860878805e0cc..c59a8aefd16e14 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.1
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

From 773a6b6c948b25adc93188695c096b3883d12e92 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Fri, 2 Aug 2024 18:08:53 -0400
Subject: [PATCH 5/5] handbrake: revbump forlibvpl

---
 srcpkgs/handbrake/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index d0e04f3d49111e..3bb9d2ce3f0c32 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -1,7 +1,7 @@
 # Template file for 'handbrake'
 pkgname=handbrake
 version=1.6.1
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--force --disable-gtk-update-checks --disable-df-fetch --harden
  $(vopt_enable fdk_aac fdk-aac) $(vopt_enable nvenc) $(vopt_enable qsv)"

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

* Re: [PR PATCH] [Updated] New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (7 preceding siblings ...)
  2024-08-02 22:09 ` zlice
@ 2024-08-02 22:26 ` zlice
  2024-08-02 22:27 ` zlice
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-08-02 22:26 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

New package: libvpl-2.12.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From b9dcc949b71b25174a3267a3dc27d088362160fa Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/5] New package: libvpl-2.12.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index 6f378121d0e4f4..d9821dcf0b560f 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4497,7 +4497,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..9ba84df8a571d8
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.12.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=efc19e5a8544704100f814753eb5e09e85a68e3386508b164042c1f1f761bae8
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From 9aa28c4f9c31e2621e5b2bd4505f0c528bf01398 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/5] ffmpeg6: revbump for libvpl

---
 srcpkgs/ffmpeg6/template | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index 1dcdd089c5354c..c6dff47a3f1b40 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.0.1
-revision=2
+revision=3
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -15,7 +15,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  zimg-devel libmysofa-devel
  $(vopt_if svtav1 libsvt-av1-devel) $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -25,7 +25,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=9b16b8731d78e596b4be0d720428ca42df642bb2d78342881ff7f5bc29fc9623
 
-build_options="vaapi vdpau fdk_aac nvcodec svtav1 onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec svtav1 libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -35,7 +35,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -107,7 +107,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable svtav1 libsvtav1) \
 		$(vopt_enable nvcodec nvenc) \
 		$(vopt_enable nvcodec nvdec)

From 1e0e41a4b96c431e29c70240cb9e19dc2075e2aa Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/5] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 92d87d7a661cbd..4207fbb65a6994 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -1,7 +1,7 @@
 # Template file for 'gst-plugins-bad1'
 pkgname=gst-plugins-bad1
 version=1.24.6
-revision=1
+revision=2
 build_helper="gir"
 build_style=meson
 configure_args="-Dpackage-origin=https://voidlinux.org -Ddoc=disabled
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=8f4d965513e7827c1f547c1e749e4ef2812b371974fe64857fe5029a19c5b64c
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From e4c038b714834e86a763aaf8cd308cdcc3657817 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/5] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index 4860878805e0cc..c59a8aefd16e14 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.1
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

From 77f2758c53c2e975be3966b5cf764d7439ca85e7 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Fri, 2 Aug 2024 18:08:53 -0400
Subject: [PATCH 5/5] handbrake: revbump forlibvpl

---
 srcpkgs/handbrake/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index d0e04f3d49111e..6973f188a99728 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -1,7 +1,7 @@
 # Template file for 'handbrake'
 pkgname=handbrake
 version=1.6.1
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--force --disable-gtk-update-checks --disable-df-fetch --harden
  $(vopt_enable fdk_aac fdk-aac) $(vopt_enable nvenc) $(vopt_enable qsv)"
@@ -14,7 +14,7 @@ makedepends="bzip2-devel ffmpeg6-devel gst-plugins-base1-devel gtk+3-devel
  libsamplerate-devel libtheora-devel libvorbis-devel libvpx-devel libxml2-devel
  opus-devel speex-devel x264-devel x265-devel zimg-devel libsvt-av1-devel
  $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if qsv 'libva-devel libdrm-devel oneVPL-devel')
+ $(vopt_if qsv 'libva-devel libdrm-devel libvpl-devel')
  $(vopt_if nvenc nv-codec-headers)"
 depends="desktop-file-utils gst-plugins-good1 hicolor-icon-theme"
 short_desc="Multithreaded video transcoder"

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

* Re: [PR PATCH] [Updated] New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (8 preceding siblings ...)
  2024-08-02 22:26 ` zlice
@ 2024-08-02 22:27 ` zlice
  2024-08-06 18:52 ` zlice
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-08-02 22:27 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

New package: libvpl-2.12.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From b9dcc949b71b25174a3267a3dc27d088362160fa Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/5] New package: libvpl-2.12.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index 6f378121d0e4f4..d9821dcf0b560f 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4497,7 +4497,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..9ba84df8a571d8
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.12.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=efc19e5a8544704100f814753eb5e09e85a68e3386508b164042c1f1f761bae8
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From 9aa28c4f9c31e2621e5b2bd4505f0c528bf01398 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/5] ffmpeg6: revbump for libvpl

---
 srcpkgs/ffmpeg6/template | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index 1dcdd089c5354c..c6dff47a3f1b40 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.0.1
-revision=2
+revision=3
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -15,7 +15,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  zimg-devel libmysofa-devel
  $(vopt_if svtav1 libsvt-av1-devel) $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -25,7 +25,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=9b16b8731d78e596b4be0d720428ca42df642bb2d78342881ff7f5bc29fc9623
 
-build_options="vaapi vdpau fdk_aac nvcodec svtav1 onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec svtav1 libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -35,7 +35,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -107,7 +107,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable svtav1 libsvtav1) \
 		$(vopt_enable nvcodec nvenc) \
 		$(vopt_enable nvcodec nvdec)

From 1e0e41a4b96c431e29c70240cb9e19dc2075e2aa Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/5] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 92d87d7a661cbd..4207fbb65a6994 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -1,7 +1,7 @@
 # Template file for 'gst-plugins-bad1'
 pkgname=gst-plugins-bad1
 version=1.24.6
-revision=1
+revision=2
 build_helper="gir"
 build_style=meson
 configure_args="-Dpackage-origin=https://voidlinux.org -Ddoc=disabled
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=8f4d965513e7827c1f547c1e749e4ef2812b371974fe64857fe5029a19c5b64c
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From e4c038b714834e86a763aaf8cd308cdcc3657817 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/5] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index 4860878805e0cc..c59a8aefd16e14 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.1
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

From 47b650f4c046f28daf47ec82dd3937e177c7b15f Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Fri, 2 Aug 2024 18:08:53 -0400
Subject: [PATCH 5/5] handbrake: revbump for libvpl

---
 srcpkgs/handbrake/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index d0e04f3d49111e..6973f188a99728 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -1,7 +1,7 @@
 # Template file for 'handbrake'
 pkgname=handbrake
 version=1.6.1
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--force --disable-gtk-update-checks --disable-df-fetch --harden
  $(vopt_enable fdk_aac fdk-aac) $(vopt_enable nvenc) $(vopt_enable qsv)"
@@ -14,7 +14,7 @@ makedepends="bzip2-devel ffmpeg6-devel gst-plugins-base1-devel gtk+3-devel
  libsamplerate-devel libtheora-devel libvorbis-devel libvpx-devel libxml2-devel
  opus-devel speex-devel x264-devel x265-devel zimg-devel libsvt-av1-devel
  $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if qsv 'libva-devel libdrm-devel oneVPL-devel')
+ $(vopt_if qsv 'libva-devel libdrm-devel libvpl-devel')
  $(vopt_if nvenc nv-codec-headers)"
 depends="desktop-file-utils gst-plugins-good1 hicolor-icon-theme"
 short_desc="Multithreaded video transcoder"

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

* Re: [PR PATCH] [Updated] New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (9 preceding siblings ...)
  2024-08-02 22:27 ` zlice
@ 2024-08-06 18:52 ` zlice
  2024-08-07  0:02 ` zlice
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-08-06 18:52 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

New package: libvpl-2.12.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From ad9ce65ea2cf85d9fed3af4213e6f04c36fe57f4 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/5] New package: libvpl-2.12.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index a5314955498e24..7669c3c8323b96 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4500,7 +4500,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..9ba84df8a571d8
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.12.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=efc19e5a8544704100f814753eb5e09e85a68e3386508b164042c1f1f761bae8
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From c2d02a3d8e8140b70cd5ea4f0f9a3a0b22ba094d Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/5] ffmpeg6: revbump for libvpl

---
 srcpkgs/ffmpeg6/template | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index b779e9e2f4bce9..7bd74c5fbeb9fb 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.0.1
-revision=3
+revision=4
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -15,7 +15,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  zimg-devel libmysofa-devel
  $(vopt_if svtav1 libsvt-av1-devel) $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -25,7 +25,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=9b16b8731d78e596b4be0d720428ca42df642bb2d78342881ff7f5bc29fc9623
 
-build_options="vaapi vdpau fdk_aac nvcodec svtav1 onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec svtav1 libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -35,7 +35,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -107,7 +107,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable svtav1 libsvtav1) \
 		$(vopt_enable nvcodec nvenc) \
 		$(vopt_enable nvcodec nvdec)

From 88b27f1e4dc6515a4c9d672233f2947fd5b937fc Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/5] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 13fc9f8fe7f640..4207fbb65a6994 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=8f4d965513e7827c1f547c1e749e4ef2812b371974fe64857fe5029a19c5b64c
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From 397f072d79029a536f60bfcd0596d888a97d8010 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/5] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index 4860878805e0cc..c59a8aefd16e14 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.1
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

From a5f3f018e9283a4d4fe76033c1ac2258dbc669c6 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Fri, 2 Aug 2024 18:08:53 -0400
Subject: [PATCH 5/5] handbrake: revbump for libvpl

---
 srcpkgs/handbrake/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index 07dee21e6f2823..8a53a1027e086e 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -15,7 +15,7 @@ makedepends="bzip2-devel ffmpeg6-devel gst-plugins-base1-devel gtk+3-devel
  opus-devel speex-devel x264-devel x265-devel zimg-devel
  $(vopt_if svt_av1 libsvt-av1-devel)
  $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if qsv 'libva-devel libdrm-devel oneVPL-devel')
+ $(vopt_if qsv 'libva-devel libdrm-devel libvpl-devel')
  $(vopt_if nvenc nv-codec-headers)"
 depends="desktop-file-utils gst-plugins-good1 hicolor-icon-theme"
 short_desc="Multithreaded video transcoder"

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

* Re: [PR PATCH] [Updated] New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (10 preceding siblings ...)
  2024-08-06 18:52 ` zlice
@ 2024-08-07  0:02 ` zlice
  2024-08-07  0:03 ` zlice
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-08-07  0:02 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

New package: libvpl-2.12.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From ad9ce65ea2cf85d9fed3af4213e6f04c36fe57f4 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/5] New package: libvpl-2.12.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index a5314955498e24..7669c3c8323b96 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4500,7 +4500,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..9ba84df8a571d8
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.12.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=efc19e5a8544704100f814753eb5e09e85a68e3386508b164042c1f1f761bae8
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From 8905def4929fdc73b040bc4790418a1027bd9fd0 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/5] ffmpeg6: revbump for libvpl

---
 srcpkgs/ffmpeg6/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index b779e9e2f4bce9..2dbe23edbd9caf 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -1,8 +1,8 @@
 # Template file for 'ffmpeg6'
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
-version=6.0.1
-revision=3
+version=6.1.2
+revision=2
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -15,7 +15,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  zimg-devel libmysofa-devel
  $(vopt_if svtav1 libsvt-av1-devel) $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -25,7 +25,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=9b16b8731d78e596b4be0d720428ca42df642bb2d78342881ff7f5bc29fc9623
 
-build_options="vaapi vdpau fdk_aac nvcodec svtav1 onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec svtav1 libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -35,7 +35,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -107,7 +107,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable svtav1 libsvtav1) \
 		$(vopt_enable nvcodec nvenc) \
 		$(vopt_enable nvcodec nvdec)

From 51c0f0cdf135d150f3a08e392f65a527a0b48e83 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/5] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 13fc9f8fe7f640..4207fbb65a6994 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=8f4d965513e7827c1f547c1e749e4ef2812b371974fe64857fe5029a19c5b64c
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From 30dcaa5a8105414bbb40fb019f79daf482b99b8d Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/5] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index 4860878805e0cc..c59a8aefd16e14 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.1
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

From 6e2d7d16d0bb32f280b25c76aa002eb88f3a74a6 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Fri, 2 Aug 2024 18:08:53 -0400
Subject: [PATCH 5/5] handbrake: revbump for libvpl

---
 srcpkgs/handbrake/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index 07dee21e6f2823..8a53a1027e086e 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -15,7 +15,7 @@ makedepends="bzip2-devel ffmpeg6-devel gst-plugins-base1-devel gtk+3-devel
  opus-devel speex-devel x264-devel x265-devel zimg-devel
  $(vopt_if svt_av1 libsvt-av1-devel)
  $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if qsv 'libva-devel libdrm-devel oneVPL-devel')
+ $(vopt_if qsv 'libva-devel libdrm-devel libvpl-devel')
  $(vopt_if nvenc nv-codec-headers)"
 depends="desktop-file-utils gst-plugins-good1 hicolor-icon-theme"
 short_desc="Multithreaded video transcoder"

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

* Re: [PR PATCH] [Updated] New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (11 preceding siblings ...)
  2024-08-07  0:02 ` zlice
@ 2024-08-07  0:03 ` zlice
  2024-08-10 12:38 ` zlice
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-08-07  0:03 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

New package: libvpl-2.12.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From f240e10c6d96e3583049d5e80da2ab585ff63344 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/5] New package: libvpl-2.12.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index a5314955498e24..7669c3c8323b96 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4500,7 +4500,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..9ba84df8a571d8
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.12.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=efc19e5a8544704100f814753eb5e09e85a68e3386508b164042c1f1f761bae8
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From 4da008785567962a51bb3801940e05a28e88ae24 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/5] ffmpeg6: revbump for libvpl

---
 srcpkgs/ffmpeg6/template | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index d79cf2d3dc0c67..739f2b5b818cec 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.1.2
-revision=1
+revision=2
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -15,7 +15,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  zimg-devel libmysofa-devel
  $(vopt_if svtav1 libsvt-av1-devel) $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -25,7 +25,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=3b624649725ecdc565c903ca6643d41f33bd49239922e45c9b1442c63dca4e38
 
-build_options="vaapi vdpau fdk_aac nvcodec svtav1 onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec svtav1 libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -35,7 +35,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -107,7 +107,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable svtav1 libsvtav1) \
 		$(vopt_enable nvcodec nvenc) \
 		$(vopt_enable nvcodec nvdec)

From 2d8fd4688a13eb1c8cba634280e342d30fd1223d Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/5] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 13fc9f8fe7f640..4207fbb65a6994 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=8f4d965513e7827c1f547c1e749e4ef2812b371974fe64857fe5029a19c5b64c
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From 033527b5fb4f946bd370aef5f47930b298f77d4d Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/5] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index 4860878805e0cc..c59a8aefd16e14 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.1
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

From b009393c2be14bb388b77a15f1ad09e5c81357fd Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Fri, 2 Aug 2024 18:08:53 -0400
Subject: [PATCH 5/5] handbrake: revbump for libvpl

---
 srcpkgs/handbrake/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index 07dee21e6f2823..8a53a1027e086e 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -15,7 +15,7 @@ makedepends="bzip2-devel ffmpeg6-devel gst-plugins-base1-devel gtk+3-devel
  opus-devel speex-devel x264-devel x265-devel zimg-devel
  $(vopt_if svt_av1 libsvt-av1-devel)
  $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if qsv 'libva-devel libdrm-devel oneVPL-devel')
+ $(vopt_if qsv 'libva-devel libdrm-devel libvpl-devel')
  $(vopt_if nvenc nv-codec-headers)"
 depends="desktop-file-utils gst-plugins-good1 hicolor-icon-theme"
 short_desc="Multithreaded video transcoder"

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

* Re: [PR PATCH] [Updated] New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (12 preceding siblings ...)
  2024-08-07  0:03 ` zlice
@ 2024-08-10 12:38 ` zlice
  2024-08-10 13:19 ` [wip]New " zlice
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-08-10 12:38 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

New package: libvpl-2.12.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From 9a494bd23e24f1c22e8db2d38221d4b1f28e988d Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/5] New package: libvpl-2.12.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index 23b6a476e92561..1186c171993256 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4499,7 +4499,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..9ba84df8a571d8
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.12.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=efc19e5a8544704100f814753eb5e09e85a68e3386508b164042c1f1f761bae8
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From 65c6fa595f3a5b71fa8db19f19b0df1a69c1912b Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/5] ffmpeg6: revbump for libvpl

---
 srcpkgs/ffmpeg6/template | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index 6b12c0b446b1d8..b24a24ee1253f7 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.1.2
-revision=2
+revision=3
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -14,7 +14,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  libwebp-devel libdrm-devel srt-devel librist-devel vulkan-loader-devel
  zimg-devel libmysofa-devel libsvt-av1-devel $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -24,7 +24,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=3b624649725ecdc565c903ca6643d41f33bd49239922e45c9b1442c63dca4e38
 
-build_options="vaapi vdpau fdk_aac nvcodec onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -34,7 +34,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -102,8 +102,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
-		$(vopt_enable nvcodec nvenc) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable nvcodec nvdec)
 }
 

From 04cdf1a779cccb3da7a58bf1d2c179ebdba1237b Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/5] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 13fc9f8fe7f640..4207fbb65a6994 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=8f4d965513e7827c1f547c1e749e4ef2812b371974fe64857fe5029a19c5b64c
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From 8dbff92fb533e299d53ab1ee77f4d4e40979dd98 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/5] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index 4860878805e0cc..c59a8aefd16e14 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.1
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

From e77d0463998860c3e461b97f1ad168283c6d8c19 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Fri, 2 Aug 2024 18:08:53 -0400
Subject: [PATCH 5/5] handbrake: revbump for libvpl

---
 srcpkgs/handbrake/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index a99181d87a2eb9..1d6394c89b5657 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -14,7 +14,7 @@ makedepends="bzip2-devel ffmpeg6-devel gst-plugins-base1-devel gtk+3-devel
  libsamplerate-devel libtheora-devel libvorbis-devel libvpx-devel libxml2-devel
  opus-devel speex-devel x264-devel x265-devel zimg-devel libsvt-av1-devel
  $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if qsv 'libva-devel libdrm-devel oneVPL-devel')
+ $(vopt_if qsv 'libva-devel libdrm-devel libvpl-devel')
  $(vopt_if nvenc nv-codec-headers)"
 depends="desktop-file-utils gst-plugins-good1 hicolor-icon-theme"
 short_desc="Multithreaded video transcoder"

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

* Re: [wip]New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (13 preceding siblings ...)
  2024-08-10 12:38 ` zlice
@ 2024-08-10 13:19 ` zlice
  2024-09-05 18:06 ` [PR PATCH] [Updated] " zlice
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-08-10 13:19 UTC (permalink / raw)
  To: ml

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

New comment by zlice on void-packages repository

https://github.com/void-linux/void-packages/pull/51496#issuecomment-2281723991

Comment:
revbumps are bad because of other PRs and handbrake https://github.com/void-linux/void-packages/pull/51706

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

* Re: [PR PATCH] [Updated] [wip]New package: libvpl-2.12.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (14 preceding siblings ...)
  2024-08-10 13:19 ` [wip]New " zlice
@ 2024-09-05 18:06 ` zlice
  2024-09-26 18:14 ` [PR PATCH] [Updated] [wip]New package: libvpl-2.13.0 zlice
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-09-05 18:06 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

[wip]New package: libvpl-2.12.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From 5c2bf276f82d59712512bb59c34cdf7a3e2fe522 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/5] New package: libvpl-2.13.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index 391ecd3eefd0e5..7903964420009b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4497,7 +4497,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..7480d0e3218db9
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.13.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=1c740e2b58f7853f56b618bdb7d4a7e5d37f8c1a9b30105a0b79ba80873e1cbd
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From e1f006bb5baf088b52ca5c547d7a359e2de532a5 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/5] ffmpeg6: revbump for libvpl

---
 srcpkgs/ffmpeg6/template | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index 6b12c0b446b1d8..b24a24ee1253f7 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.1.2
-revision=2
+revision=3
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -14,7 +14,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  libwebp-devel libdrm-devel srt-devel librist-devel vulkan-loader-devel
  zimg-devel libmysofa-devel libsvt-av1-devel $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -24,7 +24,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=3b624649725ecdc565c903ca6643d41f33bd49239922e45c9b1442c63dca4e38
 
-build_options="vaapi vdpau fdk_aac nvcodec onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -34,7 +34,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -102,8 +102,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
-		$(vopt_enable nvcodec nvenc) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable nvcodec nvdec)
 }
 

From 1178888dc602177b8a6d60232417e7c3987b8b9f Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/5] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 13fc9f8fe7f640..627510b9eeb414 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -1,7 +1,7 @@
 # Template file for 'gst-plugins-bad1'
 pkgname=gst-plugins-bad1
 version=1.24.6
-revision=2
+revision=3
 build_helper="gir"
 build_style=meson
 configure_args="-Dpackage-origin=https://voidlinux.org -Ddoc=disabled
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=8f4d965513e7827c1f547c1e749e4ef2812b371974fe64857fe5029a19c5b64c
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From 6b9e609cfedc848b6ebedd6092a12cd9301fb699 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/5] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index 4860878805e0cc..c59a8aefd16e14 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.1
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

From 23c0a52663907bb40bc6877a38cb9688eecea2a2 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Fri, 2 Aug 2024 18:08:53 -0400
Subject: [PATCH 5/5] handbrake: revbump for libvpl

---
 srcpkgs/handbrake/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index a99181d87a2eb9..1d6394c89b5657 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -14,7 +14,7 @@ makedepends="bzip2-devel ffmpeg6-devel gst-plugins-base1-devel gtk+3-devel
  libsamplerate-devel libtheora-devel libvorbis-devel libvpx-devel libxml2-devel
  opus-devel speex-devel x264-devel x265-devel zimg-devel libsvt-av1-devel
  $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if qsv 'libva-devel libdrm-devel oneVPL-devel')
+ $(vopt_if qsv 'libva-devel libdrm-devel libvpl-devel')
  $(vopt_if nvenc nv-codec-headers)"
 depends="desktop-file-utils gst-plugins-good1 hicolor-icon-theme"
 short_desc="Multithreaded video transcoder"

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

* Re: [PR PATCH] [Updated] [wip]New package: libvpl-2.13.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (15 preceding siblings ...)
  2024-09-05 18:06 ` [PR PATCH] [Updated] " zlice
@ 2024-09-26 18:14 ` zlice
  2024-09-26 18:33 ` zlice
  2024-11-01 12:10 ` [PR PATCH] [Updated] New " zlice
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-09-26 18:14 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

[wip]New package: libvpl-2.13.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133
- handbrake https://github.com/void-linux/void-packages/pull/51706

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From 177f014838c9fb5db8de35c24b8766ef74e3feba Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/5] New package: libvpl-2.13.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index 947cfc64bc7ed9..825c32c8092170 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4500,7 +4500,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..7480d0e3218db9
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.13.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=1c740e2b58f7853f56b618bdb7d4a7e5d37f8c1a9b30105a0b79ba80873e1cbd
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From 3dc28e71ac7498977f4831a270afe03e1afe076c Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/5] ffmpeg6: revbump for libvpl

---
 srcpkgs/ffmpeg6/template | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index 6b12c0b446b1d8..b24a24ee1253f7 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.1.2
-revision=2
+revision=3
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -14,7 +14,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  libwebp-devel libdrm-devel srt-devel librist-devel vulkan-loader-devel
  zimg-devel libmysofa-devel libsvt-av1-devel $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -24,7 +24,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=3b624649725ecdc565c903ca6643d41f33bd49239922e45c9b1442c63dca4e38
 
-build_options="vaapi vdpau fdk_aac nvcodec onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -34,7 +34,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -102,8 +102,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
-		$(vopt_enable nvcodec nvenc) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable nvcodec nvdec)
 }
 

From acc8c7d4d52da951c1f913b4dd0d84cf52e623cf Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/5] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 13fc9f8fe7f640..627510b9eeb414 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -1,7 +1,7 @@
 # Template file for 'gst-plugins-bad1'
 pkgname=gst-plugins-bad1
 version=1.24.6
-revision=2
+revision=3
 build_helper="gir"
 build_style=meson
 configure_args="-Dpackage-origin=https://voidlinux.org -Ddoc=disabled
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=8f4d965513e7827c1f547c1e749e4ef2812b371974fe64857fe5029a19c5b64c
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From 3081369dde81a872c4003edc925f1ae43fb998a0 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/5] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index c0a57717744bcb..d0798b67de08c9 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.3
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

From d6d896a7cd4cb2957cfe5656ba488fe2f555adf3 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Fri, 2 Aug 2024 18:08:53 -0400
Subject: [PATCH 5/5] handbrake: revbump for libvpl

---
 srcpkgs/handbrake/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index d32651a0abd02d..22fb9b6f4eb7d7 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -1,7 +1,7 @@
 # Template file for 'handbrake'
 pkgname=handbrake
 version=1.8.1
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--force --disable-df-fetch --harden
  $(vopt_enable fdk_aac fdk-aac) $(vopt_enable nvenc) $(vopt_enable qsv)"

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

* Re: [PR PATCH] [Updated] [wip]New package: libvpl-2.13.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (16 preceding siblings ...)
  2024-09-26 18:14 ` [PR PATCH] [Updated] [wip]New package: libvpl-2.13.0 zlice
@ 2024-09-26 18:33 ` zlice
  2024-11-01 12:10 ` [PR PATCH] [Updated] New " zlice
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-09-26 18:33 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

[wip]New package: libvpl-2.13.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133
- handbrake https://github.com/void-linux/void-packages/pull/51706

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From 177f014838c9fb5db8de35c24b8766ef74e3feba Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/5] New package: libvpl-2.13.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index 947cfc64bc7ed9..825c32c8092170 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4500,7 +4500,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..7480d0e3218db9
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.13.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=1c740e2b58f7853f56b618bdb7d4a7e5d37f8c1a9b30105a0b79ba80873e1cbd
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From 3dc28e71ac7498977f4831a270afe03e1afe076c Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/5] ffmpeg6: revbump for libvpl

---
 srcpkgs/ffmpeg6/template | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index 6b12c0b446b1d8..b24a24ee1253f7 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.1.2
-revision=2
+revision=3
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -14,7 +14,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  libwebp-devel libdrm-devel srt-devel librist-devel vulkan-loader-devel
  zimg-devel libmysofa-devel libsvt-av1-devel $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -24,7 +24,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=3b624649725ecdc565c903ca6643d41f33bd49239922e45c9b1442c63dca4e38
 
-build_options="vaapi vdpau fdk_aac nvcodec onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -34,7 +34,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -102,8 +102,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
-		$(vopt_enable nvcodec nvenc) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable nvcodec nvdec)
 }
 

From acc8c7d4d52da951c1f913b4dd0d84cf52e623cf Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/5] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 13fc9f8fe7f640..627510b9eeb414 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -1,7 +1,7 @@
 # Template file for 'gst-plugins-bad1'
 pkgname=gst-plugins-bad1
 version=1.24.6
-revision=2
+revision=3
 build_helper="gir"
 build_style=meson
 configure_args="-Dpackage-origin=https://voidlinux.org -Ddoc=disabled
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=8f4d965513e7827c1f547c1e749e4ef2812b371974fe64857fe5029a19c5b64c
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From 3081369dde81a872c4003edc925f1ae43fb998a0 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/5] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index c0a57717744bcb..d0798b67de08c9 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.3
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

From c391563994a8609cde4e1785efe8ad421cb05afd Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Fri, 2 Aug 2024 18:08:53 -0400
Subject: [PATCH 5/5] handbrake: revbump for libvpl

---
 srcpkgs/handbrake/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index d32651a0abd02d..05e73e56009dac 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -1,7 +1,7 @@
 # Template file for 'handbrake'
 pkgname=handbrake
 version=1.8.1
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--force --disable-df-fetch --harden
  $(vopt_enable fdk_aac fdk-aac) $(vopt_enable nvenc) $(vopt_enable qsv)"
@@ -14,7 +14,7 @@ makedepends="bzip2-devel gst-plugins-base1-devel gtk4-devel
  libsamplerate-devel libtheora-devel libvorbis-devel libvpx-devel libxml2-devel
  opus-devel speex-devel x264-devel x265-devel zimg-devel libsvt-av1-devel
  $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if qsv 'libva-devel oneVPL-devel')
+ $(vopt_if qsv 'libva-devel libvpl-devel')
  $(vopt_if nvenc nv-codec-headers)"
 depends="desktop-file-utils gst-plugins-good1 hicolor-icon-theme"
 short_desc="Multithreaded video transcoder"

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

* Re: [PR PATCH] [Updated] New package: libvpl-2.13.0
  2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
                   ` (17 preceding siblings ...)
  2024-09-26 18:33 ` zlice
@ 2024-11-01 12:10 ` zlice
  18 siblings, 0 replies; 20+ messages in thread
From: zlice @ 2024-11-01 12:10 UTC (permalink / raw)
  To: ml

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

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

https://github.com/zlice/void-packages libvpl
https://github.com/void-linux/void-packages/pull/51496

New package: libvpl-2.13.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl


#### Comments

- libvpl name has replaced oneVPL
- versioning has switched to major.minor.bug instead of yyyy.x.z

Can move the mesa+ffmpeg6 patches into here if that makes more sense

@the-maldridge Pinging since it's yours, kept you as maintainer.

#### Affects PRs

- mesa - https://github.com/void-linux/void-packages/pull/51334
- intel opencl - https://github.com/void-linux/void-packages/pull/43084
- intel vpl runtime - https://github.com/void-linux/void-packages/pull/51133
- handbrake https://github.com/void-linux/void-packages/pull/51706

A patch file from https://github.com/void-linux/void-packages/pull/51496.patch is attached

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

From ea22fb26d23408e772113de11c609d751594ded0 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:18:14 -0400
Subject: [PATCH 1/5] New package: libvpl-2.13.0

Intel's oneVPL repo has been named to libvpl and referenced as
such for a bit. The newest release is libvpl with the version
scheme changing to a minor.major.bug numbering instead of the
previous yyyy.x.z versioning.
---
 common/shlibs                                 |  2 +-
 srcpkgs/libvpl-devel                          |  1 +
 srcpkgs/libvpl-examples                       |  1 +
 .../{oneVPL => libvpl}/patches/cross-pc.patch |  2 +-
 srcpkgs/libvpl/template                       | 40 +++++++++++++++++
 srcpkgs/oneVPL/template                       | 45 +++++++------------
 6 files changed, 59 insertions(+), 32 deletions(-)
 create mode 120000 srcpkgs/libvpl-devel
 create mode 120000 srcpkgs/libvpl-examples
 rename srcpkgs/{oneVPL => libvpl}/patches/cross-pc.patch (79%)
 create mode 100644 srcpkgs/libvpl/template

diff --git a/common/shlibs b/common/shlibs
index 56f4c7d4eef4d0..97fb4c6ad1b519 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4501,7 +4501,7 @@ libgrass_gproj.8.3.so grass-8.3.0_1
 libgrass_imagery.8.3.so grass-8.3.0_1
 libgrass_raster.8.3.so grass-8.3.0_1
 libgrass_vector.8.3.so grass-8.3.0_1
-libvpl.so.2 oneVPL-2023.3.1_1
+libvpl.so.2 libvpl-2.12.0_1
 libusrsctp.so.2 usrsctp-0.9.5.0_1
 libdatachannel.so.0.20 libdatachannel-0.20.2_1
 libgeotiff.so.5 libgeotiff-1.7.1_1
diff --git a/srcpkgs/libvpl-devel b/srcpkgs/libvpl-devel
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-devel
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/libvpl-examples b/srcpkgs/libvpl-examples
new file mode 120000
index 00000000000000..bfde25d9df683b
--- /dev/null
+++ b/srcpkgs/libvpl-examples
@@ -0,0 +1 @@
+libvpl
\ No newline at end of file
diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/libvpl/patches/cross-pc.patch
similarity index 79%
rename from srcpkgs/oneVPL/patches/cross-pc.patch
rename to srcpkgs/libvpl/patches/cross-pc.patch
index 0b24a2124c9b2f..0c4e18f63729cb 100644
--- a/srcpkgs/oneVPL/patches/cross-pc.patch
+++ b/srcpkgs/libvpl/patches/cross-pc.patch
@@ -1,4 +1,4 @@
---- a/dispatcher/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
+--- a/libvpl/pkgconfig/vpl.pc.in	2023-07-21 23:28:38.000000000 +0200
 +++ -	2023-11-14 10:16:46.665168740 +0100
 @@ -1,6 +1,6 @@
 -prefix=@pc_rel_prefix@
diff --git a/srcpkgs/libvpl/template b/srcpkgs/libvpl/template
new file mode 100644
index 00000000000000..7480d0e3218db9
--- /dev/null
+++ b/srcpkgs/libvpl/template
@@ -0,0 +1,40 @@
+# Template file for 'libvpl'
+pkgname=libvpl
+version=2.13.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_EXAMPLES=ON"
+hostmakedepends="pkg-config"
+makedepends="libva-devel libX11-devel"
+short_desc="Intel oneAPI Video Processing Library"
+maintainer="Michael Aldridge <maldridge@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
+distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
+checksum=1c740e2b58f7853f56b618bdb7d4a7e5d37f8c1a9b30105a0b79ba80873e1cbd
+
+post_install() {
+	vlicense LICENSE
+}
+
+libvpl-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove etc/vpl/vars.sh
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/cmake
+		vmove usr/lib/*.so
+	}
+}
+
+libvpl-examples_package() {
+	short_desc+=" - examples"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/share/vpl/examples
+	}
+}
diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template
index 20dcd04f5f4976..316da8d59b7633 100644
--- a/srcpkgs/oneVPL/template
+++ b/srcpkgs/oneVPL/template
@@ -1,43 +1,28 @@
 # Template file for 'oneVPL'
 pkgname=oneVPL
 version=2023.3.1
-revision=2
-build_style=cmake
-hostmakedepends="pkg-config"
-makedepends="libva-devel libX11-devel"
+revision=3
+build_style=meta
 short_desc="Intel oneAPI Video Processing Library"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
-license="MIT"
-homepage="https://github.com/oneapi-src/oneVPL"
-changelog="https://github.com/oneapi-src/oneVPL/blob/master/CHANGELOG.md"
-distfiles="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v$version.tar.gz"
-checksum=4411543519486a2450f6f5af06a077596e7888a551768594e9dfa2a46b23b6f5
+license="Public Domain"
+homepage="https://github.com/intel/libvpl"
+changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
 
-post_install() {
-	vlicense LICENSE
+oneVPL_package() {
+	build_style="meta"
+	short_desc" (transitional dummy package)"
+	depends="libvpl>=0"
 }
 
 oneVPL-devel_package() {
-	short_desc+=" - development files"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove etc/vpl/vars.sh
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-		vmove usr/lib/cmake
-		vmove "usr/lib/*.so"
-	}
+	build_style="meta"
+	short_desc" - development files"
+	depends="libvpl>=0"
 }
 
 oneVPL-examples_package() {
-	short_desc+=" - examples"
-	depends="${sourcepkg}>=${version}_${revision}"
-	pkg_install() {
-		vmove usr/bin/sample_decode
-		vmove usr/bin/sample_encode
-		vmove usr/bin/sample_multi_transcode
-		vmove usr/bin/sample_vpp
-		vmove usr/bin/vpl-inspect
-		vmove usr/share/vpl/examples
-	}
+	build_style="meta"
+	short_desc" - examples"
+	depends="libvpl>=0"
 }

From 2851ae1d369f742575608c8187761856bfbcd480 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:46 -0400
Subject: [PATCH 2/5] ffmpeg6: revbump for libvpl

---
 srcpkgs/ffmpeg6/template | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index 6b12c0b446b1d8..b24a24ee1253f7 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.1.2
-revision=2
+revision=3
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
@@ -14,7 +14,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
  libwebp-devel libdrm-devel srt-devel librist-devel vulkan-loader-devel
  zimg-devel libmysofa-devel libsvt-av1-devel $(vopt_if vaapi libva-devel)
  $(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if onevpl oneVPL-devel) $(vopt_if nvcodec nv-codec-headers)"
+ $(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)"
 depends="ffplay6>=${version}_${revision}"
 short_desc="Decoding, encoding and streaming software"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -24,7 +24,7 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
 checksum=3b624649725ecdc565c903ca6643d41f33bd49239922e45c9b1442c63dca4e38
 
-build_options="vaapi vdpau fdk_aac nvcodec onevpl"
+build_options="vaapi vdpau fdk_aac nvcodec libvpl"
 desc_option_sofa="Enable support for AES SOFA"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -34,7 +34,7 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 	x86_64*)
 		hostmakedepends+=" nasm"
-		build_options_default+=" vaapi vdpau nvcodec onevpl"
+		build_options_default+=" vaapi vdpau nvcodec libvpl"
 		;;
 	ppc64*) build_options_default+=" vaapi vdpau";;
 	mips*) CFLAGS="-mnan=legacy";;
@@ -102,8 +102,7 @@ do_configure() {
 		$(vopt_enable vaapi) $(vopt_enable vdpau) \
 		$(vopt_enable zimg libzimg) \
 		$(vopt_enable sofa libmysofa) \
-		$(vopt_enable onevpl libvpl) \
-		$(vopt_enable nvcodec nvenc) \
+		$(vopt_enable libvpl libvpl) \
 		$(vopt_enable nvcodec nvdec)
 }
 

From 603ee1b0f822985bb0a7320404e9395921bca1b3 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:19:58 -0400
Subject: [PATCH 3/5] gst-plugins-bad1: revbump for libvpl

---
 srcpkgs/gst-plugins-bad1/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 13fc9f8fe7f640..627510b9eeb414 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -1,7 +1,7 @@
 # Template file for 'gst-plugins-bad1'
 pkgname=gst-plugins-bad1
 version=1.24.6
-revision=2
+revision=3
 build_helper="gir"
 build_style=meson
 configure_args="-Dpackage-origin=https://voidlinux.org -Ddoc=disabled
@@ -27,7 +27,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
  webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
- srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
+ srt-devel libva-devel $(vopt_if libvpl libvpl-devel) $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -37,13 +37,13 @@ changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
 distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
 checksum=8f4d965513e7827c1f547c1e749e4ef2812b371974fe64857fe5029a19c5b64c
 
-build_options="gir gme onevpl wayland"
+build_options="gir gme libvpl wayland"
 build_options_default="gir wayland"
 desc_option_gme="Build with Game Music Emulator support"
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;; # libgme cannot be built for mips*
-	x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
+	x86_64*) build_options_default+=" gme libvpl" ;; # libvpl only supports 64bit
 	*) build_options_default+=" gme" ;;
 esac
 

From 13928e9d50444e3eb4b8c4cd377c10d4b5aefef3 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sat, 27 Jul 2024 10:20:06 -0400
Subject: [PATCH 4/5] obs: revbump for libvpl

---
 srcpkgs/obs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template
index c0a57717744bcb..d0798b67de08c9 100644
--- a/srcpkgs/obs/template
+++ b/srcpkgs/obs/template
@@ -1,7 +1,7 @@
 # Template file for 'obs'
 pkgname=obs
 version=30.2.3
-revision=2
+revision=3
 archs="i686* x86_64* ppc64le* aarch64* riscv64*"
 build_style=cmake
 configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
@@ -15,7 +15,7 @@ makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-deve
  pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
  vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
  wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
- librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
+ librist-devel srt-devel libdatachannel-devel libvpl-devel uthash
  qt6-base-private-devel json-c++"
 depends="xset xdg-desktop-portal"
 short_desc="Open Broadcaster Software"

From b3b73f4e190ac6416278bcb5d84055eac6a2e100 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Fri, 2 Aug 2024 18:08:53 -0400
Subject: [PATCH 5/5] handbrake: revbump for libvpl

---
 srcpkgs/handbrake/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index d32651a0abd02d..555b6a687ce4fe 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -14,7 +14,7 @@ makedepends="bzip2-devel gst-plugins-base1-devel gtk4-devel
  libsamplerate-devel libtheora-devel libvorbis-devel libvpx-devel libxml2-devel
  opus-devel speex-devel x264-devel x265-devel zimg-devel libsvt-av1-devel
  $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if qsv 'libva-devel oneVPL-devel')
+ $(vopt_if qsv 'libva-devel libdrm-devel libvpl-devel')
  $(vopt_if nvenc nv-codec-headers)"
 depends="desktop-file-utils gst-plugins-good1 hicolor-icon-theme"
 short_desc="Multithreaded video transcoder"

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

end of thread, other threads:[~2024-11-01 12:10 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-27 14:23 [PR PATCH] New package: libvpl-2.12.0 zlice
2024-07-27 14:26 ` zlice
2024-07-27 14:26 ` zlice
2024-07-27 14:30 ` icp1994
2024-07-28 13:43 ` icp1994
2024-07-28 13:45 ` [PR PATCH] [Updated] " zlice
2024-07-31 14:47 ` zlice
2024-07-31 16:36 ` zlice
2024-08-02 22:09 ` zlice
2024-08-02 22:26 ` zlice
2024-08-02 22:27 ` zlice
2024-08-06 18:52 ` zlice
2024-08-07  0:02 ` zlice
2024-08-07  0:03 ` zlice
2024-08-10 12:38 ` zlice
2024-08-10 13:19 ` [wip]New " zlice
2024-09-05 18:06 ` [PR PATCH] [Updated] " zlice
2024-09-26 18:14 ` [PR PATCH] [Updated] [wip]New package: libvpl-2.13.0 zlice
2024-09-26 18:33 ` zlice
2024-11-01 12:10 ` [PR PATCH] [Updated] New " zlice

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