View | Details | Raw Unified | Return to bug 221810 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/local/poudriere/ports/default/converters/osm2pgrouting/Makefile (+32 lines)
Line 0 Link Here
1
# Created by: Loïc Bartoletti <lbartoletti@tuxfamily.org>
2
# $FreeBSD$
3
4
PORTNAME=	osm2pgrouting
5
DISTVERSIONPREFIX=	v
6
DISTVERSION=	2.3.3
7
CATEGORIES=	converters databases geography
8
9
MAINTAINER=	lbartoletti@tuxfamily.org
10
COMMENT=	Import OSM data into pgRouting Database
11
12
LICENSE=	GPLv2
13
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
14
15
LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
16
		libexpat.so:textproc/expat2 \
17
		libpqxx.so:databases/postgresql-libpqxx
18
19
USE_GITHUB=	yes
20
USES=		cmake pgsql compiler:c++11-lang
21
WANT_PGSQL=	client
22
GH_ACCOUNT=	pgRouting
23
24
post-patch:
25
	@${REINPLACE_CMD} -e 's|/usr/share|${LOCALBASE}/share|g' \
26
		${WRKSRC}/CMakeLists.txt \
27
		${WRKSRC}/Readme.md \
28
		${WRKSRC}/src/utilities/prog_options.cpp
29
.include <bsd.port.mk>
30
native
31
FreeBSD=%H
32
text/plain
(-)/usr/local/poudriere/ports/default/converters/osm2pgrouting/distinfo (+6 lines)
Line 0 Link Here
1
TIMESTAMP = 1513628294
2
SHA256 (pgRouting-osm2pgrouting-v2.3.3_GH0.tar.gz) = ea58d3b2dd0164cf85dfa66044ce1ea2af3080bee2c16ad6f115aa84aa23ba0f
3
SIZE (pgRouting-osm2pgrouting-v2.3.3_GH0.tar.gz) = 181159
4
yes
5
native
6
text/plain
(-)/usr/local/poudriere/ports/default/converters/osm2pgrouting/files/patch-CMakeLists.txt (+35 lines)
Line 0 Link Here
1
--- CMakeLists.txt.orig	2017-12-18 15:44:24 UTC
2
+++ CMakeLists.txt
3
@@ -1,14 +1,14 @@
4
 PROJECT(osm2pgrouting)
5
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
6
 
7
-if ( ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR} )
8
-    message(FATAL_ERROR "In-source builds not allowed.
9
-    Please make a new directory (called a build directory) and run CMake from there.
10
-    You may need to remove CMakeCache.txt." )
11
-endif()
12
+#if ( ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR} )
13
+#    message(FATAL_ERROR "In-source builds not allowed.
14
+#    Please make a new directory (called a build directory) and run CMake from there.
15
+#    You may need to remove CMakeCache.txt." )
16
+#endif()
17
 
18
 LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
19
-SET(SHARE_DIR "/usr/share/osm2pgrouting")
20
+SET(SHARE_DIR "/usr/local/share/osm2pgrouting")
21
 
22
 FIND_PACKAGE(PostgreSQL REQUIRED)
23
 find_package(LibPQXX REQUIRED)
24
@@ -106,7 +106,7 @@ TARGET_LINK_LIBRARIES(osm2pgrouting
25
     )
26
 
27
 INSTALL(TARGETS osm2pgrouting
28
-    RUNTIME DESTINATION "/usr/bin"
29
+    RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin"
30
     )
31
 
32
 if(WIN32)
33
yes
34
native
35
text/plain
(-)/usr/local/poudriere/ports/default/converters/osm2pgrouting/files/patch-include_parser_ConfigurationParserCallback.h (+20 lines)
Line 0 Link Here
1
--- include/parser/ConfigurationParserCallback.h.orig	2017-12-18 15:44:24 UTC
2
+++ include/parser/ConfigurationParserCallback.h
3
@@ -22,12 +22,13 @@
4
 #ifndef SRC_CONFIGURATIONPARSERCALLBACK_H_
5
 #define SRC_CONFIGURATIONPARSERCALLBACK_H_
6
 #pragma once
7
-
8
+/*
9
 #if __GNUC__ > 4 || \
10
                     (__GNUC__ == 4 && (__GNUC_MINOR__ >= 6))
11
 #else
12
 #define nullptr NULL
13
 #endif
14
+*/
15
 
16
 #include <string.h>
17
 #include "XMLParser.h"
18
yes
19
native
20
text/plain
(-)/usr/local/poudriere/ports/default/converters/osm2pgrouting/files/patch-include_parser_OSMDocumentParserCallback.h (+21 lines)
Line 0 Link Here
1
--- include/parser/OSMDocumentParserCallback.h.orig	2017-12-18 15:44:24 UTC
2
+++ include/parser/OSMDocumentParserCallback.h
3
@@ -22,13 +22,13 @@
4
 #ifndef SRC_OSMDOCUMENTPARSERCALLBACK_H_
5
 #define SRC_OSMDOCUMENTPARSERCALLBACK_H_
6
 #pragma once
7
-
8
+/*
9
 #if __GNUC__ > 4 || \
10
             (__GNUC__ == 4 && (__GNUC_MINOR__ >= 6))
11
 #else
12
 #define nullptr NULL
13
 #endif
14
-
15
+*/
16
 
17
 #include <string.h>
18
 #include "./XMLParser.h"
19
yes
20
native
21
text/plain
(-)/usr/local/poudriere/ports/default/converters/osm2pgrouting/pkg-descr (+7 lines)
Line 0 Link Here
1
Easily import OpenStreetMap data into a pgRouting database using osm2pgrouting t
2
ool.
3
4
WWW: http://pgrouting.org/docs/tools/osm2pgrouting.html
5
yes
6
native
7
text/plain
(-)/usr/local/poudriere/ports/default/converters/osm2pgrouting/pkg-plist (+10 lines)
Line 0 Link Here
1
bin/osm2pgrouting
2
%%DATADIR%%/COPYING
3
%%DATADIR%%/Readme.md
4
%%DATADIR%%/mapconfig.xml
5
%%DATADIR%%/mapconfig_for_bicycles.xml
6
%%DATADIR%%/mapconfig_for_cars.xml
7
%%DATADIR%%/mapconfig_for_pedestrian.xml
8
yes
9
native
10
text/plain

Return to bug 221810