forked from spack/spack
-
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.
- Loading branch information
Showing
3 changed files
with
102 additions
and
20 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
var/spack/repos/builtin/packages/eccodes/enable_only_jasper.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,26 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index bf4d78b..ea2f3e9 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -162,8 +162,6 @@ if( ENABLE_JPG ) | ||
set(CMAKE_PREFIX_PATH ${_CMAKE_PREFIX_PATH}) # Restore CMAKE_PREFIX_PATH | ||
set(CMAKE_WARN_DEPRECATED ON) # Remove suppression | ||
|
||
- find_package( OpenJPEG ) | ||
- | ||
if( JASPER_FOUND ) | ||
list( APPEND ECCODES_TPLS Jasper ) | ||
set( HAVE_JPEG 1 ) | ||
@@ -172,12 +170,6 @@ if( ENABLE_JPG ) | ||
string(REGEX REPLACE "^([0-9]+)\\.[0-9]+\\.[0-9]+.*" "\\1" JASPER_VERSION_MAJOR "${JASPER_VERSION_STRING}") | ||
endif() | ||
|
||
- if( OPENJPEG_FOUND ) | ||
- list( APPEND ECCODES_TPLS OpenJPEG ) | ||
- set( HAVE_JPEG 1 ) | ||
- set( HAVE_LIBOPENJPEG 1 ) | ||
- endif() | ||
- | ||
endif() | ||
|
||
|
32 changes: 32 additions & 0 deletions
32
var/spack/repos/builtin/packages/eccodes/enable_only_openjpeg.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,32 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index bf4d78b..3ae50ba 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -151,27 +151,8 @@ set( HAVE_LIBOPENJPEG 0 ) | ||
|
||
if( ENABLE_JPG ) | ||
|
||
- # Note: This is a deprecated feature but we need it to find Jasper at ECMWF. | ||
- # ecbuild_add_extra_search_paths modifies CMAKE_PREFIX_PATH | ||
- # which can affect future package discovery if not undone by the caller. | ||
- # The current CMAKE_PREFIX_PATH is backed up as _CMAKE_PREFIX_PATH | ||
- # | ||
- set(CMAKE_WARN_DEPRECATED OFF) # Suppress deprecation message | ||
- ecbuild_add_extra_search_paths( jasper ) | ||
- find_package( Jasper ) | ||
- set(CMAKE_PREFIX_PATH ${_CMAKE_PREFIX_PATH}) # Restore CMAKE_PREFIX_PATH | ||
- set(CMAKE_WARN_DEPRECATED ON) # Remove suppression | ||
- | ||
find_package( OpenJPEG ) | ||
|
||
- if( JASPER_FOUND ) | ||
- list( APPEND ECCODES_TPLS Jasper ) | ||
- set( HAVE_JPEG 1 ) | ||
- set( HAVE_LIBJASPER 1 ) | ||
- # Extract Jasper's major version number to enable conditional code. See ECC-396 | ||
- string(REGEX REPLACE "^([0-9]+)\\.[0-9]+\\.[0-9]+.*" "\\1" JASPER_VERSION_MAJOR "${JASPER_VERSION_STRING}") | ||
- endif() | ||
- | ||
if( OPENJPEG_FOUND ) | ||
list( APPEND ECCODES_TPLS OpenJPEG ) | ||
set( HAVE_JPEG 1 ) |
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