diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2020-09-12 12:07:05 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2020-09-12 12:07:05 +0000 |
commit | c32ae064bdefea587fa24db6d4f5d767eefddea9 (patch) | |
tree | 422f3444fcae074b9a721224b8aaf46f32cf0da7 /graphics/s2 | |
parent | 0562c546655364e6a505d4cb4fcc5ed4ac1efc87 (diff) | |
download | ports-c32ae064bdefea587fa24db6d4f5d767eefddea9.tar.gz ports-c32ae064bdefea587fa24db6d4f5d767eefddea9.zip |
Add s2 0.9.0
S2 Geometry Library is a package for manipulating geometric shapes. Unlike many
geometry libraries, S2 is primarily designed to work with spherical geometry,
i.e., shapes drawn on a sphere rather than on a planar 2D map. This makes it
especially suitable for working with geographic data.
WWW: https://s2geometry.io/
WWW: https://github.com/google/s2geometry
Notes
Notes:
svn path=/head/; revision=548311
Diffstat (limited to 'graphics/s2')
-rw-r--r-- | graphics/s2/Makefile | 42 | ||||
-rw-r--r-- | graphics/s2/distinfo | 3 | ||||
-rw-r--r-- | graphics/s2/pkg-descr | 7 | ||||
-rw-r--r-- | graphics/s2/pkg-plist | 177 |
4 files changed, 229 insertions, 0 deletions
diff --git a/graphics/s2/Makefile b/graphics/s2/Makefile new file mode 100644 index 000000000000..5b8d316e062d --- /dev/null +++ b/graphics/s2/Makefile @@ -0,0 +1,42 @@ +# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= s2 +PORTVERSION= 0.9.0 +DISTVERSIONPREFIX= v +CATEGORIES= graphics + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= S2 Geometry Library + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libgtest.so:devel/googletest + +USES= cmake compiler:c++11-lang localbase ssl + +CMAKE_ON= BUILD_SHARED_LIBS + +GH_ACCOUNT= google +GH_PROJECT= s2geometry +USE_GITHUB= yes + +OPTIONS_DEFINE= EXAMPLES GFLAGS GLOG +OPTIONS_DEFAULT=GFLAGS GLOG +#OPTIONS_SUB= yes +GFLAGS_DESC= Use gflags to change command line flags +GLOG_DESC= Use glog for logging + +EXAMPLES_CMAKE_BOOL= BUILD_EXAMPLES +GFLAGS_CMAKE_BOOL= WITH_GFLAGS +GFLAGS_LIB_DEPENDS= libgflags.so:devel/gflags +GLOG_CMAKE_BOOL= WITH_GLOG +GLOG_LIB_DEPENDS= libglog.so:devel/glog + +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/examples/point_index ${INSTALL_WRKSRC}/examples/term_index ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/examples/point_index.cc ${WRKSRC}/doc/examples/term_index.cc ${STAGEDIR}${EXAMPLESDIR} + +.include <bsd.port.mk> diff --git a/graphics/s2/distinfo b/graphics/s2/distinfo new file mode 100644 index 000000000000..5a5d086bbe8b --- /dev/null +++ b/graphics/s2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1599729119 +SHA256 (google-s2geometry-v0.9.0_GH0.tar.gz) = 54c09b653f68929e8929bffa60ea568e26f3b4a51e1b1734f5c3c037f1d89062 +SIZE (google-s2geometry-v0.9.0_GH0.tar.gz) = 1124554 diff --git a/graphics/s2/pkg-descr b/graphics/s2/pkg-descr new file mode 100644 index 000000000000..4746c0e69dd8 --- /dev/null +++ b/graphics/s2/pkg-descr @@ -0,0 +1,7 @@ +S2 Geometry Library is a package for manipulating geometric shapes. Unlike many +geometry libraries, S2 is primarily designed to work with spherical geometry, +i.e., shapes drawn on a sphere rather than on a planar 2D map. This makes it +especially suitable for working with geographic data. + +WWW: https://s2geometry.io/ +WWW: https://github.com/google/s2geometry diff --git a/graphics/s2/pkg-plist b/graphics/s2/pkg-plist new file mode 100644 index 000000000000..f4a3d7a0b732 --- /dev/null +++ b/graphics/s2/pkg-plist @@ -0,0 +1,177 @@ +include/s2/_fp_contract_off.h +include/s2/base/casts.h +include/s2/base/commandlineflags.h +include/s2/base/integral_types.h +include/s2/base/log_severity.h +include/s2/base/logging.h +include/s2/base/mutex.h +include/s2/base/port.h +include/s2/base/spinlock.h +include/s2/encoded_s2cell_id_vector.h +include/s2/encoded_s2point_vector.h +include/s2/encoded_s2shape_index.h +include/s2/encoded_string_vector.h +include/s2/encoded_uint_vector.h +include/s2/id_set_lexicon.h +include/s2/mutable_s2shape_index.h +include/s2/r1interval.h +include/s2/r2.h +include/s2/r2rect.h +include/s2/s1angle.h +include/s2/s1chord_angle.h +include/s2/s1interval.h +include/s2/s2boolean_operation.h +include/s2/s2builder.h +include/s2/s2builder_graph.h +include/s2/s2builder_layer.h +include/s2/s2builderutil_closed_set_normalizer.h +include/s2/s2builderutil_find_polygon_degeneracies.h +include/s2/s2builderutil_graph_shape.h +include/s2/s2builderutil_lax_polygon_layer.h +include/s2/s2builderutil_s2point_vector_layer.h +include/s2/s2builderutil_s2polygon_layer.h +include/s2/s2builderutil_s2polyline_layer.h +include/s2/s2builderutil_s2polyline_vector_layer.h +include/s2/s2builderutil_snap_functions.h +include/s2/s2builderutil_testing.h +include/s2/s2cap.h +include/s2/s2cell.h +include/s2/s2cell_id.h +include/s2/s2cell_index.h +include/s2/s2cell_union.h +include/s2/s2centroids.h +include/s2/s2closest_cell_query.h +include/s2/s2closest_cell_query_base.h +include/s2/s2closest_edge_query.h +include/s2/s2closest_edge_query_base.h +include/s2/s2closest_point_query.h +include/s2/s2closest_point_query_base.h +include/s2/s2contains_point_query.h +include/s2/s2contains_vertex_query.h +include/s2/s2convex_hull_query.h +include/s2/s2coords.h +include/s2/s2coords_internal.h +include/s2/s2crossing_edge_query.h +include/s2/s2debug.h +include/s2/s2distance_target.h +include/s2/s2earth.h +include/s2/s2edge_clipping.h +include/s2/s2edge_crosser.h +include/s2/s2edge_crossings.h +include/s2/s2edge_distances.h +include/s2/s2edge_tessellator.h +include/s2/s2edge_vector_shape.h +include/s2/s2error.h +include/s2/s2furthest_edge_query.h +include/s2/s2latlng.h +include/s2/s2latlng_rect.h +include/s2/s2latlng_rect_bounder.h +include/s2/s2lax_loop_shape.h +include/s2/s2lax_polygon_shape.h +include/s2/s2lax_polyline_shape.h +include/s2/s2loop.h +include/s2/s2loop_measures.h +include/s2/s2max_distance_targets.h +include/s2/s2measures.h +include/s2/s2metrics.h +include/s2/s2min_distance_targets.h +include/s2/s2padded_cell.h +include/s2/s2point.h +include/s2/s2point_compression.h +include/s2/s2point_index.h +include/s2/s2point_region.h +include/s2/s2point_span.h +include/s2/s2point_vector_shape.h +include/s2/s2pointutil.h +include/s2/s2polygon.h +include/s2/s2polyline.h +include/s2/s2polyline_alignment.h +include/s2/s2polyline_measures.h +include/s2/s2polyline_simplifier.h +include/s2/s2predicates.h +include/s2/s2projections.h +include/s2/s2r2rect.h +include/s2/s2region.h +include/s2/s2region_coverer.h +include/s2/s2region_intersection.h +include/s2/s2region_term_indexer.h +include/s2/s2region_union.h +include/s2/s2shape.h +include/s2/s2shape_index.h +include/s2/s2shape_index_buffered_region.h +include/s2/s2shape_index_region.h +include/s2/s2shape_measures.h +include/s2/s2shapeutil_build_polygon_boundaries.h +include/s2/s2shapeutil_coding.h +include/s2/s2shapeutil_contains_brute_force.h +include/s2/s2shapeutil_count_edges.h +include/s2/s2shapeutil_edge_iterator.h +include/s2/s2shapeutil_get_reference_point.h +include/s2/s2shapeutil_range_iterator.h +include/s2/s2shapeutil_shape_edge.h +include/s2/s2shapeutil_shape_edge_id.h +include/s2/s2shapeutil_testing.h +include/s2/s2shapeutil_visit_crossing_edge_pairs.h +include/s2/s2testing.h +include/s2/s2text_format.h +include/s2/s2wedge_relations.h +include/s2/sequence_lexicon.h +include/s2/strings/ostringstream.h +include/s2/third_party/absl/algorithm/algorithm.h +include/s2/third_party/absl/base/attributes.h +include/s2/third_party/absl/base/casts.h +include/s2/third_party/absl/base/config.h +include/s2/third_party/absl/base/dynamic_annotations.h +include/s2/third_party/absl/base/internal/identity.h +include/s2/third_party/absl/base/internal/inline_variable.h +include/s2/third_party/absl/base/internal/invoke.h +include/s2/third_party/absl/base/internal/throw_delegate.h +include/s2/third_party/absl/base/internal/unaligned_access.h +include/s2/third_party/absl/base/log_severity.h +include/s2/third_party/absl/base/macros.h +include/s2/third_party/absl/base/optimization.h +include/s2/third_party/absl/base/policy_checks.h +include/s2/third_party/absl/base/port.h +include/s2/third_party/absl/base/thread_annotations.h +include/s2/third_party/absl/container/inlined_vector.h +include/s2/third_party/absl/container/internal/compressed_tuple.h +include/s2/third_party/absl/container/internal/container_memory.h +include/s2/third_party/absl/container/internal/layout.h +include/s2/third_party/absl/memory/memory.h +include/s2/third_party/absl/meta/type_traits.h +include/s2/third_party/absl/numeric/int128.h +include/s2/third_party/absl/numeric/int128_have_intrinsic.inc +include/s2/third_party/absl/numeric/int128_no_intrinsic.inc +include/s2/third_party/absl/strings/numbers.h +include/s2/third_party/absl/strings/str_cat.h +include/s2/third_party/absl/strings/string_view.h +include/s2/third_party/absl/types/span.h +include/s2/third_party/absl/utility/utility.h +include/s2/util/bits/bits.h +include/s2/util/coding/coder.h +include/s2/util/coding/varint.h +include/s2/util/endian/endian.h +include/s2/util/gtl/btree.h +include/s2/util/gtl/btree_container.h +include/s2/util/gtl/btree_map.h +include/s2/util/gtl/btree_set.h +include/s2/util/gtl/compact_array.h +include/s2/util/gtl/container_logging.h +include/s2/util/gtl/dense_hash_set.h +include/s2/util/gtl/densehashtable.h +include/s2/util/gtl/hashtable_common.h +include/s2/util/gtl/layout.h +include/s2/util/hash/mix.h +include/s2/util/math/mathutil.h +include/s2/util/math/matrix3x3.h +include/s2/util/math/vector.h +include/s2/util/math/vector3_hash.h +include/s2/util/units/length-units.h +include/s2/util/units/physical-units.h +include/s2/value_lexicon.h +lib/libs2.so +lib/libs2testing.a +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/point_index +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/point_index.cc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/term_index +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/term_index.cc |