2015-10-30 17:18:53 +00:00
|
|
|
COMMENT = OSM data to PostgreSQL converter
|
|
|
|
|
2022-09-11 10:31:12 +00:00
|
|
|
GH_TAGNAME = 1.7.0
|
2015-10-30 17:18:53 +00:00
|
|
|
GH_PROJECT = osm2pgsql
|
|
|
|
GH_ACCOUNT = openstreetmap
|
|
|
|
|
|
|
|
CATEGORIES = geo databases
|
|
|
|
|
2021-03-07 17:33:37 +00:00
|
|
|
HOMEPAGE = https://osm2pgsql.org/
|
2015-10-30 17:18:53 +00:00
|
|
|
|
|
|
|
# GPLv2
|
2019-07-12 20:45:45 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
2015-10-30 17:18:53 +00:00
|
|
|
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
|
2016-04-27 17:02:34 +00:00
|
|
|
WANTLIB += boost_system-mt boost_filesystem-mt bz2 c expat
|
2018-10-28 14:49:25 +00:00
|
|
|
WANTLIB += m pthread pq proj z ${MODLUA_WANTLIB} ${COMPILER_LIBCXX}
|
2016-04-27 17:02:34 +00:00
|
|
|
|
2016-05-01 20:23:54 +00:00
|
|
|
# postgresql needs to be first otherwise tests are done by cmake module
|
|
|
|
MODULES = databases/postgresql \
|
|
|
|
devel/cmake \
|
2015-10-30 17:18:53 +00:00
|
|
|
lang/python \
|
|
|
|
lang/lua
|
|
|
|
|
|
|
|
LIB_DEPENDS = databases/postgresql \
|
|
|
|
devel/proj \
|
2022-10-31 23:14:52 +00:00
|
|
|
devel/boost
|
2015-10-30 17:18:53 +00:00
|
|
|
|
2018-10-28 14:49:25 +00:00
|
|
|
BUILD_DEPENDS = devel/libtool \
|
2022-04-13 07:20:22 +00:00
|
|
|
devel/fmt \
|
2018-10-28 14:49:25 +00:00
|
|
|
devel/protozero \
|
2022-04-19 09:50:27 +00:00
|
|
|
geo/libosmium>=2.17.0
|
|
|
|
|
|
|
|
RUN_DEPENDS += geo/py-osmium${MODPY_FLAVOR} \
|
|
|
|
databases/py-psycopg2${MODPY_FLAVOR}
|
2015-10-30 17:18:53 +00:00
|
|
|
|
2016-05-01 20:23:54 +00:00
|
|
|
# postgresql,-contrib is needed for hstore extension
|
|
|
|
TEST_DEPENDS = databases/py-psycopg2 \
|
|
|
|
geo/postgis \
|
|
|
|
databases/postgresql,-contrib
|
2015-10-30 17:18:53 +00:00
|
|
|
|
2017-11-16 23:20:37 +00:00
|
|
|
COMPILER = base-clang ports-gcc
|
2015-10-30 17:18:53 +00:00
|
|
|
|
|
|
|
MODPY_ADJ_FILES = tests/regression-test.py
|
|
|
|
|
2016-04-27 17:02:34 +00:00
|
|
|
MODLUA_VERSION = 5.2
|
2015-10-30 17:18:53 +00:00
|
|
|
MODLUA_SA = Yes
|
|
|
|
|
2018-10-28 14:49:25 +00:00
|
|
|
CONFIGURE_ARGS = -DBUILD_TESTS=ON \
|
|
|
|
-DEXTERNAL_LIBOSMIUM=ON \
|
|
|
|
-DEXTERNAL_PROTOZERO=ON \
|
2022-05-28 06:19:58 +00:00
|
|
|
-DEXTERNAL_FMT=ON
|
|
|
|
|
|
|
|
CXXFLAGS += -I${LOCALBASE}/include/utfcpp
|
2016-04-27 17:02:34 +00:00
|
|
|
|
2016-05-01 20:23:54 +00:00
|
|
|
# bump postgresql,-server limits according to its README otherwise some
|
|
|
|
# tests fail
|
|
|
|
MODPOSTGRESQL_TEST_DBNAME = osm2pgsql-test
|
2021-03-07 17:33:37 +00:00
|
|
|
MODPOSTGRESQL_TEST_CMD = ${MODCMAKE_TEST_TARGET}
|
2016-05-01 20:23:54 +00:00
|
|
|
|
2016-04-27 17:02:34 +00:00
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/CMakeLists.txt
|
|
|
|
rm -f ${WRKSRC}/cmake/FindLua.cmake
|
2015-10-30 17:18:53 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${SUBST_CMD} ${WRKSRC}/docs/osm2pgsql.1
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|