aboutsummaryrefslogtreecommitdiff
path: root/converters/osm2pgrouting/Makefile
blob: 425a1f7d928b6e74789593a5fb053ba62d0311cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $FreeBSD$

PORTNAME=	osm2pgrouting
DISTVERSIONPREFIX=	v
DISTVERSION=	2.3.3
PORTREVISION=	5
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 <bsd.port.mk>