aboutsummaryrefslogtreecommitdiffstats
path: root/converters/osm2pgsql/Makefile
blob: 9efe48bab04d12fc722f6f10ce5196efd9f19449 (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
47
48
49
50
51
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

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

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

LICENSE=    GPLv2

LIB_DEPENDS=    libproj.so:${PORTSDIR}/graphics/proj \
        libgeos.so:${PORTSDIR}/graphics/geos \
        libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c

USE_GITHUB= yes
GH_ACCOUNT= openstreetmap
GH_COMMIT=  237b125

USES=       libtool
GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  autoconf automake aclocal autoheader libtoolize
CONFIGURE_ARGS= LUA="${LUA_CMD}" \
        LUA_INCLUDE="-I${LUA_INCDIR}" \
        LUA_LIB="-L${LUA_LIBDIR} -llua-${LUA_VER}"
USES=       gmake lua pgsql tar:bzip2
USE_GNOME=  libxml2

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

PORTDOCS=   ChangeLog README AUTHORS TODO
PORTDATA=   *

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/m4/*.m4

run-autotools:
    cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ./autogen.sh

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

.include <bsd.port.mk>