Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions ports/shapelib/fix-usage.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b3b3b51..ea3f129 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,8 +73,8 @@ set(

# Export build information to help other projects link installed
# shapelib software. Only one of these signatures is required
-# for the export_shp name.
-install(EXPORT export_shp DESTINATION ${CMAKE_INSTALL_SHP_DATADIR})
+# for the shpConfig name.
+install(EXPORT shpConfig DESTINATION ${CMAKE_INSTALL_SHP_DATADIR})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please report this to the upstream plase.


# Initial boilerplate done, now build library and executables.

@@ -127,12 +127,17 @@ if(USE_RPATH)
endif(USE_RPATH)

install(TARGETS shp
- EXPORT export_shp
+ EXPORT shpConfig
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

+INSTALL(EXPORT shpConfig
+ DESTINATION share/shp
+)
+
+
# executables to be built and installed.
set(executables
shpcreate
4 changes: 2 additions & 2 deletions ports/shapelib/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "shapelib",
"version-string": "1.5.0",
"port-version": 2,
"version": "1.5.0",
"port-version": 3,
"description": "Shapefile C Library is simple C API for reading and writing ESRI Shapefiles",
"homepage": "https://download.osgeo.org/shapelib",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6414,7 +6414,7 @@
},
"shapelib": {
"baseline": "1.5.0",
"port-version": 2
"port-version": 3
},
"shiva": {
"baseline": "1.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/s-/shapelib.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "befbba83687abe4b10f1fb55ac5ccc344bd11084",
"version": "1.5.0",
"port-version": 3
},
{
"git-tree": "d70a93c1899b5607ca1894c66beacec5c1afec9c",
"version-string": "1.5.0",
Expand Down