Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # $OpenBSD: Makefile,v 1.8 2017/05/31 08:08:16 espie Exp $
  2. COMMENT = OSM data to PostgreSQL converter
  3. #https://github.com/openstreetmap/osm2pgsql/issues/634
  4. BROKEN = doesnt build with geos 3.6 API
  5. GH_TAGNAME = 0.90.1
  6. GH_PROJECT = osm2pgsql
  7. GH_ACCOUNT = openstreetmap
  8. CATEGORIES = geo databases
  9. HOMEPAGE = http://wiki.openstreetmap.org/wiki/Osm2pgsql
  10. # GPLv2
  11. PERMIT_PACKAGE_CDROM = Yes
  12. USE_GMAKE = Yes
  13. WANTLIB += boost_system-mt boost_filesystem-mt bz2 c expat
  14. WANTLIB += geos m pthread pq proj z ${MODLUA_WANTLIB} ${LIBECXX}
  15. # postgresql needs to be first otherwise tests are done by cmake module
  16. MODULES = databases/postgresql \
  17. devel/cmake \
  18. lang/python \
  19. lang/lua
  20. LIB_DEPENDS = databases/postgresql \
  21. devel/proj \
  22. geo/geos \
  23. devel/boost \
  24. BUILD_DEPENDS = devel/libtool
  25. # postgresql,-contrib is needed for hstore extension
  26. TEST_DEPENDS = databases/py-psycopg2 \
  27. geo/postgis \
  28. databases/postgresql,-contrib
  29. COMPILER = gcc
  30. MODPY_ADJ_FILES = tests/regression-test.py
  31. MODLUA_VERSION = 5.2
  32. MODLUA_SA = Yes
  33. CONFIGURE_ARGS = -DBUILD_TESTS=ON
  34. # bump postgresql,-server limits according to its README otherwise some
  35. # tests fail
  36. MODPOSTGRESQL_TEST_DBNAME = osm2pgsql-test
  37. MODPOSTGRESQL_TEST_CMD = cd ${WRKSRC} && ${MODPY_BIN} tests/regression-test.py \
  38. -x ${WRKBUILD}/osm2pgsql
  39. pre-configure:
  40. ${SUBST_CMD} ${WRKSRC}/CMakeLists.txt
  41. rm -f ${WRKSRC}/cmake/FindLua.cmake
  42. post-patch:
  43. @${SUBST_CMD} ${WRKSRC}/docs/osm2pgsql.1
  44. .include <bsd.port.mk>