pkgsrc/databases/postgresql-postgis2/Makefile
gdt 7c50d166e2 Update to 2.2.2.
PostGIS 2.2.2
2016/03/22

 * Bug Fixes *

  - #3463, Fix crash on face-collapsing edge change
  - #3422, Improve ST_Split robustness on standard precision double
           systems (arm64, ppc64el, s390c, powerpc, ...)
  - #3427, Update spatial_ref_sys to EPSG version 8.8
  - #3433, ST_ClusterIntersecting incorrect for MultiPoints
  - #3435, ST_AsX3D fix rendering of concave geometries
  - #3436, memory handling mistake in ptarray_clone_deep
  - #3437, ST_ClusterIntersecting incorrect for MultiPoints
  - #3461, ST_GeomFromKML crashes Postgres when there are
           innerBoundaryIs and no outerBoundaryIs
  - #3429, upgrading to 2.3 or from 2.1 can cause loop/hang on some
           platforms
  - #3460, ST_ClusterWithin 'Tolerance not defined' error after upgrade
  - #3490, Raster data restore issues, materialized views
  		   Scripts postgis_proc_set_search_path.sql, rtpostgis_proc_set_search_path.sql
  		   refere to http://postgis.net/docs/manual-2.2/RT_FAQ.html#faq_raster_data_not_restore
  - #3426, failing POINT EMPTY tests on fun architectures
2016-04-11 12:22:02 +00:00

91 lines
3 KiB
Makefile

# $NetBSD: Makefile,v 1.18 2016/04/11 12:22:02 gdt Exp $
DISTNAME= postgis-2.2.2
PKGNAME= postgresql${PGSQL_VERSION}-${DISTNAME}
CATEGORIES= databases geography
MASTER_SITES= http://download.osgeo.org/postgis/source/
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://postgis.net/
COMMENT= Spatial database capabilities for PostgreSQL
LICENSE= gnu-gpl-v2
DEPENDS+= postgresql${PGSQL_VERSION}-server>=0:../../databases/postgresql${PGSQL_VERSION}-server
BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
CONFLICTS= postgis-[0-9]*
# TODO section
# 1. File ticket upstream about make->$(MAKE) in doc/html/image_src/Makefile.
# 2. Update to upstream with fixes for:
# http://trac.osgeo.org/postgis/ticket/2909
# 3. Fix installation use of "install -o root" from pgxs.mk, when postgresql
# was built as root and postgis is built/installed as a non-root user.
# https://lists.osgeo.org/pipermail/postgis-devel/2015-July/025045.html
# gmake complains about adding + to parent rule
MAKE_JOBS_SAFE= no
PGSQL_VERSIONS_ACCEPTED= 95 94 93 92 91
USE_GCC_RUNTIME= yes
USE_LANGUAGES= c c++ c99
USE_LIBTOOL= yes
USE_TOOLS+= gmake lex pax perl
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-rpath
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/postgresql/contrib
# The address standardizer needs more modules; see
# share/doc/postgresql/extension/README.address_standardizer
# for details. Until they are required, disable it to ensure
# repeatable builds.
CONFIGURE_ARGS+= --without-address-standardizer
BUILD_TARGET= all docs
INSTALL_TARGET= install docs-install
DOCDIR= ${PREFIX}/share/doc/postgis
SUBST_CLASSES+= paths
SUBST_FILES.paths= extras/template_gis/profile \
extras/template_gis/createdb.postgis.1 \
extras/template_gis/mktemplate_gis.1 \
extras/template_gis/postgis_env.sh.in
SUBST_VARS.paths+= PKG_SYSCONFDIR
SUBST_STAGE.paths= pre-configure
INSTALLATION_DIRS= ${DOCDIR} ${DOCDIR}/images ${PKGMANDIR}/man1
REPLACE_PERL+= utils/postgis_restore.pl.in
REPLACE_PERL+= utils/create_spatial_ref_sys_config_dump.pl
#MAKE_ENV+= PERL5=${PERL5:Q}
INSTALL_ENV+= mkinstalldirs=${INSTALL_DATA_DIR:Q}
TEST_TARGET= check
# TEST_DEPENDS
.include "../../devel/cunit/buildlink3.mk"
# DOC DEPENDS
CONFIGURE_ARGS+= -with-xsldir=${PREFIX}/share/xsl/docbook
# By default xsltproc downloads DTDs. postgis tells it not to, but
# the dependencies are not packaged. The timing option, not needed,
# is to make the variable non-empty, to work around a
# defined/non-empty incorrect test in postgis.
MAKE_ENV+= "XSLTPROCFLAGS=--timing"
# These are really all BUILD_DEPENDS.
.include "../../graphics/ImageMagick/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
# NORMAL DEPENDS
.include "../../geography/gdal-lib/buildlink3.mk"
.include "../../geography/geos/buildlink3.mk"
.include "../../geography/proj/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"