2013-02-14 14:24:33 +01:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
2011-06-29 17:01:17 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= osm2pgsql
|
2015-03-03 17:46:18 +01:00
|
|
|
PORTVERSION= 0.87.2
|
2015-06-15 15:03:11 +02:00
|
|
|
PORTREVISION= 1
|
2011-06-29 17:01:17 +02:00
|
|
|
CATEGORIES= converters geography
|
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
|
|
COMMENT= Convert OSM XML data to PostgreSQL database
|
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+
|
2014-10-29 01:04:50 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2013-10-17 03:16:42 +02:00
|
|
|
|
|
|
|
LIB_DEPENDS= libproj.so:${PORTSDIR}/graphics/proj \
|
|
|
|
libgeos.so:${PORTSDIR}/graphics/geos \
|
2015-03-03 17:46:18 +01:00
|
|
|
libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c \
|
|
|
|
libboost_thread.so:${PORTSDIR}/devel/boost-libs
|
2011-06-29 17:01:17 +02:00
|
|
|
|
2014-02-19 09:22:17 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= openstreetmap
|
|
|
|
|
2016-03-08 20:37:36 +01:00
|
|
|
USES= autoreconf gmake libtool lua pgsql
|
2014-09-19 10:01:42 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2014-02-19 09:22:17 +01:00
|
|
|
CONFIGURE_ARGS= LUA="${LUA_CMD}" \
|
|
|
|
LUA_INCLUDE="-I${LUA_INCDIR}" \
|
2015-03-03 17:46:18 +01:00
|
|
|
LUA_LIB="-L${LUA_LIBDIR} -llua-${LUA_VER}" \
|
|
|
|
--without-lockfree # workaround for build error
|
2011-06-29 17:01:17 +02:00
|
|
|
USE_GNOME= libxml2
|
|
|
|
|
2013-10-17 03:16:42 +02:00
|
|
|
PLIST_FILES= bin/nodecachefilereader \
|
|
|
|
bin/osm2pgsql \
|
2014-02-19 09:22:17 +01:00
|
|
|
man/man1/nodecachefilereader.1.gz \
|
2013-10-17 03:16:42 +02:00
|
|
|
man/man1/osm2pgsql.1.gz
|
2011-06-29 17:01:17 +02:00
|
|
|
|
2013-10-17 03:16:42 +02:00
|
|
|
PORTDOCS= ChangeLog README AUTHORS TODO
|
|
|
|
PORTDATA= *
|
2013-02-14 14:24:33 +01:00
|
|
|
|
2014-10-29 01:04:50 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2011-06-29 17:01:17 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/m4/*.m4
|
2014-10-29 01:04:50 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|AC_MSG_WARN|AC_MSG_ERROR|' ${WRKSRC}/configure.ac
|
2015-03-03 17:46:18 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-lstdc++||' ${WRKSRC}/Makefile.am
|
2011-06-29 17:01:17 +02:00
|
|
|
|
2015-11-03 21:02:30 +01:00
|
|
|
post-install-DOCS-on:
|
2013-10-17 03:16:42 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2011-06-29 17:01:17 +02:00
|
|
|
.for f in ${PORTDOCS}
|
2013-10-17 03:16:42 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
|
2011-06-29 17:01:17 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|