aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Rudge <owen@owenrudge.net>2019-12-20 20:16:46 +0000
committerdan-shaw <51385773+dan-shaw@users.noreply.github.com>2019-12-20 12:16:46 -0800
commitac0d90f680fb0431b4d5e472a1952ea06944c50b (patch)
treec179b9aa56727609667886a4c42e189257236858
parent19ed64967c4ce360048e52c51df6b7bc1e19bdb5 (diff)
downloadvcpkg-ac0d90f680fb0431b4d5e472a1952ea06944c50b.tar.gz
vcpkg-ac0d90f680fb0431b4d5e472a1952ea06944c50b.zip
[proj4] Update to version 6.2.1; disable exporting symbols for static libraries (#9227)
* [proj4] Update to version 6.2.1; disable exporting symbols for static libraries * Remove deprecated function Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
-rw-r--r--ports/proj4/CONTROL2
-rw-r--r--ports/proj4/disable-export-for-static-lib.patch26
-rw-r--r--ports/proj4/fix-sqlite-dependency-export.patch6
-rw-r--r--ports/proj4/portfile.cmake10
4 files changed, 35 insertions, 9 deletions
diff --git a/ports/proj4/CONTROL b/ports/proj4/CONTROL
index f4db51a33..d26e94449 100644
--- a/ports/proj4/CONTROL
+++ b/ports/proj4/CONTROL
@@ -1,5 +1,5 @@
Source: proj4
-Version: 6.2.0-1
+Version: 6.2.1-1
Homepage: https://github.com/OSGeo/PROJ
Description: PROJ.4 library for cartographic projections
Build-Depends: sqlite3[core]
diff --git a/ports/proj4/disable-export-for-static-lib.patch b/ports/proj4/disable-export-for-static-lib.patch
new file mode 100644
index 000000000..f9bd086ca
--- /dev/null
+++ b/ports/proj4/disable-export-for-static-lib.patch
@@ -0,0 +1,26 @@
+diff --git a/src/geodesic.h b/src/geodesic.h
+index 11484ec7..479a9462 100644
+--- a/src/geodesic.h
++++ b/src/geodesic.h
+@@ -158,7 +158,7 @@
+ GEODESIC_VERSION_PATCH)
+
+ #ifndef GEOD_DLL
+-#if defined(_MSC_VER)
++#if defined(_MSC_VER) && defined(PROJ_MSVC_DLL_EXPORT)
+ #define GEOD_DLL __declspec(dllexport)
+ #elif defined(__GNUC__)
+ #define GEOD_DLL __attribute__ ((visibility("default")))
+diff --git a/src/lib_proj.cmake b/src/lib_proj.cmake
+index bad60324..2e90f98f 100644
+--- a/src/lib_proj.cmake
++++ b/src/lib_proj.cmake
+@@ -443,7 +443,7 @@ endif()
+ include_directories(${SQLITE3_INCLUDE_DIR})
+ target_link_libraries(${PROJ_CORE_TARGET} ${SQLITE3_LIBRARY})
+
+-if(MSVC)
++if(MSVC AND BUILD_LIBPROJ_SHARED)
+ target_compile_definitions(${PROJ_CORE_TARGET}
+ PRIVATE PROJ_MSVC_DLL_EXPORT=1)
+ endif()
diff --git a/ports/proj4/fix-sqlite-dependency-export.patch b/ports/proj4/fix-sqlite-dependency-export.patch
index a7f051699..774d1acfd 100644
--- a/ports/proj4/fix-sqlite-dependency-export.patch
+++ b/ports/proj4/fix-sqlite-dependency-export.patch
@@ -1,13 +1,13 @@
diff --git a/src/lib_proj.cmake b/src/lib_proj.cmake
-index 5a0a807..f7bfffd 100644
+index 2e90f98f..dc171e91 100644
--- a/src/lib_proj.cmake
+++ b/src/lib_proj.cmake
-@@ -439,7 +439,7 @@ if(USE_THREAD AND Threads_FOUND AND CMAKE_USE_PTHREADS_INIT)
+@@ -441,7 +441,7 @@ if(USE_THREAD AND Threads_FOUND AND CMAKE_USE_PTHREADS_INIT)
endif()
include_directories(${SQLITE3_INCLUDE_DIR})
-target_link_libraries(${PROJ_CORE_TARGET} ${SQLITE3_LIBRARY})
+target_link_libraries(${PROJ_CORE_TARGET} PUBLIC ${SQLITE3_LIBRARY})
- if(MSVC)
+ if(MSVC AND BUILD_LIBPROJ_SHARED)
target_compile_definitions(${PROJ_CORE_TARGET}
diff --git a/ports/proj4/portfile.cmake b/ports/proj4/portfile.cmake
index a34e29da4..89eee4860 100644
--- a/ports/proj4/portfile.cmake
+++ b/ports/proj4/portfile.cmake
@@ -1,13 +1,13 @@
-include(vcpkg_common_functions)
-
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO OSGeo/PROJ
- REF 6.2.0
- SHA512 035c138e1a7794760652906daaf3c8a42cb6431ad9062a42ec2f8d721ead25394407fdd52560c5f1fc8668a0167459fdbe47c6392de23c1474304ea26b8a3a33
+ REF 6.2.1
+ SHA512 43f0356a1f4df871e09a738fb8ac386c0fbe543b35c3c1b9c9685469ca7a2a540427edb9b17d4c010c06a4818d17d0421dfcdca9af9d091854da71690fddfbf3
HEAD_REF master
PATCHES
fix-sqlite3-bin.patch
+ disable-export-namespace.patch
+ disable-export-for-static-lib.patch
disable-projdb-with-arm-uwp.patch
fix-win-output-name.patch
fix-sqlite-dependency-export.patch
@@ -70,4 +70,4 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/proj4)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
-file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/proj4 RENAME copyright)
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)