Index: head/converters/Makefile =================================================================== --- head/converters/Makefile (revision 459137) +++ head/converters/Makefile (revision 459138) @@ -1,188 +1,189 @@ # $FreeBSD$ # COMMENT = Character code converters SUBDIR += R-cran-RJSONIO SUBDIR += R-cran-base64enc SUBDIR += R-cran-jsonlite SUBDIR += R-cran-rjson SUBDIR += aish SUBDIR += ascii2binary SUBDIR += asr10 SUBDIR += base64 SUBDIR += bibtexconv SUBDIR += bsdconv SUBDIR += btoa SUBDIR += chmview SUBDIR += cl-babel SUBDIR += cl-babel-sbcl SUBDIR += cmios9 SUBDIR += cocot SUBDIR += convmv SUBDIR += dosunix SUBDIR += drg2sbg SUBDIR += dumpasn1 SUBDIR += enca SUBDIR += erlang-base64url SUBDIR += fconv SUBDIR += fix-mime-charset SUBDIR += fondu SUBDIR += fpc-iconvenc SUBDIR += fribidi SUBDIR += gbase SUBDIR += gbsdconv SUBDIR += hs-aeson SUBDIR += hs-aeson-compat SUBDIR += hs-aeson-pretty SUBDIR += hs-dataenc SUBDIR += hs-json SUBDIR += hs-sandi SUBDIR += htx SUBDIR += i18ntools SUBDIR += ical2html SUBDIR += iconv SUBDIR += iconv-extra SUBDIR += iconv-rfc1345 SUBDIR += ish SUBDIR += libb64 SUBDIR += libiconv SUBDIR += libticonv SUBDIR += libutf-8 SUBDIR += lua-iconv SUBDIR += lua-json SUBDIR += mimelib SUBDIR += mmencode SUBDIR += mpack SUBDIR += nomyso SUBDIR += o3read SUBDIR += ocaml-base64 SUBDIR += ocaml-jsonm SUBDIR += osm2mp + SUBDIR += osm2pgrouting SUBDIR += osm2pgsql SUBDIR += p5-Bencode SUBDIR += p5-Boulder SUBDIR += p5-Convert-ASCII-Armour SUBDIR += p5-Convert-ASN1 SUBDIR += p5-Convert-BER SUBDIR += p5-Convert-Base32 SUBDIR += p5-Convert-Bencode SUBDIR += p5-Convert-Bencode_XS SUBDIR += p5-Convert-BinHex SUBDIR += p5-Convert-Binary-C SUBDIR += p5-Convert-IBM390 SUBDIR += p5-Convert-Moji SUBDIR += p5-Convert-Morse SUBDIR += p5-Convert-NLS_DATE_FORMAT SUBDIR += p5-Convert-PEM SUBDIR += p5-Convert-Recode SUBDIR += p5-Convert-TNEF SUBDIR += p5-Convert-UU SUBDIR += p5-Convert-UUlib SUBDIR += p5-Cpanel-JSON-XS SUBDIR += p5-Cstools SUBDIR += p5-Data-AMF SUBDIR += p5-Encode SUBDIR += p5-Encode-Detect SUBDIR += p5-Encode-Detect-CJK SUBDIR += p5-Encode-DoubleEncodedUTF8 SUBDIR += p5-Encode-IMAPUTF7 SUBDIR += p5-Encode-JIS2K SUBDIR += p5-Encode-Locale SUBDIR += p5-Encode-Punycode SUBDIR += p5-Encode-compat SUBDIR += p5-Encoding-BER SUBDIR += p5-Encoding-FixLatin SUBDIR += p5-Format-Human-Bytes SUBDIR += p5-JSON SUBDIR += p5-JSON-Any SUBDIR += p5-JSON-DWIW SUBDIR += p5-JSON-MaybeXS SUBDIR += p5-JSON-PP SUBDIR += p5-JSON-Tiny SUBDIR += p5-JSON-XS SUBDIR += p5-JSON-XS-VersionOneAndTwo SUBDIR += p5-JSON1 SUBDIR += p5-LaTeXML SUBDIR += p5-MIME-Base32 SUBDIR += p5-MIME-Base64 SUBDIR += p5-MIME-Base64-URLSafe SUBDIR += p5-Net-IDN-Nameprep SUBDIR += p5-Number-Nary SUBDIR += p5-Number-RecordLocator SUBDIR += p5-PerlIO-via-Unidecode SUBDIR += p5-Sereal SUBDIR += p5-Sereal-Decoder SUBDIR += p5-Sereal-Encoder SUBDIR += p5-Storable-AMF SUBDIR += p5-String-Multibyte SUBDIR += p5-Text-Bidi SUBDIR += p5-Text-Iconv SUBDIR += p5-Text-Unidecode SUBDIR += p5-URI-UTF8-Punycode SUBDIR += p5-Unicode-IMAPUtf7 SUBDIR += p5-Unicode-Map SUBDIR += p5-Unicode-Map8 SUBDIR += p5-Unicode-MapUTF8 SUBDIR += p5-Unicode-RecursiveDowngrade SUBDIR += p5-Unicode-String SUBDIR += p5-Unicode-Stringprep SUBDIR += p5-Unicode-UTF8simple SUBDIR += p5-WAP-wbxml SUBDIR += p5-XML-WBXML SUBDIR += p5-bsdconv SUBDIR += p5-plutil SUBDIR += pdf2djvu SUBDIR += pear-Services_JSON SUBDIR += pecl-fribidi SUBDIR += pecl-igbinary SUBDIR += php5-bsdconv SUBDIR += php56-iconv SUBDIR += php56-mbstring SUBDIR += php56-recode SUBDIR += php70-iconv SUBDIR += php70-mbstring SUBDIR += php70-recode SUBDIR += php71-iconv SUBDIR += php71-mbstring SUBDIR += php71-recode SUBDIR += php72-iconv SUBDIR += php72-mbstring SUBDIR += php72-recode SUBDIR += psiconv SUBDIR += py-bcode SUBDIR += py-bencode.py SUBDIR += py-bencoder SUBDIR += py-better-bencode SUBDIR += py-bsdconv SUBDIR += py-iconv SUBDIR += py-rencode SUBDIR += py-unidecode SUBDIR += py-zfec SUBDIR += rcctools SUBDIR += recode SUBDIR += rubygem-base32 SUBDIR += rubygem-bsdconv SUBDIR += rubygem-json-ld SUBDIR += rubygem-json-ld-preloaded SUBDIR += rubygem-po_to_json SUBDIR += rubygem-url_safe_base64 SUBDIR += rubygem-xdr SUBDIR += shftool SUBDIR += showkey SUBDIR += ta2as SUBDIR += tnef SUBDIR += trans SUBDIR += tuc SUBDIR += unix2dos SUBDIR += uudeview SUBDIR += uudx SUBDIR += uulib SUBDIR += vda2fbd SUBDIR += wkhtmltopdf SUBDIR += xdeview SUBDIR += xml2c SUBDIR += ytnef SUBDIR += zbase32 .include Index: head/converters/osm2pgrouting/Makefile =================================================================== --- head/converters/osm2pgrouting/Makefile (nonexistent) +++ head/converters/osm2pgrouting/Makefile (revision 459138) @@ -0,0 +1,37 @@ +# $FreeBSD$ + +PORTNAME= osm2pgrouting +DISTVERSIONPREFIX= v +DISTVERSION= 2.3.3 +CATEGORIES= converters databases geography + +MAINTAINER= lbartoletti@tuxfamily.org +COMMENT= Import OSM data into pgRouting database + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +LIB_DEPENDS= libboost_system.so:devel/boost-libs \ + libexpat.so:textproc/expat2 \ + libpqxx.so:databases/postgresql-libpqxx + +USES= cmake:outsource compiler:c++11-lang pgsql +USE_GITHUB= yes +GH_ACCOUNT= pgRouting +WANT_PGSQL= client + +OPTIONS_DEFINE= DOCS + +PORTDOCS= Readme.md + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/share/osm2pgrouting/mapconfig.xml|${PREFIX}/etc/mapconfig.xml|' \ + ${WRKSRC}/src/utilities/prog_options.cpp \ + ${WRKSRC}/Readme.md + +post-install: + @for cf in ${STAGEDIR}${PREFIX}/etc/*.xml; do \ + ${MV} $${cf} $${cf}.sample; \ + done + +.include Property changes on: head/converters/osm2pgrouting/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/converters/osm2pgrouting/distinfo =================================================================== --- head/converters/osm2pgrouting/distinfo (nonexistent) +++ head/converters/osm2pgrouting/distinfo (revision 459138) @@ -0,0 +1,3 @@ +TIMESTAMP = 1513628294 +SHA256 (pgRouting-osm2pgrouting-v2.3.3_GH0.tar.gz) = ea58d3b2dd0164cf85dfa66044ce1ea2af3080bee2c16ad6f115aa84aa23ba0f +SIZE (pgRouting-osm2pgrouting-v2.3.3_GH0.tar.gz) = 181159 Property changes on: head/converters/osm2pgrouting/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/converters/osm2pgrouting/files/patch-CMakeLists.txt =================================================================== --- head/converters/osm2pgrouting/files/patch-CMakeLists.txt (nonexistent) +++ head/converters/osm2pgrouting/files/patch-CMakeLists.txt (revision 459138) @@ -0,0 +1,29 @@ +--- CMakeLists.txt.orig 2017-12-18 15:44:24 UTC ++++ CMakeLists.txt +@@ -106,7 +106,7 @@ TARGET_LINK_LIBRARIES(osm2pgrouting + ) + + INSTALL(TARGETS osm2pgrouting +- RUNTIME DESTINATION "/usr/bin" ++ RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" + ) + + if(WIN32) +@@ -114,13 +114,15 @@ if(WIN32) + endif() + + INSTALL(FILES +- "${CMAKE_SOURCE_DIR}/COPYING" + "${CMAKE_SOURCE_DIR}/Readme.md" ++ DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/osm2pgrouting") ++ ++INSTALL(FILES + "${CMAKE_SOURCE_DIR}/mapconfig.xml" + "${CMAKE_SOURCE_DIR}/mapconfig_for_cars.xml" + "${CMAKE_SOURCE_DIR}/mapconfig_for_bicycles.xml" + "${CMAKE_SOURCE_DIR}/mapconfig_for_pedestrian.xml" +- DESTINATION "${SHARE_DIR}") ++ DESTINATION "${CMAKE_INSTALL_PREFIX}/etc") + + + #INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} ) Property changes on: head/converters/osm2pgrouting/files/patch-CMakeLists.txt ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/converters/osm2pgrouting/files/patch-include_parser_ConfigurationParserCallback.h =================================================================== --- head/converters/osm2pgrouting/files/patch-include_parser_ConfigurationParserCallback.h (nonexistent) +++ head/converters/osm2pgrouting/files/patch-include_parser_ConfigurationParserCallback.h (revision 459138) @@ -0,0 +1,17 @@ +--- include/parser/ConfigurationParserCallback.h.orig 2017-12-18 15:44:24 UTC ++++ include/parser/ConfigurationParserCallback.h +@@ -22,12 +22,13 @@ + #ifndef SRC_CONFIGURATIONPARSERCALLBACK_H_ + #define SRC_CONFIGURATIONPARSERCALLBACK_H_ + #pragma once +- ++/* + #if __GNUC__ > 4 || \ + (__GNUC__ == 4 && (__GNUC_MINOR__ >= 6)) + #else + #define nullptr NULL + #endif ++*/ + + #include + #include "XMLParser.h" Property changes on: head/converters/osm2pgrouting/files/patch-include_parser_ConfigurationParserCallback.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/converters/osm2pgrouting/files/patch-include_parser_OSMDocumentParserCallback.h =================================================================== --- head/converters/osm2pgrouting/files/patch-include_parser_OSMDocumentParserCallback.h (nonexistent) +++ head/converters/osm2pgrouting/files/patch-include_parser_OSMDocumentParserCallback.h (revision 459138) @@ -0,0 +1,18 @@ +--- include/parser/OSMDocumentParserCallback.h.orig 2017-12-18 15:44:24 UTC ++++ include/parser/OSMDocumentParserCallback.h +@@ -22,13 +22,13 @@ + #ifndef SRC_OSMDOCUMENTPARSERCALLBACK_H_ + #define SRC_OSMDOCUMENTPARSERCALLBACK_H_ + #pragma once +- ++/* + #if __GNUC__ > 4 || \ + (__GNUC__ == 4 && (__GNUC_MINOR__ >= 6)) + #else + #define nullptr NULL + #endif +- ++*/ + + #include + #include "./XMLParser.h" Property changes on: head/converters/osm2pgrouting/files/patch-include_parser_OSMDocumentParserCallback.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/converters/osm2pgrouting/pkg-descr =================================================================== --- head/converters/osm2pgrouting/pkg-descr (nonexistent) +++ head/converters/osm2pgrouting/pkg-descr (revision 459138) @@ -0,0 +1,10 @@ +osm2pgrouting tool makes it easy to import OpenStreetMap data and +use it with pgRouting. It creates topology automatically and creates +tables for feature types and road classes. + +Features: +* Uses XML configuration file to select road types and classes to import. +* Creates types and classes tables, which can help to create sophisticated + cost functions. + +WWW: http://pgrouting.org/docs/tools/osm2pgrouting.html Property changes on: head/converters/osm2pgrouting/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/converters/osm2pgrouting/pkg-plist =================================================================== --- head/converters/osm2pgrouting/pkg-plist (nonexistent) +++ head/converters/osm2pgrouting/pkg-plist (revision 459138) @@ -0,0 +1,5 @@ +bin/osm2pgrouting +@sample etc/mapconfig.xml.sample +@sample etc/mapconfig_for_bicycles.xml.sample +@sample etc/mapconfig_for_cars.xml.sample +@sample etc/mapconfig_for_pedestrian.xml.sample Property changes on: head/converters/osm2pgrouting/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property