mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 17:42:38 +00:00
5d1d72d034
git-svn-id: http://svn.osgeo.org/postgis/trunk@845 b70326c6-7e19-0410-871a-916f4a2858ee
98 lines
2.4 KiB
Makefile
98 lines
2.4 KiB
Makefile
#---------------------------------------------------------------
|
|
# Configuration Directives
|
|
#---------------------------------------------------------------
|
|
|
|
#
|
|
# We recommend that you install the Proj4 and GEOS libraries
|
|
# referenced below to get the most use out of your PostGIS
|
|
# database.
|
|
|
|
#
|
|
# Set USE_PROJ to 1 for Proj4 reprojection support (recommended)
|
|
#
|
|
# Reprojection allows you to transform coordinate systems
|
|
# in the database with the Transform() function.
|
|
#
|
|
# Download from: http://www.remotesensing.org/proj
|
|
#
|
|
USE_PROJ=1
|
|
ifeq (${PROJ_DIR},)
|
|
PROJ_DIR=/usr/local
|
|
endif
|
|
|
|
#
|
|
# Set USE_GEOS to 1 for GEOS spatial predicate and operator
|
|
# support (recommended).
|
|
# GEOS installation directory defaults to /usr/local,
|
|
# set GEOS_DIR environment variable to change it.
|
|
#
|
|
# GEOS allows you to do exact topological tests, such as
|
|
# Intersects() and Touches(), as well as geometry operations,
|
|
# such as Buffer(), GeomUnion() and Difference().
|
|
#
|
|
# Download from: http://geos.refractions.net
|
|
#
|
|
USE_GEOS=1
|
|
ifeq (${GEOS_DIR},)
|
|
GEOS_DIR=/usr/local
|
|
endif
|
|
|
|
#
|
|
# Set USE_STATS to 1 for new GiST statistics collection support
|
|
# Note that this support requires additional columns in
|
|
# GEOMETRY_COLUMNS, so see the list archives for info or
|
|
# install a fresh database using postgis.sql
|
|
#
|
|
USE_STATS=1
|
|
|
|
#
|
|
# Root of the PostgreSQL source tree
|
|
# If you are not building from within postgresql 'contrib' directory
|
|
# set the PGSQL_SRC either below or in the environment (an absolute path).
|
|
#
|
|
# PGSQL_SRC=/usr/src/postgresql
|
|
ifeq (${PGSQL_SRC},)
|
|
PGSQL_SRC = ${PWD}/../..
|
|
endif
|
|
|
|
#
|
|
# Path to library (to be specified in CREATE FUNCTION queries)
|
|
# Defaults to $libdir.
|
|
# Set LPATH below or in the environment to change it.
|
|
#
|
|
# LPATH=/usr/src/postgis
|
|
ifeq (${LPATH},)
|
|
LPATH := \$$libdir
|
|
endif
|
|
|
|
#---------------------------------------------------------------
|
|
# END OF CONFIGURATION
|
|
#---------------------------------------------------------------
|
|
|
|
subdir=contrib/postgis
|
|
top_builddir = ${PGSQL_SRC}
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
#---------------------------------------------------------------
|
|
# Test the version string and set the USE_VERSION macro
|
|
# appropriately.
|
|
#
|
|
ifneq ($(findstring 7.1,$(VERSION)),)
|
|
USE_VERSION=71
|
|
else
|
|
ifneq ($(findstring 7.2,$(VERSION)),)
|
|
USE_VERSION=72
|
|
else
|
|
ifneq ($(findstring 7.3,$(VERSION)),)
|
|
USE_VERSION=73
|
|
else
|
|
ifneq ($(findstring 7.4,$(VERSION)),)
|
|
USE_VERSION=74
|
|
else
|
|
USE_VERSION=80
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
|