1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/converters/osm2pgrouting/Makefile
Loïc Bartoletti 2abcfc8e6b converters/osm2pgrouting: fix build after databases/postgresql-libpqxx update
- Uses c++17 and patch CMakeLists.txt (required by databases/postgresql-libpqxx)
- Replace disconnect to close (libpqxx API change) in src/osm_elements/osm2pgrouting.cpp
- While I'm here remove post-install part and update CMakeLists.

Reported by:	pkg-fallout
2020-08-22 06:50:15 +00:00

35 lines
753 B
Makefile

# $FreeBSD$
PORTNAME= osm2pgrouting
DISTVERSIONPREFIX= v
DISTVERSION= 2.3.6
PORTREVISION= 4
CATEGORIES= converters databases geography
MAINTAINER= lbartoletti@FreeBSD.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 compiler:c++17-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/${PORTNAME}/mapconfig.xml|' \
${WRKSRC}/src/utilities/prog_options.cpp \
${WRKSRC}/Readme.md
.include <bsd.port.mk>