Skip to content

Commit

Permalink
[libspatialite] Fix mingw crossbuilds (#25513)
Browse files Browse the repository at this point in the history
* Fix mingw cross-builds

* Licensing depends on feature set

* Update versions
  • Loading branch information
dg0yt committed Jul 1, 2022
1 parent 18ab388 commit 9f31c77
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
13 changes: 13 additions & 0 deletions ports/libspatialite/fix-mingw.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/gaiageo/gg_shape.c b/src/gaiageo/gg_shape.c
index ee2f1cf..01f2571 100644
--- a/src/gaiageo/gg_shape.c
+++ b/src/gaiageo/gg_shape.c
@@ -58,7 +58,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
#endif

#ifdef _WIN32
-#include <Windows.h>
+#include <windows.h>
#endif

#if OMIT_ICONV == 0 /* if ICONV is disabled no SHP support is available */
1 change: 1 addition & 0 deletions ports/libspatialite/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ vcpkg_extract_source_archive_ex(
fix-makefiles.patch
fix-linux-configure.patch
gaiaconfig-msvc.patch
fix-mingw.patch
)

vcpkg_check_features(OUT_FEATURE_OPTIONS unused
Expand Down
4 changes: 2 additions & 2 deletions ports/libspatialite/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "libspatialite",
"version": "5.0.1",
"port-version": 5,
"port-version": 6,
"description": "SpatiaLite is an open source library intended to extend the SQLite core to support fully fledged Spatial SQL capabilities.",
"homepage": "https://www.gaia-gis.it/gaia-sins/libspatialite-sources",
"license": "MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later",
"license": null,
"dependencies": [
"geos",
"libiconv",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4066,7 +4066,7 @@
},
"libspatialite": {
"baseline": "5.0.1",
"port-version": 5
"port-version": 6
},
"libspnav": {
"baseline": "0.2.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libspatialite.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "17b2434a466cabf41bd653845871d5b4ec6bfdeb",
"version": "5.0.1",
"port-version": 6
},
{
"git-tree": "27ff74dc3c1f0d6c5e11dbcc110f34e46dae862a",
"version": "5.0.1",
Expand Down

0 comments on commit 9f31c77

Please sign in to comment.