aboutsummaryrefslogtreecommitdiffstats
path: root/converters/osm2pgsql/Makefile
blob: e8d0ce225fcf878a6589cbee9681b18bdb0517e1 (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
39
40
41
42
43
44
45
46
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=   osm2pgsql
PORTVERSION=    0.92.1
PORTREVISION=   2
CATEGORIES= converters geography

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Convert OSM XML data to PostgreSQL database

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libproj.so:graphics/proj \
        libgeos35.so:graphics/geos35 \
        libboost_system.so:devel/boost-libs \
        libexpat.so:textproc/expat2

BROKEN_powerpc64=   fails to compile: node-ram-cache.hpp: cstdint: No such file or directory

USE_GITHUB= yes
GH_ACCOUNT= openstreetmap

USES=       cmake:outsource lua:53 pgsql

PLIST_FILES=    bin/osm2pgsql \
        man/man1/osm2pgsql.1.gz

PORTDOCS=   AUTHORS ChangeLog README.md
PORTDATA=   *

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|include <geos|&35/geos|' \
        ${WRKSRC}/contrib/libosmium/osmium/geom/geos.hpp \
        ${WRKSRC}/geometry-builder.cpp

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor

.include <bsd.port.mk>