summaryrefslogtreecommitdiffstats
path: root/src/ossim-1-fixes.patch
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-10-10 03:38:27 (GMT)
committerTony Theodore <tonyt@logyst.com>2017-10-10 04:31:50 (GMT)
commitc4ea4be28b2096ca087641d5e5a07ea9030866a3 (patch)
tree0328f6a164184b09c62f26f5464fd7be3a7dee43 /src/ossim-1-fixes.patch
parent78f9235232ab9b4dd3393a646497010beb6f449c (diff)
downloadmxe-c4ea4be28b2096ca087641d5e5a07ea9030866a3.zip
mxe-c4ea4be28b2096ca087641d5e5a07ea9030866a3.tar.gz
mxe-c4ea4be28b2096ca087641d5e5a07ea9030866a3.tar.bz2
ossim: update and switch to github
The master branch appears to be a stable release branch so track that instead of tags which have unpredictable names
Diffstat (limited to 'src/ossim-1-fixes.patch')
-rw-r--r--src/ossim-1-fixes.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/ossim-1-fixes.patch b/src/ossim-1-fixes.patch
new file mode 100644
index 0000000..f2c3df9
--- /dev/null
+++ b/src/ossim-1-fixes.patch
@@ -0,0 +1,54 @@
+This file is part of MXE. See LICENSE.md for licensing information.
+
+Contains ad hoc patches for cross building.
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Tony Theodore <tonyt@logyst.com>
+Date: Tue, 10 Oct 2017 13:15:27 +1100
+Subject: [PATCH] fix deprecated WIN32 definition
+
+taken from:
+https://github.com/ossimlabs/ossim/issues/153
+
+diff --git a/src/util/ossimBatchTest.cpp b/src/util/ossimBatchTest.cpp
+index 1111111..2222222 100644
+--- a/src/util/ossimBatchTest.cpp
++++ b/src/util/ossimBatchTest.cpp
+@@ -72,7 +72,7 @@ bool ossimBatchTest::initialize(ossimArgumentParser& ap)
+ }
+
+ // Initialize environment:
+-#if defined(WIN32) || defined(_MSC_VER) && !defined(__CYGWIN__) && !defined(__MWERKS__)
++#if defined(_WIN32) || defined(_MSC_VER) && !defined(__CYGWIN__) && !defined(__MWERKS__)
+ _putenv("DEL_CMD=del /Q"); // For backwards compatiblity.
+ _putenv("DIFF_CMD=fc /W");
+ _putenv("COPY_CMD=copy /Y");
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Tony Theodore <tonyt@logyst.com>
+Date: Tue, 10 Oct 2017 13:26:49 +1100
+Subject: [PATCH] set windows shared/static defs using cmake options
+
+taken from:
+https://github.com/ossimlabs/ossim/issues/153
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -34,7 +34,14 @@ ELSE (OSSIM_HAS_HDF5)
+ message( STATUS "HDF5 components are being excluded from the build." )
+ ENDIF (OSSIM_HAS_HDF5)
+
+-ADD_DEFINITIONS("-DOSSIMMAKINGDLL")
++IF (WIN32)
++ IF (BUILD_SHARED)
++ ADD_DEFINITIONS("-DOSSIMMAKINGDLL")
++ ELSE (BUILD_SHARED)
++ ADD_DEFINITIONS("-DOSSIM_STATIC")
++ ENDIF (BUILD_SHARED)
++ENDIF (WIN32)
++
+ ############################### GRAB HEADERS #####################################
+ FILE(GLOB ossim_HDRS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/../include/ossim/*.h")
+ FILE(GLOB ossim_base_HDRS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/../include/ossim/base/*.h")