-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#13285) [jasper] Add version 3.0.6 and cross-support Conan v1 and v2
* Add version 3.0.6 Signed-off-by: Uilian Ries <uilianries@gmail.com> * Remove cmake file Signed-off-by: Uilian Ries <uilianries@gmail.com> * missing folder Signed-off-by: Uilian Ries <uilianries@gmail.com> * Fixes jasper 3.0.6 Signed-off-by: Uilian Ries <uilianries@gmail.com> * patch 2.0.33 Signed-off-by: Uilian Ries <uilianries@gmail.com> * requires conan 1.52.0 Signed-off-by: Uilian Ries <uilianries@gmail.com> * use c99 when cross-building Signed-off-by: Uilian Ries <uilianries@gmail.com> * fix cross-building Signed-off-by: Uilian Ries <uilianries@gmail.com> * Add Ninja to avoid sdk Signed-off-by: Uilian Ries <uilianries@gmail.com> * Ninja is not mandatory Signed-off-by: Uilian Ries <uilianries@gmail.com> * Remove duplicated test_package.c Signed-off-by: Uilian Ries <uilianries@gmail.com> * Links pthread Signed-off-by: Uilian Ries <uilianries@gmail.com> * Use safe deletion Signed-off-by: Uilian Ries <uilianries@gmail.com> * Remove Ninja Signed-off-by: Uilian Ries <uilianries@gmail.com> * Validate cmake defs Signed-off-by: Uilian Ries <uilianries@gmail.com> * Validate cmake alias variables Signed-off-by: Uilian Ries <uilianries@gmail.com> * Update recipes/jasper/all/test_package/CMakeLists.txt Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> * cleanup & small improvements * deterministic libname * Use latest Windows SDK available Adopt a workaround provided by @jcar87, which is a temporary hotfix until having #13159 fixed. Signed-off-by: Uilian Ries <uilianries@gmail.com> * Fix toolchain position variables Signed-off-by: Uilian Ries <uilianries@gmail.com> Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
- Loading branch information
1 parent
c9452cd
commit c872fb9
Showing
14 changed files
with
225 additions
and
319 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,27 @@ | ||
sources: | ||
"3.0.6": | ||
url: "https://github.com/jasper-software/jasper/archive/refs/tags/version-3.0.6.tar.gz" | ||
sha256: "c79961bc00158f5b5dc5f5fcfa792fde9bebb024432689d0f9e3f95a097d0ec3" | ||
"2.0.33": | ||
url: "https://github.com/jasper-software/jasper/archive/refs/tags/version-2.0.33.tar.gz" | ||
sha256: "38b8f74565ee9e7fec44657e69adb5c9b2a966ca5947ced5717cde18a7d2eca6" | ||
"2.0.32": | ||
url: "https://github.com/jasper-software/jasper/archive/version-2.0.32.tar.gz" | ||
sha256: "a3583a06698a6d6106f2fc413aa42d65d86bedf9a988d60e5cfa38bf72bc64b9" | ||
"2.0.28": | ||
url: "https://github.com/jasper-software/jasper/archive/version-2.0.28.tar.gz" | ||
sha256: "6b4e5f682be0ab1a5acb0eeb6bf41d6ce17a658bb8e2dbda95de40100939cc88" | ||
"2.0.27": | ||
url: "https://github.com/jasper-software/jasper/archive/version-2.0.27.tar.gz" | ||
sha256: "df41bd015a9dd0cc2a2e696f8ca5cbfb633323ca9429621f7fa801778681f2dd" | ||
"2.0.26": | ||
url: "https://github.com/jasper-software/jasper/archive/version-2.0.26.tar.gz" | ||
sha256: "a82a119e85b7d1f448e61309777fa5f79053a9adca4a2b5bfe44be5439fb8fea" | ||
"2.0.25": | ||
url: "https://github.com/jasper-software/jasper/archive/version-2.0.25.tar.gz" | ||
sha256: "f5bc48e2884bcabd2aca1737baff4ca962ec665b6eb673966ced1f7adea07edb" | ||
"2.0.24": | ||
url: "https://github.com/jasper-software/jasper/archive/version-2.0.24.tar.gz" | ||
sha256: "d2d28e115968d38499163cf8086179503668ce0d71b90dd33855b3de96a1ca1d" | ||
"2.0.23": | ||
url: "https://github.com/jasper-software/jasper/archive/version-2.0.23.tar.gz" | ||
sha256: "20facc904bd9d38c20e0c090b1be3ae02ae5b2703b803013be2ecad586a18927" | ||
"2.0.22": | ||
url: "https://github.com/jasper-software/jasper/archive/version-2.0.22.tar.gz" | ||
sha256: "afc4166bff29b8a0dc46ed5e8d6a208d7976fccfd0b1146e3400c8b2948794a2" | ||
"2.0.21": | ||
url: "https://github.com/jasper-software/jasper/archive/version-2.0.21.tar.gz" | ||
sha256: "2482def06dfaa33b8d93cbe992a29723309f3c2b6e75674423a52fc82be10418" | ||
"2.0.19": | ||
url: "https://github.com/jasper-software/jasper/archive/version-2.0.19.tar.gz" | ||
sha256: "b9d16162a088617ada36450f2374d72165377cb64b33ed197c200bcfb73ec76c" | ||
"2.0.16": | ||
url: "https://github.com/jasper-software/jasper/archive/version-2.0.16.tar.gz" | ||
sha256: "f1d8b90f231184d99968f361884e2054a1714fdbbd9944ba1ae4ebdcc9bbfdb1" | ||
"2.0.14": | ||
url: "https://github.com/jasper-software/jasper/archive/version-2.0.14.tar.gz" | ||
sha256: "85266eea728f8b14365db9eaf1edc7be4c348704e562bb05095b9a077cf1a97b" | ||
patches: | ||
"2.0.16": | ||
- patch_file: "patches/fix-exported-symbols.patch" | ||
base_path: "source_subfolder" | ||
"2.0.14": | ||
- patch_file: "patches/fix-exported-symbols.patch" | ||
base_path: "source_subfolder" | ||
"3.0.6": | ||
- patch_file: "patches/3.0.6-0001-skip-rpath.patch" | ||
patch_description: "Do not enforce rpath configuration" | ||
patch_source: "https://github.com/jasper-software/jasper/pull/347" | ||
patch_type: "conan" | ||
- patch_file: "patches/3.0.6-0002-find-libjpeg.patch" | ||
patch_description: "check_c_source_compilers does not work with conan gens. See https://github.com/conan-io/conan/issues/12180" | ||
patch_type: "conan" | ||
- patch_file: "patches/3.0.6-0003-deterministic-libname.patch" | ||
patch_description: "No generator dependent libname" | ||
patch_type: "conan" | ||
"2.0.33": | ||
- patch_file: "patches/2.0.33-0001-skip-rpath.patch" | ||
patch_description: "Do not enforce rpath configuration" | ||
patch_source: "https://github.com/jasper-software/jasper/pull/347" | ||
patch_type: "conan" | ||
- patch_file: "patches/2.0.33-0002-find-libjpeg.patch" | ||
patch_description: "check_c_source_compilers does not work with conan gens. See https://github.com/conan-io/conan/issues/12180" | ||
patch_type: "conan" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 230d88c..79081c2 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -298,19 +298,15 @@ if (JAS_ENABLE_SHARED) | ||
# (but later on when installing) | ||
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) | ||
|
||
- set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") | ||
|
||
# add the automatically determined parts of the RPATH | ||
# which point to directories outside the build tree to the install RPATH | ||
- set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) | ||
|
||
# The RPATH to be used when installing, but only if it's not a | ||
# system directory | ||
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES | ||
"${CMAKE_INSTALL_PREFIX}/lib" isSystemDir) | ||
if("${isSystemDir}" STREQUAL "-1") | ||
- set(CMAKE_INSTALL_RPATH | ||
- "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") | ||
endif("${isSystemDir}" STREQUAL "-1") | ||
|
||
endif() |
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,18 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 79081c2..38b6238 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -244,12 +244,7 @@ if (JAS_ENABLE_LIBJPEG AND JPEG_FOUND) | ||
# (e.g., stdio.h and stdint.h). So, we cannot reliably use | ||
# check_include_file here. | ||
set(CMAKE_REQUIRED_INCLUDES ${JPEG_INCLUDE_DIR}) | ||
- check_c_source_compiles(" | ||
- #include <stdio.h> | ||
- #include <stdint.h> | ||
- #include <jpeglib.h> | ||
- int main() {} | ||
- " JAS_HAVE_JPEGLIB_H) | ||
+ set(JAS_HAVE_JPEGLIB_H 1) | ||
if(JAS_HAVE_JPEGLIB_H) | ||
set(JAS_HAVE_LIBJPEG 1) | ||
include_directories(${JPEG_INCLUDE_DIR}) |
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,24 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 5cf594c..a0d253d 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -740,19 +740,15 @@ if(JAS_ENABLE_SHARED) | ||
# (but later on when installing) | ||
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) | ||
|
||
- set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") | ||
|
||
# add the automatically determined parts of the RPATH | ||
# which point to directories outside the build tree to the install RPATH | ||
- set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) | ||
|
||
# The RPATH to be used when installing, but only if it's not a | ||
# system directory | ||
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES | ||
"${CMAKE_INSTALL_PREFIX}/lib" isSystemDir) | ||
if(isSystemDir EQUAL -1) | ||
- set(CMAKE_INSTALL_RPATH | ||
- "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") | ||
endif() | ||
endif() | ||
|
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,18 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index a0d253d..19518af 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -680,12 +680,7 @@ if(JAS_ENABLE_LIBJPEG) | ||
# (e.g., stdio.h and stdint.h). So, we cannot reliably use | ||
# check_include_file here. | ||
jas_get_includes_from_targets(CMAKE_REQUIRED_INCLUDES JPEG::JPEG) | ||
- check_c_source_compiles(" | ||
- #include <stdio.h> | ||
- #include <stdint.h> | ||
- #include <jpeglib.h> | ||
- int main() {} | ||
- " JAS_HAVE_JPEGLIB_H) | ||
+ set(JAS_HAVE_JPEGLIB_H 1) | ||
if(JAS_HAVE_JPEGLIB_H) | ||
set(JAS_HAVE_LIBJPEG 1) | ||
set(JAS_LIBJPEG_TARGET JPEG::JPEG) |
11 changes: 11 additions & 0 deletions
11
recipes/jasper/all/patches/3.0.6-0003-deterministic-libname.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,11 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -254,7 +254,7 @@ endif() | ||
# If a multiconfiguration generator is used, ensure that various output | ||
# files are not placed in subdirectories (such as Debug and Release) | ||
# as this will cause the CTest test suite to fail. | ||
-if(JAS_MULTICONFIGURATION_GENERATOR) | ||
+if(0) | ||
if(CMAKE_CONFIGURATION_TYPES) | ||
set(CMAKE_DEBUG_POSTFIX d) | ||
endif() |
Oops, something went wrong.