void-packages/srcpkgs/hugin/patches/0001-disable-vigra-links-ex...

42 lines
1.5 KiB
Diff

From 82af9705aacf1bcae713715eeda25f114800ed1d Mon Sep 17 00:00:00 2001
From: lemmi <lemmi@nerd2nerd.org>
Date: Sat, 8 Jan 2022 23:02:31 +0100
Subject: [PATCH] disable vigra-links-exr check
---
CMakeModules/FindVIGRA.cmake | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/CMakeModules/FindVIGRA.cmake b/CMakeModules/FindVIGRA.cmake
index 320cf3d..f867b55 100755
--- a/CMakeModules/FindVIGRA.cmake
+++ b/CMakeModules/FindVIGRA.cmake
@@ -63,24 +63,6 @@ IF (VIGRA_FOUND)
"VIGRA lib is too old.\nHugin requires at least version 1.9.0, but found version ${VIGRA_VERSION}."
)
ENDIF()
-
- # check if vigraimpex is linked against OpenEXR
- IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
- FIND_PROGRAM(LDD_EXECUTABLE ldd)
- IF(LDD_EXECUTABLE)
- EXECUTE_PROCESS(
- COMMAND ${LDD_EXECUTABLE} ${VIGRA_LIBRARIES}
- OUTPUT_VARIABLE OUTPUT_LDD_VIGRA
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- STRING(TOLOWER "${OUTPUT_LDD_VIGRA}" OUTPUT_LDD_VIGRA_LOWER)
- IF(NOT "${OUTPUT_LDD_VIGRA_LOWER}" MATCHES "libilmimf|libopenexr")
- MESSAGE(FATAL_ERROR "Libvigraimpex found. But vigraimpex seems to compiled without OpenEXR support. OpenEXR support is required for Hugin.")
- ENDIF()
- ELSE()
- MESSAGE(FATAL_ERROR "Could not check libraries on which vigraimpex depends. (ldd is missing)")
- ENDIF()
- ENDIF()
ELSE (VIGRA_FOUND)
MESSAGE(FATAL_ERROR "Could not find VIGRA")
ENDIF (VIGRA_FOUND)
--
2.34.1