forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(conan-io#13109) libtiff: conan v2 support
* conan v2 support * bump dependencies * more robust injection of libjpeg-turbo CMakeDeps info
- Loading branch information
Showing
20 changed files
with
597 additions
and
341 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
recipes/libtiff/all/patches/4.0.8-0001-cmake-add-libjpeg-turbo.patch
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
recipes/libtiff/all/patches/4.0.8-0001-cmake-dependencies.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -544,12 +544,10 @@ endif() | ||
option(jbig "use ISO JBIG compression (requires JBIT-KIT library)" ON) | ||
if (jbig) | ||
set(JBIG_FOUND 0) | ||
- find_path(JBIG_INCLUDE_DIR jbig.h) | ||
- set(JBIG_NAMES ${JBIG_NAMES} jbig libjbig) | ||
- find_library(JBIG_LIBRARY NAMES ${JBIG_NAMES}) | ||
- if (JBIG_INCLUDE_DIR AND JBIG_LIBRARY) | ||
+ find_package(jbig REQUIRED CONFIG) | ||
+ if (1) | ||
set(JBIG_FOUND 1) | ||
- set(JBIG_LIBRARIES ${JBIG_LIBRARY}) | ||
+ set(JBIG_LIBRARIES jbig::jbig) | ||
endif() | ||
endif() | ||
set(JBIG_SUPPORT 0) | ||
@@ -564,7 +562,7 @@ set(CMAKE_REQUIRED_LIBRARIES_SAVE ${CMAKE_REQUIRED_LIBRARIES}) | ||
set(CMAKE_REQUIRED_INCLUDES_SAVE ${CMAKE_REQUIRED_INCLUDES}) | ||
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${JBIG_INCLUDE_DIR}) | ||
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${JBIG_LIBRARY}) | ||
-check_function_exists(jbg_newlen HAVE_JBG_NEWLEN) | ||
+set(HAVE_JBG_NEWLEN TRUE) | ||
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES_SAVE}) | ||
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_SAVE}) | ||
|
||
@@ -701,8 +699,8 @@ endif() | ||
if(ZLIB_LIBRARIES) | ||
list(APPEND TIFF_LIBRARY_DEPS ${ZLIB_LIBRARIES}) | ||
endif() | ||
-if(JPEG_LIBRARIES) | ||
- list(APPEND TIFF_LIBRARY_DEPS ${JPEG_LIBRARIES}) | ||
+if(JPEG_FOUND) | ||
+ list(APPEND TIFF_LIBRARY_DEPS JPEG::JPEG) | ||
endif() | ||
if(JPEG12_LIBRARIES) | ||
list(APPEND TIFF_LIBRARY_DEPS ${JPEG12_LIBRARIES}) |
13 changes: 13 additions & 0 deletions
13
recipes/libtiff/all/patches/4.0.8-0002-no-libm-mingw.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -206,7 +206,9 @@ else() | ||
endif() | ||
|
||
# Find libm, if available | ||
-find_library(M_LIBRARY m) | ||
+if (NOT MINGW) | ||
+ find_library(M_LIBRARY m) | ||
+endif() | ||
|
||
check_include_file(assert.h HAVE_ASSERT_H) | ||
check_include_file(dlfcn.h HAVE_DLFCN_H) |
Oops, something went wrong.