Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # $OpenBSD: Makefile,v 1.46 2017/05/15 10:02:01 landry Exp $
  2. MULTI_PACKAGES= -utils -main -php -perl
  3. COMMENT-main= GIS CGI server
  4. COMMENT-utils= mapserver utilities
  5. COMMENT-php= PHP Mapscript extension
  6. COMMENT-perl= Perl Mapscript binding
  7. V = 7.0.5
  8. DISTNAME= mapserver-${V}
  9. PKGNAME-main= ${DISTNAME}
  10. PKGNAME-utils= mapserver-utils-${V}
  11. PKGNAME-php= php-mapscript-${V}
  12. PKGNAME-perl= p5-mapscript-${V}
  13. SHARED_LIBS += mapserver 2.0
  14. CATEGORIES= geo www
  15. HOMEPAGE= http://www.mapserver.org/
  16. # MIT
  17. PERMIT_PACKAGE_CDROM= Yes
  18. MAINTAINER= Landry Breuil <landry@openbsd.org>
  19. MASTER_SITES= http://download.osgeo.org/mapserver/
  20. MODULES= lang/php devel/cmake
  21. MODPHP_RUNDEP= No
  22. NO_TEST = Yes
  23. RUN_DEPENDS-php = ${MODPHP_RUN_DEPENDS}
  24. RUN_DEPENDS-main = www/spawn-fcgi
  25. BUILD_DEPENDS += devel/swig databases/postgresql,-server
  26. LIB_DEPENDS= devel/proj \
  27. devel/fribidi \
  28. devel/harfbuzz \
  29. graphics/cairo \
  30. geo/gdal \
  31. geo/geos \
  32. graphics/giflib \
  33. www/fcgi
  34. WANTLIB += curl freetype jpeg m png pq xml2 z proj
  35. WANTLIB += gdal geos_c cairo fribidi gif harfbuzz
  36. LIB_DEPENDS-utils = STEM->=${V}:${BUILD_PKGPATH},-main
  37. LIB_DEPENDS-php = STEM->=${V}:${BUILD_PKGPATH},-main
  38. LIB_DEPENDS-perl = STEM->=${V}:${BUILD_PKGPATH},-main
  39. WANTLIB-main = ${WANTLIB} c fcgi pthread ${LIBCXX}
  40. WANTLIB-utils = ${WANTLIB} c mapserver pthread
  41. WANTLIB-php = ${WANTLIB} mapserver
  42. WANTLIB-perl = ${WANTLIB} mapserver perl
  43. CONFIGURE_ARGS += -DPHP5_CONFIG_EXECUTABLE=${LOCALBASE}/bin/php-config-${MODPHP_VERSION} \
  44. -DWITH_CLIENT_WFS=1 \
  45. -DWITH_CLIENT_WMS=1 \
  46. -DWITH_CURL=1 \
  47. -DWITH_KML=1 \
  48. -DWITH_PHP=1 \
  49. -DWITH_PERL=1
  50. PREFIX-main= ${VARBASE}/www
  51. SUBST_VARS+= PREFIX-main VARBASE
  52. post-extract:
  53. rm -f ${WRKSRC}/cmake/Find{Freetype,PostgreSQL,ICONV}.cmake
  54. post-install:
  55. ${INSTALL_DATA_DIR} ${WRKINST}/${PREFIX-main}/cgi-bin
  56. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/php-${MODPHP_VERSION}
  57. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mapserver/perl
  58. ${INSTALL_PROGRAM} ${PREFIX}/bin/mapserv ${WRKINST}/${PREFIX-main}/cgi-bin
  59. echo "; Enable Mapscript extension module\nextension=php_mapscript.so" \
  60. > ${PREFIX}/share/examples/php-${MODPHP_VERSION}/mapscript.ini
  61. ${INSTALL_DATA} ${WRKSRC}/mapscript/perl/examples/* \
  62. ${PREFIX}/share/examples/mapserver/perl
  63. .include <bsd.port.mk>