Makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # $OpenBSD: Makefile,v 1.57 2017/05/19 09:19:48 landry Exp $
  2. COMMENT-main = translator library for geospatial data formats
  3. COMMENT-python =python bindings and utilities for GDAL
  4. COMMENT-perl = perl bindings for GDAL
  5. V = 2.2.0
  6. DISTNAME = gdal-${V}
  7. DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
  8. gdalautotest-${V}${EXTRACT_SUFX}
  9. PKGNAME-main = ${DISTNAME}
  10. PKGNAME-python =py-${DISTNAME}
  11. PKGNAME-perl = p5-Geo-GDAL-${V}
  12. SHARED_LIBS = gdal 29.0 #22.0
  13. CATEGORIES = geo devel
  14. HOMEPAGE = http://www.gdal.org/
  15. MAINTAINER = Landry Breuil <landry@openbsd.org>
  16. # MIT/X
  17. PERMIT_PACKAGE_CDROM= Yes
  18. MASTER_SITES = http://download.osgeo.org/gdal/${V}/
  19. MODULES = perl lang/python devel/gettext
  20. MULTI_PACKAGES = -main -python -perl
  21. LIB_DEPENDS-main = ${LIB_DEPENDS} \
  22. databases/sqlite3 \
  23. graphics/tiff \
  24. net/curl \
  25. math/qhull \
  26. databases/postgresql \
  27. geo/geos \
  28. geo/spatialite/libspatialite \
  29. devel/json-c \
  30. graphics/png \
  31. graphics/giflib \
  32. graphics/libwebp \
  33. graphics/jpeg \
  34. graphics/jasper \
  35. graphics/openjp2 \
  36. devel/pcre \
  37. devel/proj \
  38. devel/geotiff
  39. WANTLIB-main = ${WANTLIB} c expat m ${LIBCXX} z tiff openjp2 ssl crypto qhull \
  40. curl pq geos geos_c png gif jpeg jasper json-c geotiff \
  41. proj pthread freexl pcre spatialite sqlite3 xml2 lzma nghttp2 webp
  42. LIB_DEPENDS-python = ${PKGNAME}:${BASE_PKGPATH},-main
  43. WANTLIB-python = ${MODPY_WANTLIB} gdal m pthread ${LIBCXX}
  44. LIB_DEPENDS-perl = ${PKGNAME}:${BASE_PKGPATH},-main
  45. WANTLIB-perl = perl gdal # uses perl ABI
  46. WANTLIB-perl += c crypto curl expat freexl geos_c geotiff gif iconv
  47. WANTLIB-perl += jasper jpeg json-c lzma m nghttp2 openjp2 pcre png
  48. WANTLIB-perl += pq pthread qhull spatialite sqlite3 ssl tiff xml2 webp z
  49. RUN_DEPENDS += math/py-numpy
  50. BUILD_DEPENDS += ${RUN_DEPENDS} devel/swig
  51. TEST_DEPENDS += ${PKGNAME-python}:${BASE_PKGPATH},-python
  52. TEST_ENV = GDAL_DOWNLOAD_TEST_DATA=1 GDAL_RUN_SLOW_TESTS=yes
  53. MODPY_SETUPTOOLS = Yes
  54. MODPY_EGG_VERSION = ${V}
  55. MODPY_ADJ_FILES = swig/python/scripts/*.py
  56. MAKE_FILE = GNUmakefile
  57. MAKE_FLAGS = LIBTOOL_FINISH=:
  58. USE_GMAKE = Yes
  59. CONFIGURE_STYLE = gnu
  60. CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
  61. LDFLAGS="-L${LOCALBASE}/lib -pthread"
  62. INSTALL_TARGET = install install-man
  63. CONFIGURE_ARGS =--without-hdf5 \
  64. --without-cfitsio \
  65. --without-netcdf \
  66. --without-xerces \
  67. --without-mysql \
  68. --without-odbc \
  69. --without-oci \
  70. --without-grass \
  71. --without-idb \
  72. --without-sde \
  73. --without-libgrass \
  74. --without-php \
  75. --without-ruby \
  76. --with-pg=${LOCALBASE}/bin/pg_config \
  77. --with-python \
  78. --with-perl \
  79. --with-geos \
  80. --with-gnm \
  81. --with-freexl=${LOCALBASE} \
  82. --with-spatialite=${LOCALBASE} \
  83. --with-png=${LOCALBASE} \
  84. --with-geotiff=${LOCALBASE} \
  85. --with-libtiff=${LOCALBASE} \
  86. --with-curl=${LOCALBASE} \
  87. --with-gif=${LOCALBASE} \
  88. --with-jpeg=${LOCALBASE} \
  89. --with-libjson-c=${LOCALBASE} \
  90. --with-jasper=${LOCALBASE}
  91. post-extract:
  92. ln -sf ${WRKDIR}/gdalautotest-${V} ${WRKSRC}/autotest
  93. do-test:
  94. cd ${WRKSRC}/autotest && env ${TEST_ENV} ${MODPY_BIN} run_all.py
  95. .include <bsd.port.mk>