forked from microsoft/vcpkg
-
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.
[gdal] Update port to latest GDAL 2.2.2
* Bump GDAL version wherever necessary * Update download package and checksum. * Remove 0001-Add-support-for-MSVC1900-backported-from-GDAL2.patch no longer necessary. * Recalculate 000N prefix in patche filenames after the removal. * Update 0002-Ensures-inclusion-of-PDB-in-release-dll-if-so-reques.patch * Patch pushed upstream https://trac.osgeo.org/gdal/ticket/7055 and should no longer be necessary in GDAL 2.2.3 or later * Update 0003-Fix-openjpeg-include.patch
- Loading branch information
Showing
8 changed files
with
52 additions
and
147 deletions.
There are no files selected for viewing
70 changes: 0 additions & 70 deletions
70
ports/gdal/0001-Add-support-for-MSVC1900-backported-from-GDAL2.patch
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,18 +1,8 @@ | ||
From b25c3dc49ca1bcf9a789cf64c9fa8694e35127f0 Mon Sep 17 00:00:00 2001 | ||
From: Manuel Massing <[email protected]> | ||
Date: Sun, 27 Nov 2016 09:57:04 +0100 | ||
Subject: [PATCH 2/2] Add variable CXX_CRT_FLAGS to allow for selection of C | ||
runtime linkage in nmake build. | ||
|
||
--- | ||
nmake.opt | 18 ++++++++++++++---- | ||
1 file changed, 14 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/nmake.opt b/nmake.opt | ||
index 4d1c4fa..47c2df8 100644 | ||
index bd5719c2d1..f6101ccd59 100644 | ||
--- a/nmake.opt | ||
+++ b/nmake.opt | ||
@@ -125,18 +125,28 @@ CXX_PDB_FLAGS=/Zi /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb | ||
@@ -127,18 +127,28 @@ CXX_PDB_FLAGS=/Zi /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb | ||
CXX_PDB_FLAGS= | ||
!ENDIF | ||
|
||
|
@@ -29,22 +19,19 @@ index 4d1c4fa..47c2df8 100644 | |
!IFNDEF OPTFLAGS | ||
!IF $(MSVC_VER) >= 1400 | ||
!IFNDEF DEBUG | ||
-OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MD /EHsc /Ox /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG | ||
-OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MP /MD /EHsc /Ox /FC /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG | ||
+OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo $(CXX_CRT_FLAGS) /EHsc /Ox /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG | ||
!ELSE | ||
-OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MD /EHsc /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DDEBUG | ||
-OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MP /MD /EHsc /FC /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DDEBUG | ||
+OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo $(CXX_CRT_FLAGS) /EHsc /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DDEBUG | ||
!ENDIF | ||
!ELSE | ||
!IFNDEF DEBUG | ||
-OPTFLAGS= $(CXX_PDB_FLAGS) /nologo /MD /EHsc /GR /Ox /DNDEBUG | ||
-OPTFLAGS= $(CXX_PDB_FLAGS) /nologo /MD /EHsc /GR /Ox /FC /DNDEBUG | ||
+OPTFLAGS= $(CXX_PDB_FLAGS) /nologo $(CXX_CRT_FLAGS) /EHsc /GR /Ox /DNDEBUG | ||
!ELSE | ||
-OPTFLAGS= $(CXX_PDB_FLAGS) /nologo /MD /EHsc /GR /DDEBUG | ||
-OPTFLAGS= $(CXX_PDB_FLAGS) /nologo /MD /EHsc /GR /FC /DDEBUG | ||
+OPTFLAGS= $(CXX_PDB_FLAGS) /nologo $(CXX_CRT_FLAGS) /EHsc /GR /DDEBUG | ||
!ENDIF | ||
!ENDIF #MSVC_VER | ||
!ENDIF # OPTFLAGS | ||
-- | ||
2.10.1.windows.1 | ||
|
14 changes: 14 additions & 0 deletions
14
ports/gdal/0002-Ensures-inclusion-of-PDB-in-release-dll-if-so-reques.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,14 @@ | ||
diff --git a/nmake.opt b/nmake.opt | ||
index bd5719c2d1..c0ca442cbe 100644 | ||
--- a/nmake.opt | ||
+++ b/nmake.opt | ||
@@ -195,6 +205,9 @@ SOFTWARNFLAGS= /wd4244 /wd4702 /wd4701 /wd4013 /wd4706 /wd4057 /wd4210 /wd4305 | ||
# Linker debug options | ||
!IFDEF DEBUG | ||
LDEBUG= /debug | ||
+!ELSEIFDEF WITH_PDB | ||
+# Ensures that PDB is included in release DLL if so requested | ||
+LDEBUG= /debug /opt:ref /opt:icf | ||
!ENDIF | ||
|
||
# Uncomment the following if you are building for 64-bit windows |
26 changes: 0 additions & 26 deletions
26
ports/gdal/0003-Ensures-inclusion-of-PDB-in-release-dll-if-so-reques.patch
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/frmts/openjpeg/openjpegdataset.cpp b/frmts/openjpeg/openjpegdataset.cpp | ||
index 5978882bc9..72cc7b9559 100644 | ||
--- a/frmts/openjpeg/openjpegdataset.cpp | ||
+++ b/frmts/openjpeg/openjpegdataset.cpp | ||
@@ -34,14 +34,8 @@ | ||
#pragma clang diagnostic ignored "-Wdocumentation" | ||
#endif | ||
|
||
-#if defined(OPENJPEG_VERSION) && OPENJPEG_VERSION >= 20200 | ||
-#include <openjpeg-2.2/openjpeg.h> | ||
-#elif defined(OPENJPEG_VERSION) && OPENJPEG_VERSION >= 20100 | ||
-#include <openjpeg-2.1/openjpeg.h> | ||
-#else | ||
#include <stdio.h> /* openjpeg.h needs FILE* */ | ||
-#include <openjpeg-2.0/openjpeg.h> | ||
-#endif | ||
+#include <openjpeg.h> | ||
|
||
#ifdef __clang__ | ||
#pragma clang diagnostic pop |
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,4 +1,4 @@ | ||
Source: gdal | ||
Version: 1.11.3-5 | ||
Version: 2.2.2 | ||
Description: The Geographic Data Abstraction Library for reading and writing geospatial raster and vector data. | ||
Build-Depends: proj, libpng, geos, sqlite3, curl, expat, libpq, libmysql, openjpeg, libwebp, libxml2, liblzma |
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