diff --git a/graphics/libheif/files/patch-examples_CMakeLists.txt b/graphics/libheif/files/patch-examples_CMakeLists.txt new file mode 100644 index 000000000000..0ca5c7d3f35a --- /dev/null +++ b/graphics/libheif/files/patch-examples_CMakeLists.txt @@ -0,0 +1,15 @@ +--- examples/CMakeLists.txt.orig 2024-07-22 18:07:55 UTC ++++ examples/CMakeLists.txt +@@ -32,12 +32,6 @@ install(FILES heif-dec.1 DESTINATION ${CMAKE_INSTALL_M + install(TARGETS heif-dec RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + install(FILES heif-dec.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) + +-# create symbolic link from the old name `heif-convert` to `heif-dec` +-if(NOT WIN32) +- install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${DESTDIR}${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/heif-dec${CMAKE_EXECUTABLE_SUFFIX} ${DESTDIR}${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/heif-convert${CMAKE_EXECUTABLE_SUFFIX})") +-else() +- install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/heif-dec${CMAKE_EXECUTABLE_SUFFIX} ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/heif-convert${CMAKE_EXECUTABLE_SUFFIX})") +-endif() + + + add_executable(heif-enc ${getopt_sources}