Import of pkgsrc-2015Q2

This commit is contained in:
2016-01-21 23:41:46 +01:00
committed by sambuc
parent 4af1cdf7a9
commit f641581404
15409 changed files with 267784 additions and 121624 deletions
+3
View File
@@ -0,0 +1,3 @@
Converts OSM planet.osm data to a PostgreSQL / PostGIS database suitable
for specific applications like rendering into map tiles by Mapnik
or geocoding with Nominatim.
+38
View File
@@ -0,0 +1,38 @@
# $NetBSD: Makefile,v 1.1 2015/06/10 01:48:49 wiedi Exp $
DISTNAME= osm2pgsql-0.87.3
CATEGORIES= geography
MASTER_SITES= ${MASTER_SITE_GITHUB:=openstreetmap/}
GITHUB_TAG= ${PKGVERSION_NOREV}
MAINTAINER= wiedi@frubar.net
HOMEPAGE= https://github.com/openstreetmap/osm2pgsql/
COMMENT= OpenStreetMap data to PostgreSQL converter
LICENSE= gnu-gpl-v2
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake autoconf aclocal automake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
CONFIGURE_ARGS+= --with-bzip2=${BUILDLINK_PREFIX.bzip2}
CONFIGURE_ARGS+= --with-proj=${BUILDLINK_PREFIX.proj}
CONFIGURE_ARGS+= --with-protobuf-c=${BUILDLINK_PREFIX.protobuf-c}
CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-libs}
.include "../../mk/bsd.prefs.mk"
pre-configure:
cd ${WRKSRC} && aclocal && ./autogen.sh
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../geography/geos/buildlink3.mk"
.include "../../geography/proj/buildlink3.mk"
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/protobuf-c/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../databases/postgresql-postgis2/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+7
View File
@@ -0,0 +1,7 @@
@comment $NetBSD: PLIST,v 1.1 2015/06/10 01:48:49 wiedi Exp $
bin/nodecachefilereader
bin/osm2pgsql
man/man1/nodecachefilereader.1
man/man1/osm2pgsql.1
share/osm2pgsql/900913.sql
share/osm2pgsql/default.style
+7
View File
@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.1 2015/06/10 01:48:49 wiedi Exp $
SHA1 (osm2pgsql-0.87.3.tar.gz) = 977f1c6591a7603240dafd31ca67a18f01537ab8
RMD160 (osm2pgsql-0.87.3.tar.gz) = bacfb31b95611cd9c02e005bbc50749f1ac1905b
Size (osm2pgsql-0.87.3.tar.gz) = 2141464 bytes
SHA1 (patch-middle-pgsql.cpp) = 71146a00bdfd486ae0b7ed74566270b4671175b7
SHA1 (patch-node-persistent-cache.cpp) = db641099525c275af06f86377d30b7f67d1e273a
@@ -0,0 +1,17 @@
$NetBSD: patch-middle-pgsql.cpp,v 1.1 2015/06/10 01:48:49 wiedi Exp $
Need alloca.h on SunOS
--- middle-pgsql.cpp.orig 2015-04-30 04:15:07.000000000 +0000
+++ middle-pgsql.cpp
@@ -33,6 +33,10 @@ using namespace std;
#define alloca _alloca
#endif
+#if defined(__sun)
+#include <alloca.h>
+#endif
+
#include <libpq-fe.h>
#include "osmtypes.hpp"
@@ -0,0 +1,35 @@
$NetBSD: patch-node-persistent-cache.cpp,v 1.1 2015/06/10 01:48:49 wiedi Exp $
Use std namespace to find isnan
--- node-persistent-cache.cpp.orig 2015-04-30 04:15:07.000000000 +0000
+++ node-persistent-cache.cpp
@@ -450,7 +450,7 @@ int node_persistent_cache::set_append(os
block_id = load_block(block_offset);
#ifdef FIXED_POINT
- if (isnan(lat) && isnan(lon))
+ if (std::isnan(lat) && std::isnan(lon))
{
readNodeBlockCache[block_id].nodes[id & READ_NODE_BLOCK_MASK].lat =
INT_MIN;
@@ -512,8 +512,8 @@ int node_persistent_cache::get(struct os
return 0;
}
#else
- if ((isnan(readNodeBlockCache[block_id].nodes[id & READ_NODE_BLOCK_MASK].lat)) &&
- (isnan(readNodeBlockCache[block_id].nodes[id & READ_NODE_BLOCK_MASK].lon)))
+ if ((std::isnan(readNodeBlockCache[block_id].nodes[id & READ_NODE_BLOCK_MASK].lat)) &&
+ (std::isnan(readNodeBlockCache[block_id].nodes[id & READ_NODE_BLOCK_MASK].lon)))
{
return 1;
}
@@ -547,7 +547,7 @@ int node_persistent_cache::get_list(node
size_t wrtidx = 0;
for (size_t i = 0; i < nds.size(); i++) {
- if (isnan(out[i].lat) && isnan(out[i].lon)) {
+ if (std::isnan(out[i].lat) && std::isnan(out[i].lon)) {
if (get(&(out[wrtidx]), nds[i]) == 0)
wrtidx++;
} else {