|
Lines 2-9
Link Here
|
| 2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
| 3 |
|
3 |
|
| 4 |
PORTNAME= osm2pgsql |
4 |
PORTNAME= osm2pgsql |
| 5 |
PORTVERSION= 0.87.2 |
5 |
PORTVERSION= 0.90.1 |
| 6 |
PORTREVISION= 2 |
|
|
| 7 |
CATEGORIES= converters geography |
6 |
CATEGORIES= converters geography |
| 8 |
|
7 |
|
| 9 |
MAINTAINER= amdmi3@FreeBSD.org |
8 |
MAINTAINER= amdmi3@FreeBSD.org |
|
Lines 13-26
Link Here
|
| 13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
| 14 |
|
13 |
|
| 15 |
LIB_DEPENDS= libproj.so:graphics/proj \ |
14 |
LIB_DEPENDS= libproj.so:graphics/proj \ |
| 16 |
libgeos.so:graphics/geos \ |
15 |
libgeos35.so:graphics/geos35 \ |
| 17 |
libprotobuf-c.so:devel/protobuf-c \ |
16 |
libboost_system.so:devel/boost-libs \ |
| 18 |
libboost_thread.so:devel/boost-libs |
17 |
libexpat.so:textproc/expat2 |
| 19 |
|
18 |
|
| 20 |
USE_GITHUB= yes |
19 |
USE_GITHUB= yes |
| 21 |
GH_ACCOUNT= openstreetmap |
20 |
GH_ACCOUNT= openstreetmap |
| 22 |
|
21 |
|
| 23 |
USES= autoreconf gmake libtool lua pgsql |
22 |
USES= cmake:outsource lua pgsql |
| 24 |
GNU_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
| 25 |
CONFIGURE_ARGS= LUA="${LUA_CMD}" \ |
24 |
CONFIGURE_ARGS= LUA="${LUA_CMD}" \ |
| 26 |
LUA_INCLUDE="-I${LUA_INCDIR}" \ |
25 |
LUA_INCLUDE="-I${LUA_INCDIR}" \ |
|
Lines 28-50
Link Here
|
| 28 |
--without-lockfree # workaround for build error |
27 |
--without-lockfree # workaround for build error |
| 29 |
USE_GNOME= libxml2 |
28 |
USE_GNOME= libxml2 |
| 30 |
|
29 |
|
| 31 |
PLIST_FILES= bin/nodecachefilereader \ |
30 |
PLIST_FILES= bin/osm2pgsql \ |
| 32 |
bin/osm2pgsql \ |
|
|
| 33 |
man/man1/nodecachefilereader.1.gz \ |
| 34 |
man/man1/osm2pgsql.1.gz |
31 |
man/man1/osm2pgsql.1.gz |
| 35 |
|
32 |
|
| 36 |
PORTDOCS= ChangeLog README AUTHORS TODO |
33 |
PORTDOCS= AUTHORS ChangeLog README.md |
| 37 |
PORTDATA= * |
34 |
PORTDATA= * |
| 38 |
|
35 |
|
| 39 |
OPTIONS_DEFINE= DOCS |
36 |
OPTIONS_DEFINE= DOCS |
| 40 |
|
37 |
|
| 41 |
post-patch: |
38 |
post-patch: |
| 42 |
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/m4/*.m4 |
39 |
@${REINPLACE_CMD} -e 's|include <geos|&35/geos|' \ |
| 43 |
@${REINPLACE_CMD} -e 's|AC_MSG_WARN|AC_MSG_ERROR|' ${WRKSRC}/configure.ac |
40 |
${WRKSRC}/contrib/libosmium/osmium/geom/geos.hpp \ |
| 44 |
@${REINPLACE_CMD} -e 's|-lstdc++||' ${WRKSRC}/Makefile.am |
41 |
${WRKSRC}/geometry-builder.cpp |
| 45 |
|
42 |
|
| 46 |
post-install-DOCS-on: |
43 |
post-install-DOCS-on: |
| 47 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
44 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
| 48 |
.for f in ${PORTDOCS} |
45 |
.for f in ${PORTDOCS} |
| 49 |
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ |
46 |
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ |
| 50 |
.endfor |
47 |
.endfor |