[packages/vvenc] - added targets config install fix for custom CMAKE_BUILD_TYPE
qboosh
qboosh at pld-linux.org
Sat Mar 21 10:36:04 CET 2026
commit 1ccaa2c9c588db0b5a2a744fc4db40aee1598970
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 21 10:36:17 2026 +0100
- added targets config install fix for custom CMAKE_BUILD_TYPE
vvenc-pld.patch | 33 +++++++++++++++++++++++++++++++++
vvenc.spec | 4 +++-
2 files changed, 36 insertions(+), 1 deletion(-)
---
diff --git a/vvenc.spec b/vvenc.spec
index bb35da9..057ba2a 100644
--- a/vvenc.spec
+++ b/vvenc.spec
@@ -13,6 +13,7 @@ Group: Libraries
Source0: https://github.com/fraunhoferhhi/vvenc/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 73002b025df8a3c39b328890914e4593
Patch0: %{name}-pc.patch
+Patch1: %{name}-pld.patch
URL: https://github.com/fraunhoferhhi/vvenc
BuildRequires: cmake >= 3.13.0
# C++14
@@ -65,6 +66,7 @@ Pliki nagłówkowe biblioteki VVenC.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
install -d build
@@ -96,7 +98,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS.md LICENSE.txt README.md
+%doc AUTHORS.md LICENSE.txt README.md changelog.txt
%attr(755,root,root) %{_bindir}/vvencFFapp
%attr(755,root,root) %{_bindir}/vvencapp
%{_libdir}/libvvenc.so.*.*.*
diff --git a/vvenc-pld.patch b/vvenc-pld.patch
new file mode 100644
index 0000000..b1b9587
--- /dev/null
+++ b/vvenc-pld.patch
@@ -0,0 +1,33 @@
+--- vvenc-1.14.0/cmake/modules/vvencInstall.cmake.orig 2026-01-21 14:06:22.000000000 +0100
++++ vvenc-1.14.0/cmake/modules/vvencInstall.cmake 2026-03-21 10:28:05.508835285 +0100
+@@ -64,10 +64,14 @@ install( DIRECTORY ${CMAKE_BINARY_DIR}/v
+ install( DIRECTORY include/vvenc DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} PATTERN "*.in" EXCLUDE )
+
+ # install targets
++if( CMAKE_BUILD_TYPE )
++install_targets( "${CMAKE_BUILD_TYPE}" )
++else()
+ install_targets( Release )
+ install_targets( Debug )
+ install_targets( RelWithDebInfo )
+ install_targets( MinSizeRel )
++endif()
+
+ # install pdb files
+ install_lib_pdb( vvenc )
+@@ -92,10 +96,15 @@ else()
+ endif()
+
+ # create target cmake files
++if( CMAKE_BUILD_TYPE )
++string( TOLOWER ${CMAKE_BUILD_TYPE} build_type_lc_ )
++install( EXPORT vvencTargets-${build_type_lc_} NAMESPACE vvenc:: FILE vvencTargets-${CONFIG_POSTFIX}.cmake CONFIGURATIONS ${CMAKE_BUILD_TYPE} DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/vvenc )
++else()
+ install( EXPORT vvencTargets-release NAMESPACE vvenc:: FILE vvencTargets-${CONFIG_POSTFIX}.cmake CONFIGURATIONS Release DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/vvenc )
+ install( EXPORT vvencTargets-debug NAMESPACE vvenc:: FILE vvencTargets-${CONFIG_POSTFIX}.cmake CONFIGURATIONS Debug DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/vvenc )
+ install( EXPORT vvencTargets-relwithdebinfo NAMESPACE vvenc:: FILE vvencTargets-${CONFIG_POSTFIX}.cmake CONFIGURATIONS RelWithDebInfo DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/vvenc )
+ install( EXPORT vvencTargets-minsizerel NAMESPACE vvenc:: FILE vvencTargets-${CONFIG_POSTFIX}.cmake CONFIGURATIONS MinSizeRel DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/vvenc )
++endif()
+
+ function( resolve_target_interface_libs TGT OUT_VAR )
+ get_target_property( interface_libs ${TGT} INTERFACE_LINK_LIBRARIES )
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vvenc.git/commitdiff/1ccaa2c9c588db0b5a2a744fc4db40aee1598970
More information about the pld-cvs-commit
mailing list