git: 46ce1c479143 - main - astro/osmium-tool: Command line tool for working with OpenStreetMap data using libosmium
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 13 Aug 2023 09:41:33 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=46ce1c4791435ffd562202ff5dc10ca4b04b612c
commit 46ce1c4791435ffd562202ff5dc10ca4b04b612c
Author: Ian Wagner <ianthetechie@gmail.com>
AuthorDate: 2023-02-17 08:51:41 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-08-13 09:32:56 +0000
astro/osmium-tool: Command line tool for working with OpenStreetMap data using libosmium
Osmium Tool is a multipurpose command line tool for working with OpenStreetMap
data based on the Osmium library.
With the Osmium Tool you can:
* Get information about an OSM file
* Show the differences between OSM files
* Convert OSM files from one format into another (supports XML, PBF, and more)
* Merge and apply change files to an OSM file (with or without history)
* Create OSM change files from OSM data files
* Extract data from OSM history files for a given point in time or a time range
* Sort OSM files
* Create geographical extracts from OSM files
* Filter OSM files by tags
* Filter changesets by many different criteria
* And much more...
WWW: https://osmcode.org/osmium-tool/
PR: 244012
---
astro/Makefile | 1 +
astro/osmium-tool/Makefile | 39 +++++++++++++++++++++++++++++++++++++++
astro/osmium-tool/distinfo | 3 +++
astro/osmium-tool/pkg-descr | 16 ++++++++++++++++
astro/osmium-tool/pkg-plist | 28 ++++++++++++++++++++++++++++
5 files changed, 87 insertions(+)
diff --git a/astro/Makefile b/astro/Makefile
index 8cc9e700b354..7a988ebb3946 100644
--- a/astro/Makefile
+++ b/astro/Makefile
@@ -43,6 +43,7 @@
SUBDIR += opencpn
SUBDIR += openuniverse
SUBDIR += oskar
+ SUBDIR += osmium-tool
SUBDIR += osmosis
SUBDIR += p5-Astro
SUBDIR += p5-Astro-ADS
diff --git a/astro/osmium-tool/Makefile b/astro/osmium-tool/Makefile
new file mode 100644
index 000000000000..13ee118bfe11
--- /dev/null
+++ b/astro/osmium-tool/Makefile
@@ -0,0 +1,39 @@
+PORTNAME= osmium-tool
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.15.0
+CATEGORIES= astro geography
+
+MAINTAINER= ianthetechie@gmail.com
+COMMENT= Command line tool for working with OpenStreetMap data using libosmium
+WWW= https://osmcode.org/osmium-tool/
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS= ${LOCALBASE}/include/osmium/version.hpp:astro/libosmium \
+ ${LOCALBASE}/include/protozero/version.hpp:devel/protozero \
+ ${LOCALBASE}/include/rapidjson/stringbuffer.h:devel/rapidjson \
+ hs-pandoc>0:textproc/hs-pandoc
+LIB_DEPENDS= libboost_program_options.so:devel/boost-libs \
+ libbz2.so:archivers/bzip2 \
+ libexpat.so:textproc/expat2
+
+USES= cmake:testing
+USE_GITHUB= yes
+GH_ACCOUNT= osmcode
+
+PORTEXAMPLES= extract-example-config/*
+OPTIONS_DEFINE= EXAMPLES LZ4
+OPTIONS_DEFAULT= EXAMPLES LZ4
+
+LZ4_CMAKE_ON= -DWITH_LZ4=ON
+LZ4_CMAKE_OFF= -DWITH_LZ4=OFF
+
+LZ4_DESC= Build with support for LZ4 compression of PBF files
+LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
+
+post-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR})
+
+.include <bsd.port.mk>
diff --git a/astro/osmium-tool/distinfo b/astro/osmium-tool/distinfo
new file mode 100644
index 000000000000..ee3391e41923
--- /dev/null
+++ b/astro/osmium-tool/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1674959777
+SHA256 (osmcode-osmium-tool-v1.15.0_GH0.tar.gz) = 0b3be2f07d60dfb93f65d6a9f1af1fc9cf6ef68e5a460997d841c93079c3377b
+SIZE (osmcode-osmium-tool-v1.15.0_GH0.tar.gz) = 490366
diff --git a/astro/osmium-tool/pkg-descr b/astro/osmium-tool/pkg-descr
new file mode 100644
index 000000000000..f5c1888cadce
--- /dev/null
+++ b/astro/osmium-tool/pkg-descr
@@ -0,0 +1,16 @@
+Osmium Tool is a multipurpose command line tool for working with OpenStreetMap
+data based on the Osmium library.
+
+With the Osmium Tool you can:
+
+* Get information about an OSM file
+* Show the differences between OSM files
+* Convert OSM files from one format into another (supports XML, PBF, and more)
+* Merge and apply change files to an OSM file (with or without history)
+* Create OSM change files from OSM data files
+* Extract data from OSM history files for a given point in time or a time range
+* Sort OSM files
+* Create geographical extracts from OSM files
+* Filter OSM files by tags
+* Filter changesets by many different criteria
+* And much more...
diff --git a/astro/osmium-tool/pkg-plist b/astro/osmium-tool/pkg-plist
new file mode 100644
index 000000000000..d86c9ce73078
--- /dev/null
+++ b/astro/osmium-tool/pkg-plist
@@ -0,0 +1,28 @@
+bin/osmium
+share/man/man1/osmium-add-locations-to-ways.1.gz
+share/man/man1/osmium-apply-changes.1.gz
+share/man/man1/osmium-cat.1.gz
+share/man/man1/osmium-changeset-filter.1.gz
+share/man/man1/osmium-check-refs.1.gz
+share/man/man1/osmium-create-locations-index.1.gz
+share/man/man1/osmium-derive-changes.1.gz
+share/man/man1/osmium-diff.1.gz
+share/man/man1/osmium-export.1.gz
+share/man/man1/osmium-extract.1.gz
+share/man/man1/osmium-fileinfo.1.gz
+share/man/man1/osmium-getid.1.gz
+share/man/man1/osmium-getparents.1.gz
+share/man/man1/osmium-merge-changes.1.gz
+share/man/man1/osmium-merge.1.gz
+share/man/man1/osmium-query-locations-index.1.gz
+share/man/man1/osmium-removeid.1.gz
+share/man/man1/osmium-renumber.1.gz
+share/man/man1/osmium-show.1.gz
+share/man/man1/osmium-sort.1.gz
+share/man/man1/osmium-tags-count.1.gz
+share/man/man1/osmium-tags-filter.1.gz
+share/man/man1/osmium-time-filter.1.gz
+share/man/man1/osmium.1.gz
+share/man/man5/osmium-file-formats.5.gz
+share/man/man5/osmium-index-types.5.gz
+share/man/man5/osmium-output-headers.5.gz