1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/databases/postgis20/Makefile
Rodrigo Osorio 375bae14a7 Add new port postgis24 for v2.4.x
See https://svn.osgeo.org/postgis/tags/2.4.2/NEWS for new features in 2.4 branch,
  bugfixes and enhancements

Upgrade postgis22 from v2.2.5 to 2.2.6
  Multiple bug fixes, see changelog
  https://svn.osgeo.org/postgis/tags/2.2.6/NEWS

Upgrade postfix23 from v2.3.3 to v2.3.5
  Multiple bug fixes and enhancements, see changelog
  https://svn.osgeo.org/postgis/tags/2.3.5/NEWS

Fix and expand CONFLICTS_INSTALL for the postgis2* ports
reorder USES and USE_* in database/postgis20 to makes portlint happy

PR:		222703
Submitted by:	lbartoletti@tuxfamily.org
Approved by:	rhurlin@gwdg.de (maintainer)
2017-12-17 11:25:13 +00:00

72 lines
2.3 KiB
Makefile

# $FreeBSD$
PORTNAME= postgis
PORTVERSION= 2.0.7
PORTREVISION= 3
CATEGORIES= databases geography
MASTER_SITES= http://download.osgeo.org/postgis/source/
PKGNAMESUFFIX= 20
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Geographic objects support for PostgreSQL databases
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgeos.so:graphics/geos \
libjson-c.so:devel/json-c \
libproj.so:graphics/proj
CONFLICTS_INSTALL= postgis21 postgis22 postgis23 postgis24 postgis
OPTIONS_DEFINE= LOADERGUI NLS RASTER TOPOLOGY
OPTIONS_DEFAULT=RASTER TOPOLOGY
OPTIONS_SUB= yes
LOADERGUI_DESC= Enable shp2pgsql-gui
RASTER_DESC= Raster support
TOPOLOGY_DESC= Topology support
PORTSCOUT= limit:^2.0.[0-9]*
CONFIGURE_ARGS= --with-geosconfig=${LOCALBASE}/bin/geos-config \
--with-jsondir=${LOCALBASE} \
--with-pgconfig=${LOCALBASE}/bin/pg_config \
--with-projdir=${LOCALBASE} \
--with-xml2config=${LOCALBASE}/bin/xml2-config \
${ICONV_CONFIGURE_ARG} ${ICONV_CONFIGURE_BASE}
GNU_CONFIGURE= yes
USES= gmake gnome iconv:wchar_t libtool perl5 pgsql pkgconfig shebangfix
USE_GNOME= libxml2
USE_LDCONFIG= yes
USE_PERL5= build
WANT_PGSQL= lib server
PLIST_SUB= PORTVERSION=${PORTVERSION}
SHEBANG_FILES= astyle.sh \
extras/tiger_geocoder/tiger_2006andbefore/import/newdb.sh \
extras/tiger_geocoder/tiger_2006andbefore/import/tigerimport.sh \
extras/tiger_geocoder/tiger_2010/create_geocode.sh \
extras/tiger_geocoder/tiger_2010/legacy_import/tiger2008/import_tiger_shps.sh \
extras/tiger_geocoder/tiger_2010/upgrade_geocoder.sh \
raster/test/regress/testgdalraster \
utils/postgis_restore.pl.in \
utils/uninstall_script
LOADERGUI_CONFIGURE_WITH= gui
LOADERGUI_USE= GNOME=gtk20
NLS_CONFIGURE_WITH= gettext
NLS_USES= gettext
RASTER_CONFIGURE_OFF= --without-raster
RASTER_CONFIGURE_ON= --with-gdalconfig=${LOCALBASE}/bin/gdal-config --with-raster
RASTER_LIB_DEPENDS= libgdal.so:graphics/gdal
TOPOLOGY_CONFIGURE_WITH=topology
post-install:
${MKDIR} ${STAGEDIR}${DATADIR}/utils/ ${STAGEDIR}${DATADIR}/tiger_2010/
cd ${WRKSRC}/utils/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/utils/
cd ${WRKSRC}/extras/tiger_geocoder/tiger_2010/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/tiger_2010/
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* ${STAGEDIR}${PREFIX}/lib/*.so ${STAGEDIR}${PREFIX}/lib/postgresql/*.so
.include <bsd.port.mk>