From c0c487b557238c5f1bd5ba88c37015bb43bd3dcc Mon Sep 17 00:00:00 2001 From: John Date: Tue, 14 Nov 2023 10:09:21 +0100 Subject: [PATCH] oneVPL: add devel subpackage, fix cross --- srcpkgs/oneVPL-devel | 1 + srcpkgs/oneVPL/patches/cross-pc.patch | 12 ++++++++++++ srcpkgs/oneVPL/template | 19 ++++++++++++++++++- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 120000 srcpkgs/oneVPL-devel create mode 100644 srcpkgs/oneVPL/patches/cross-pc.patch diff --git a/srcpkgs/oneVPL-devel b/srcpkgs/oneVPL-devel new file mode 120000 index 00000000000..03776a5d59e --- /dev/null +++ b/srcpkgs/oneVPL-devel @@ -0,0 +1 @@ +oneVPL \ No newline at end of file diff --git a/srcpkgs/oneVPL/patches/cross-pc.patch b/srcpkgs/oneVPL/patches/cross-pc.patch new file mode 100644 index 00000000000..0b24a2124c9 --- /dev/null +++ b/srcpkgs/oneVPL/patches/cross-pc.patch @@ -0,0 +1,12 @@ +--- a/dispatcher/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@ +-libdir=@pc_rel_libdir@ +-includedir=@pc_rel_incdir@ ++prefix=@CMAKE_INSTALL_PREFIX@ ++libdir=${prefix}/lib ++includedir=${prefix}/include + + # oneAPI Video Processing Library (oneVPL) + Name: oneVPL diff --git a/srcpkgs/oneVPL/template b/srcpkgs/oneVPL/template index 9ceeea7ccc7..de6cd7adc98 100644 --- a/srcpkgs/oneVPL/template +++ b/srcpkgs/oneVPL/template @@ -1,7 +1,7 @@ # Template file for 'oneVPL' pkgname=oneVPL version=2023.3.1 -revision=1 +revision=2 build_style=cmake hostmakedepends="libva-devel libX11-devel" hostmakedepends="pkg-config" @@ -17,10 +17,27 @@ post_install() { vlicense LICENSE } +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" + } +} + 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 } }