-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[spatialite-tools] Revise and update to 5.0.1 #21594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1b4a489
Revise portfile and patch
dg0yt 6a01308
Install pc file for windows
dg0yt d598873
Update versions
dg0yt d818230
Remove readosm failure from CI baseline
dg0yt d9c0b0a
Revise dependencies based on #include, use pkgconfig
dg0yt 8904582
Revise portfile
dg0yt 4a491f1
Update to 5.0.1
dg0yt 6e56466
Update versions
dg0yt 54f1aaa
Merge readosm into spatialite-tools
dg0yt 62612ed
Fix release-only nmake build
dg0yt b1c2ce9
Update versions
dg0yt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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,12 @@ | ||
| diff --git a/readosm.pc.in b/readosm.pc.in | ||
| index c1a0961..2417433 100644 | ||
| --- a/readosm.pc.in | ||
| +++ b/readosm.pc.in | ||
| @@ -8,5 +8,6 @@ includedir=@includedir@ | ||
| Name: readosm | ||
| Description: a simple library parsing Open Street Map files | ||
| Version: @VERSION@ | ||
| -Libs: -L${libdir} -lreadosm -lz -lexpat | ||
| +Requires.private: expat zlib | ||
| +Libs: -L${libdir} -lreadosm | ||
| Cflags: -I${includedir} |
This file contains hidden or 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,89 +1,94 @@ | ||
| set(READOSM_VERSION_STR "1.1.0a") | ||
| vcpkg_download_distfile(ARCHIVE | ||
| URLS "http://www.gaia-gis.it/gaia-sins/readosm-sources/readosm-${READOSM_VERSION_STR}.tar.gz" | ||
| URLS "https://www.gaia-gis.it/gaia-sins/readosm-sources/readosm-${READOSM_VERSION_STR}.tar.gz" | ||
| FILENAME "readosm-${READOSM_VERSION_STR}.tar.gz" | ||
| SHA512 ec8516cdd0b02027cef8674926653f8bc76e2082c778b02fb2ebcfa6d01e21757aaa4fd5d5104059e2f5ba97190183e60184f381bfd592a635805aa35cd7a682 | ||
| ) | ||
|
|
||
| if (VCPKG_TARGET_IS_WINDOWS) | ||
| vcpkg_extract_source_archive_ex( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| ARCHIVE ${ARCHIVE} | ||
| PATCHES | ||
| vcpkg_extract_source_archive(SOURCE_PATH | ||
| ARCHIVE "${ARCHIVE}" | ||
| PATCHES | ||
| fix-makefiles.patch | ||
| ) | ||
| pc-file.patch | ||
| ) | ||
|
|
||
| set(PKGCONFIG_MODULES expat zlib) | ||
|
|
||
| if(VCPKG_CRT_LINKAGE STREQUAL dynamic) | ||
| set(CL_FLAGS_DBG "/MDd /Zi") | ||
| set(CL_FLAGS_REL "/MD /Ox") | ||
PhoebeHui marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| set(EXPAT_LIBS_REL "${CURRENT_INSTALLED_DIR}/lib/libexpat.lib") | ||
| set(EXPAT_LIBS_DBG "${CURRENT_INSTALLED_DIR}/debug/lib/libexpatd.lib") | ||
| else() | ||
| set(CL_FLAGS_DBG "/MTd /Zi") | ||
| set(CL_FLAGS_REL "/MT /Ox") | ||
PhoebeHui marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| set(EXPAT_LIBS_REL "${CURRENT_INSTALLED_DIR}/lib/libexpatMD.lib") | ||
| set(EXPAT_LIBS_DBG "${CURRENT_INSTALLED_DIR}/debug/lib/libexpatdMD.lib") | ||
| endif() | ||
| if (VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW) | ||
| x_vcpkg_pkgconfig_get_modules( | ||
BillyONeal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| PREFIX PKGCONFIG | ||
| MODULES --msvc-syntax ${PKGCONFIG_MODULES} | ||
| LIBS | ||
| ) | ||
|
|
||
| if(VCPKG_TARGET_IS_UWP) | ||
| set(UWP_LIBS windowsapp.lib) | ||
| set(UWP_LINK_FLAGS /APPCONTAINER) | ||
| endif() | ||
| if(VCPKG_TARGET_IS_UWP) | ||
| set(UWP_LIBS windowsapp.lib) | ||
| set(UWP_LINK_FLAGS /APPCONTAINER) | ||
BillyONeal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| endif() | ||
|
|
||
| set(LIBS_ALL_DBG | ||
| "${CURRENT_INSTALLED_DIR}/debug/lib/zlibd.lib \ | ||
| ${UWP_LIBS} \ | ||
| ${EXPAT_LIBS_DBG}" | ||
| ) | ||
| set(LIBS_ALL_REL | ||
| "${CURRENT_INSTALLED_DIR}/lib/zlib.lib \ | ||
| ${UWP_LIBS} \ | ||
| ${EXPAT_LIBS_REL}" | ||
| ) | ||
| file(TO_NATIVE_PATH "${CURRENT_PACKAGES_DIR}" INST_DIR) | ||
|
|
||
| string(REPLACE "/" "\\\\" INST_DIR ${CURRENT_PACKAGES_DIR}) | ||
| list(APPEND OPTIONS_RELEASE | ||
| "LINK_FLAGS=${UWP_LINK_FLAGS}" "INST_DIR=${INST_DIR}" "CL_FLAGS=${CL_FLAGS_REL}" "LIBS_ALL=${LIBS_ALL_REL}" | ||
| ) | ||
| list(APPEND OPTIONS_DEBUG | ||
| "LINK_FLAGS=${UWP_LINK_FLAGS} /debug" "INST_DIR=${INST_DIR}\\debug" "CL_FLAGS=${CL_FLAGS_DBG}" "LIBS_ALL=${LIBS_ALL_DBG}" | ||
| ) | ||
| vcpkg_install_nmake( | ||
| SOURCE_PATH "${SOURCE_PATH}" | ||
| OPTIONS_RELEASE | ||
| "INSTDIR=${INST_DIR}" | ||
| "LINK_FLAGS=${UWP_LINK_FLAGS}" | ||
| "LIBS_ALL=${PKGCONFIG_LIBS_RELEASE} ${UWP_LIBS}" | ||
| OPTIONS_DEBUG | ||
| "INSTDIR=${INST_DIR}\\debug" | ||
| "LINK_FLAGS=${UWP_LINK_FLAGS} /debug" | ||
| "LIBS_ALL=${PKGCONFIG_LIBS_DEBUG} ${UWP_LIBS}" | ||
| ) | ||
|
|
||
| vcpkg_install_nmake( | ||
| SOURCE_PATH ${SOURCE_PATH} | ||
| OPTIONS_RELEASE | ||
| ${OPTIONS_RELEASE} | ||
| OPTIONS_DEBUG | ||
| ${OPTIONS_DEBUG} | ||
| ) | ||
| if (VCPKG_LIBRARY_LINKAGE STREQUAL "static") | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") | ||
| file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/readosm_i.lib") | ||
| if(NOT DEFINED VCPKG_BUILD_TYPE) | ||
| file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/readosm_i.lib") | ||
| endif() | ||
| else() | ||
| file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/readosm.lib") | ||
| file(RENAME "${CURRENT_PACKAGES_DIR}/lib/readosm_i.lib" "${CURRENT_PACKAGES_DIR}/lib/readosm.lib") | ||
| if(NOT DEFINED VCPKG_BUILD_TYPE) | ||
| file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/readosm.lib") | ||
| file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/readosm_i.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/readosm.lib") | ||
| endif() | ||
| endif() | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
|
|
||
| if (VCPKG_LIBRARY_LINKAGE STREQUAL static) | ||
| file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) | ||
| file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/readosm_i.lib) | ||
| file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/readosm_i.lib) | ||
| else() | ||
| file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/readosm.lib) | ||
| file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/readosm.lib) | ||
| file(RENAME ${CURRENT_PACKAGES_DIR}/lib/readosm_i.lib ${CURRENT_PACKAGES_DIR}/lib/readosm.lib) | ||
| file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/readosm_i.lib ${CURRENT_PACKAGES_DIR}/debug/lib/readosm.lib) | ||
| endif() | ||
| file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) | ||
| elseif (VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX) # Build in UNIX | ||
| vcpkg_extract_source_archive_ex( | ||
| ARCHIVE ${ARCHIVE} | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| ) | ||
| set(infile "${SOURCE_PATH}/readosm.pc.in") | ||
| set(outfile "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/readosm.pc") | ||
| set(VERSION "${READOSM_VERSION_STR}") | ||
| set(exec_prefix [[${prefix}]]) | ||
| set(libdir [[${prefix}/lib]]) | ||
| set(includedir [[${prefix}/include]]) | ||
| list(JOIN pkg_config_modules " " requires_private) | ||
| configure_file("${infile}" "${outfile}" @ONLY) | ||
| if(NOT DEFINED VCPKG_BUILD_TYPE) | ||
| set(outfile "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/readosm.pc") | ||
| set(includedir [[${prefix}/../include]]) | ||
| configure_file("${infile}" "${outfile}" @ONLY) | ||
| endif() | ||
|
|
||
| vcpkg_configure_make( | ||
| SOURCE_PATH ${SOURCE_PATH} | ||
| AUTOCONFIG | ||
| OPTIONS | ||
| "LIBS=-lpthread -ldl -lstdc++ -lm" | ||
| ) | ||
| else() | ||
| x_vcpkg_pkgconfig_get_modules( | ||
| PREFIX PKGCONFIG | ||
| MODULES ${PKGCONFIG_MODULES} | ||
| LIBS | ||
| ) | ||
| vcpkg_configure_make( | ||
| SOURCE_PATH "${SOURCE_PATH}" | ||
| AUTOCONFIG | ||
| OPTIONS_RELEASE | ||
| "LIBS=${PKGCONFIG_LIBS_RELEASE} \$LIBS" | ||
| OPTIONS_DEBUG | ||
| "LIBS=${PKGCONFIG_LIBS_DEBUG} \$LIBS" | ||
| ) | ||
|
|
||
| vcpkg_install_make() | ||
| vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES m) | ||
| vcpkg_install_make() | ||
| endif() | ||
|
|
||
| vcpkg_fixup_pkgconfig() | ||
|
|
||
| # Handle copyright | ||
| file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) | ||
| file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) | ||
This file contains hidden or 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,11 +1,15 @@ | ||
| { | ||
| "name": "readosm", | ||
| "version-string": "1.1.0a", | ||
| "port-version": 1, | ||
| "port-version": 2, | ||
| "description": "ReadOSM is an open source library to extract valid data from within an Open Street Map input file (.osm or .osm.pbf)", | ||
| "homepage": "https://www.gaia-gis.it/gaia-sins/readosm-sources", | ||
| "dependencies": [ | ||
| "expat", | ||
| { | ||
| "name": "vcpkg-pkgconfig-get-modules", | ||
| "host": true | ||
| }, | ||
| "zlib" | ||
| ] | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.