aboutsummaryrefslogtreecommitdiffstats
path: root/converters/osm2pgsql/Makefile
blob: dcac05e7fe0974cfdcdd9851d8660a6ae24d6925 (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
# New ports collection makefile for:    osm2pgsql
# Date created:     29 Jun 2011
# Whom:         Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   osm2pgsql
PORTVERSION=    r27612
CATEGORIES= converters geography
MASTER_SITES=   http://mirror.amdmi3.ru/distfiles/

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

LIB_DEPENDS=    proj.6:${PORTSDIR}/graphics/proj \
        geos.0:${PORTSDIR}/graphics/geos \
        protobuf-c.0:${PORTSDIR}/devel/protobuf-c

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  autoconf automake libtool aclocal autoheader libtoolize
USE_GMAKE=  yes
USE_PGSQL=  yes
USE_GNOME=  libxml2
MAKE_JOBS_SAFE= yes

PORTDOCS=   ChangeLog README AUTHORS TODO

MAN1=       osm2pgsql.1

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

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

.if !defined(NOPORTDOCS)
post-install:
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif

.include <bsd.port.mk>