storj-uplink: 1.119.15 -> 1.120.4 (#375732)
[NixPkgs.git] / pkgs / by-name / li / libtiff / static.patch
blob0eecc5d149b8ae7018c1deec90ee77288198ed71
1 From ed5fcc718075021fe670daee6dd426a5e12d6842 Mon Sep 17 00:00:00 2001
2 From: Alyssa Ross <hi@alyssa.is>
3 Date: Thu, 19 Dec 2024 16:51:51 +0100
4 Subject: [PATCH] Fix name of Lerc package
6 Lerc calls its CMake package "Lerc", not "LERC". This meant that,
7 even if building libtiff with -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON,
8 Lerc's CMake files wouldn't be used as intended.
10 Link: https://gitlab.com/libtiff/libtiff/-/merge_requests/686
11 ---
12 cmake/{FindLERC.cmake => FindLerc.cmake} | 0
13 cmake/LERCCodec.cmake | 2 +-
14 2 files changed, 1 insertion(+), 1 deletion(-)
15 rename cmake/{FindLERC.cmake => FindLerc.cmake} (100%)
17 diff --git a/cmake/FindLERC.cmake b/cmake/FindLerc.cmake
18 similarity index 100%
19 rename from cmake/FindLERC.cmake
20 rename to cmake/FindLerc.cmake
21 diff --git a/cmake/LERCCodec.cmake b/cmake/LERCCodec.cmake
22 index 54504ca1..237f8d7e 100644
23 --- a/cmake/LERCCodec.cmake
24 +++ b/cmake/LERCCodec.cmake
25 @@ -25,7 +25,7 @@
27 # libLerc
28 set(LERC_SUPPORT FALSE)
29 -find_package(LERC)
30 +find_package(Lerc)
31 option(lerc "use libLerc (required for LERC compression)" ${LERC_FOUND})
32 if (lerc AND LERC_FOUND AND ZIP_SUPPORT)
33 set(LERC_SUPPORT TRUE)
34 --
35 2.47.0