Commit 697470f7 authored by Rashad Kanavath's avatar Rashad Kanavath

SuperBuild: GDAL: update patches

parent 9daefa5c
include ../../GDALmake.opt
ifndef PYTHON
PYTHON=python
endif
all: build
BINDING = python
include ../SWIGmake.base
PACKAGE_DIR=osgeo
SWIGOUTPUTDIR=extensions/
SCRIPTS = `ls ./scripts`
PY_COMMANDS = epsg_tr.py gdalchksum.py gdal2xyz.py gcps2wld.py \
gdalimport.py gdal_merge.py pct2rgb.py rgb2pct.py \
gcps2vec.py
PY_MODULES = ${PACKAGE_DIR}/gdal.py ${PACKAGE_DIR}/ogr.py ${PACKAGE_DIR}/osr.py ${PACKAGE_DIR}/gdalconst.py ${PACKAGE_DIR}/gdal_array.py
clean:
-rm -f ${PACKAGE_DIR}/*.pyc
-rm -rf build
-rm -f *.pyc
-rm -rf *.egg-info
-rm -f *.so ./osgeo/*.so
-rm -rf dist
SWIGARGS += -outdir "${PACKAGE_DIR}"
veryclean: clean
-rm -f ${WRAPPERS} ${PY_MODULES}
-rm -f ${SWIGOUTPUTDIR}/gdal_wrap.cpp
-rm -f ${SWIGOUTPUTDIR}/gdalconst_wrap.c
-rm -f ${SWIGOUTPUTDIR}/ogr_wrap.cpp
-rm -f ${SWIGOUTPUTDIR}/osr_wrap.cpp
-rm -f ${SWIGOUTPUTDIR}/gdal_array_wrap.cpp
gdal_wrap.cpp: ../include/python/gdal_python.i
ogr_wrap.cpp: ../include/python/ogr_python.i
osr_wrap.cpp: ../include/python/osr_python.i
gdal_array_wrap.cpp: ../include/gdal_array.i ../include/python/typemaps_python.i
$(SWIG) $(SWIGARGS) $(SWIGDEFINES) -I$(GDAL_ROOT) -c++ -$(BINDING) -o $(SWIGOUTPUTDIR)$@ gdal_array.i
# A few hacks (cat, mv) : the first one for SWIG < 1.3.36 and the second one for SWIG <= 1.3.39 python 3.X on 64bit platforms
# The python3.2.patch is from https://sourceforge.net/tracker/?func=detail&aid=3057804&group_id=1645&atid=101645
# and is no longer necessary with swig 2.0.4
generate: ${WRAPPERS} gdal_array_wrap.cpp
for i in gdal_wrap.cpp gdalconst_wrap.c ogr_wrap.cpp osr_wrap.cpp gdal_array_wrap.cpp; do sed "s/PyErr_Format(PyExc_RuntimeError, mesg)/PyErr_SetString(PyExc_RuntimeError, mesg)/" ${SWIGOUTPUTDIR}/$$i | sed "s/int len;/Py_ssize_t len;/" > ${SWIGOUTPUTDIR}/$$i.tmp; mv -f ${SWIGOUTPUTDIR}/$$i.tmp ${SWIGOUTPUTDIR}/$$i; done
-grep "1\.3\.40" extensions/gdal_wrap.cpp >/dev/null && patch -p0 < python3.2.patch
-grep "1\.3\.40" extensions/gdal_wrap.cpp >/dev/null && cat python3.2.patch | sed "s/gdal_wrap/ogr_wrap/" | patch -p0
-grep "1\.3\.40" extensions/gdal_wrap.cpp >/dev/null && cat python3.2.patch | sed "s/gdal_wrap/osr_wrap/" | patch -p0
-grep "1\.3\.40" extensions/gdal_wrap.cpp >/dev/null && cat python3.2.patch | sed "s/gdal_wrap\.cpp/gdalconst_wrap\.c/" | patch -p0
-grep "1\.3\.40" extensions/gdal_wrap.cpp >/dev/null && cat python3.2.patch | sed "s/gdal_wrap/gdal_array_wrap/" | patch -p0
build:
$(PYTHON) setup.py build
egg:
$(PYTHON) setup.py bdist_egg
install:
ifeq ($(PY_HAVE_SETUPTOOLS),1)
$(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) --install-purelib=$(prefix)/lib --install-scripts=$(prefix)/bin --install-platlib=$(prefix)/lib
else
$(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
endif
for f in $(SCRIPTS) ; do $(INSTALL) ./scripts/$$f $(DESTDIR)$(INST_BIN) ; done
docs:
$(PYTHON) ../include/python/docs/doxy2swig.py ../../ogr/xml/ogrlayer_8cpp.xml ../include/python/docs/ogr_layer_docs.i OGRLayerShadow OGR_L_
$(PYTHON) ../include/python/docs/doxy2swig.py ../../ogr/xml/ogrgeometry_8cpp.xml ../include/python/docs/ogr_geometry_docs.i OGRGeometryShadow OGR_G_
$(PYTHON) ../include/python/docs/doxy2swig.py ../../ogr/xml/ogrdatasource_8cpp.xml ../include/python/docs/ogr_datasource_docs.i OGRDataSourceShadow OGR_DS_
$(PYTHON) ../include/python/docs/doxy2swig.py ../../ogr/xml/ogrsfdriver_8cpp.xml ../include/python/docs/ogr_driver_docs.i OGRDriverShadow OGR_Dr_
$(PYTHON) ../include/python/docs/doxy2swig.py ../../ogr/xml/ogrfeature_8cpp.xml ../include/python/docs/ogr_feature_docs.i OGRFeatureShadow OGR_F_
$(PYTHON) ../include/python/docs/doxy2swig.py ../../ogr/xml/ogrfeaturedefn_8cpp.xml ../include/python/docs/ogr_featuredef_docs.i OGRFeatureDefnShadow OGR_FD_
$(PYTHON) ../include/python/docs/doxy2swig.py ../../ogr/xml/ogrfielddefn_8cpp.xml ../include/python/docs/ogr_fielddef_docs.i OGRFieldDefnShadow OGR_Fld_
epydoc: generate
epydoc --config epydoc.conf
GDAL_ROOT = @abs_top_builddir@
top_builddir = $(GDAL_ROOT)
#
# the library can be built by the native build or with the help of libtool
#
SHELL = @SHELL@
HAVE_LIBTOOL = @HAVE_LIBTOOL@
LIBTOOL = @LIBTOOL@
ifeq ($(HAVE_LIBTOOL),yes)
LIBTOOL_COMPILE_CC = $(LIBTOOL) --mode=compile --tag=CC
LIBTOOL_COMPILE_CXX = $(LIBTOOL) --mode=compile --tag=CXX
LIBTOOL_LINK = $(LIBTOOL) --mode=link
LIBTOOL_INSTALL = $(LIBTOOL) --mode=install
LIBTOOL_FINISH = $(LIBTOOL) --mode=finish --silent
LIBTOOL_CLEAN = $(LIBTOOL) --mode=clean
OBJ_EXT = lo
else
LIBTOOL_FINISH = @BINTRUE@
OBJ_EXT = o
endif
CC = $(LIBTOOL_COMPILE_CC) @CC@
CXX = $(LIBTOOL_COMPILE_CXX) @CXX@
LD = $(LIBTOOL_LINK) @CXX@
RM = $(LIBTOOL_CLEAN) /bin/rm -f *.lo
INSTALL = $(LIBTOOL_INSTALL) $(GDAL_ROOT)/install-sh -c
INSTALL_LIB = $(LIBTOOL_INSTALL) $(GDAL_ROOT)/install-sh -c
INSTALL_DATA = $(GDAL_ROOT)/install-sh -c -m 0644
INSTALL_DIR = $(GDAL_ROOT)/install-sh -d
# SDE_LIB needs to be first because it embeds zlib. We need to use its symbols instead of -lz's
LIBS = $(SDE_LIB) @LIBS@ $(KAK_LIBS) $(DWG_LIBS) $(CURL_LIB) \
$(MRSID_LIBS) $(MRSID_LIDAR_LIBS) $(ECW_LIBS) $(INGRES_LIB) \
$(PCIDSK_LIB) $(RASDAMAN_LIB) $(CHARLS_LIB) $(SOSI_LIB) \
$(OPENCL_LIB) $(JVM_LIB) $(LIBICONV) $(FGDB_LIB) $(LIBXML2_LIB)
AVXFLAGS = @AVXFLAGS@
HAVE_AVX_AT_COMPILE_TIME = @HAVE_AVX_AT_COMPILE_TIME@
PYTHON = @PYTHON@
PY_HAVE_SETUPTOOLS=@PY_HAVE_SETUPTOOLS@
# Next Generation SWIG bindings
BINDINGS = @BINDINGS@
HAVE_OGDI = @HAVE_OGDI@
OGR_ENABLED = @OGR_ENABLED@
OSX_FRAMEWORK_PREFIX = /Library/Frameworks/GDAL.framework
OSX_VERSION_FRAMEWORK_PREFIX = ${OSX_FRAMEWORK_PREFIX}/Versions/@GDAL_VERSION_MAJOR@.@GDAL_VERSION_MINOR@
prefix = @prefix@
exec_prefix = @exec_prefix@
INST_PREFIX = @exec_prefix@
INST_INCLUDE = @includedir@
INST_DATA = @datadir@
INST_LIB = @libdir@
INST_BIN = @bindir@
INST_PYMOD = @pymoddir@
INST_DOCS = @exec_prefix@/doc
INST_MAN = @mandir@
INST_HTML = $(HOME)/www/gdal
CPPFLAGS = @CPPFLAGS@ -I$(GDAL_ROOT)/port @EXTRA_INCLUDES@
CFLAGS = @CFLAGS@ @C_WFLAGS@ $(USER_DEFS)
CXXFLAGS = @CXXFLAGS@ @CXX_WFLAGS@ $(USER_DEFS)
LDFLAGS = @LDFLAGS@
RANLIB = @RANLIB@
SO_EXT = @SO_EXT@
LD_SHARED = @LD_SHARED@
EXE = @EXE_EXT@
ifeq ($(notdir $(LD_SHARED)),true)
HAVE_LD_SHARED = no
else
HAVE_LD_SHARED = yes
endif
GDAL_INCLUDE = -I$(GDAL_ROOT)/port -I$(GDAL_ROOT)/gcore \
-I$(GDAL_ROOT)/alg \
-I$(GDAL_ROOT)/ogr -I$(GDAL_ROOT)/ogr/ogrsf_frmts
# libtool targets and help variables
LIBGDAL := libgdal.la
LIBGDAL_CURRENT := 19
LIBGDAL_REVISION := 2
LIBGDAL_AGE := 18
# native build targets and variables
GDAL_VER = @GDAL_VER@
# version info
GDAL_VERSION_MAJOR = @GDAL_VERSION_MAJOR@
GDAL_VERSION_MINOR = @GDAL_VERSION_MINOR@
GDAL_VERSION_REV = @GDAL_VERSION_REV@
GDAL_LIB = $(GDAL_ROOT)/libgdal.a
GDAL_SLIB = $(GDAL_ROOT)/libgdal.$(SO_EXT)
GDAL_SLIB_LINK = -L$(GDAL_ROOT) -lgdal
# Mac OS X Framework definition
MACOSX_FRAMEWORK = @MACOSX_FRAMEWORK@
#
# GDAL/OGR PostgreSQL support.
#
HAVE_OGR_PG = @HAVE_PG@
HAVE_POSTGISRASTER = @HAVE_PG@
PG_INC = @PG_INC@
#
# INGRES
#
II_SYSTEM = @II_SYSTEM@
HAVE_INGRES = @HAVE_INGRES@
INGRES_LIB = @INGRES_LIB@
INGRES_INC = @INGRES_INC@
#
# MySQL support.
#
HAVE_MYSQL = @HAVE_MYSQL@
MYSQL_LIB = @MYSQL_LIB@
MYSQL_INC = @MYSQL_INC@
LIBS += $(MYSQL_LIB)
#
# HDF4 Support.
#
HAVE_HDF4 = @HAVE_HDF4@
HDF4_INCLUDE = @HDF4_INCLUDE@ -I$(GDAL_ROOT)/ogr
#
# HDF5 Support.
#
HAVE_HDF5 = @HAVE_HDF5@
HDF5_INCLUDE = @HDF5_INCLUDE@
#
# NetCDF Support.
#
NETCDF_ROOT = @NETCDF_ROOT@
NETCDF_HAS_NC4 = @NETCDF_HAS_NC4@
NETCDF_HAS_HDF4 = @NETCDF_HAS_HDF4@
#
# DODS Include file location
#
DODS_INC = @DODS_INC@
ifeq ($(DODS_INC),)
HAVE_DODS = no
else
HAVE_DODS = yes
endif
#
# SQLite
#
SQLITE_INC = @SQLITE_INC@
SQLITE_HAS_COLUMN_METADATA = @SQLITE_HAS_COLUMN_METADATA@
HAVE_SQLITE = @HAVE_SQLITE@
HAVE_SPATIALITE = @HAVE_SPATIALITE@
SPATIALITE_INC = @SPATIALITE_INC@
SPATIALITE_AMALGAMATION = @SPATIALITE_AMALGAMATION@
SPATIALITE_412_OR_LATER = @SPATIALITE_412_OR_LATER@
HAVE_PCRE = @HAVE_PCRE@
#
# JPEG2000 via Kakadu Support.
#
KAKDIR = @KAKDIR@
ifneq ($(KAKDIR),)
ifeq ($(HAVE_LIBTOOL),yes)
include $(GDAL_ROOT)/frmts/jp2kak/jp2kak.lst
KAK_LIBS = $(KAK_OBJ)
endif
endif
#
# JPEG-2000 Support via JasPer library.
#
HAVE_JASPER = @HAVE_JASPER@
JASPER_FLAGS = @JASPER_FLAGS@
#
# JPEG-2000 Support via OpenJPEG library.
#
HAVE_OPENJPEG = @HAVE_OPENJPEG@
OPENJPEG_VERSION = @OPENJPEG_VERSION@
#
# MrSID support via LizardTech's DSDK
#
MRSID_FLAGS = @MRSID_FLAGS@
MRSID_INCLUDE = @MRSID_INCLUDE@
MRSID_LIBS = @MRSID_LIBS@
#
#
# MrSID/MG4 support via LizardTech LiDAR SDK
#
MRSID_LIDAR_INCLUDE = @MRSID_LIDAR_INCLUDE@
MRSID_LIDAR_LIBS = @MRSID_LIDAR_LIBS@
#
# ECW Related
#
ECW_FLAGS = @ECW_FLAGS@
ECW_INCLUDE = @ECW_INCLUDE@
ECW_LIBS = @ECW_LIBS@
# Xerces C++ XML Parser for GML and ILI
#
HAVE_XERCES = @HAVE_XERCES@
XERCES_INCLUDE = @XERCES_INCLUDE@
#
# Enable NAS format
#
HAVE_NAS = @HAVE_NAS@
#
# Expat XML Parser for KML, GPX, GeoRSS (and GML if no Xerces C++)
#
HAVE_EXPAT = @HAVE_EXPAT@
EXPAT_INCLUDE = @EXPAT_INCLUDE@
#
# Google libkml for the new OGR KML driver written by Brian Case
#
HAVE_LIBKML = @HAVE_LIBKML@
LIBKML_INCLUDE = @LIBKML_INCLUDE@
#
# Oracle Spatial Support
#
HAVE_OCI = @HAVE_OCI@
OCI_INCLUDE = @OCI_INCLUDE@
# GEOS Support
HAVE_GEOS = @HAVE_GEOS@
GEOS_CFLAGS = @GEOS_CFLAGS@
# GRASS Support
GRASS_SETTING = @GRASS_SETTING@
GRASS_INCLUDE = @GRASS_INCLUDE@
GRASS_GISBASE = @GRASS_GISBASE@
HAVE_GRASS = @HAVE_GRASS@
#
# SDE
#
HAVE_SDE = @SDE_ENABLED@
SDE_LIB = @SDE_LIB@
SDE_INC = @SDE_INC@
#
# FileGDB
#
HAVE_FGDB = @FGDB_ENABLED@
FGDB_LIB = @FGDB_LIB@
FGDB_INC = @FGDB_INC@
#
# ArcObjects
#
HAVE_ARCOBJECTS = @ARCOBJECTS_ENABLED@
ARCOBJECTS_LIB = @ARCOBJECTS_LIB@
ARCOBJECTS_INC = @ARCOBJECTS_INC@
#
# Curl
#
CURL_SETTING = @CURL_SETTING@
CURL_LIB = @CURL_LIB@
CURL_INC = @CURL_INC@
#
# libjson-c
#
LIBJSONC_SETTING = @LIBJSONC_SETTING@
JSON_INCLUDE = @JSON_INCLUDE@
#
# OpenCL support
#
OPENCL_LIB = @OPENCL_LIB@
OPENCL_FLAGS = @OPENCL_FLAGS@
#
# SOSI support
#
SOSI_INC = @SOSI_INC@
SOSI_LIB = @SOSI_LIB@
HAVE_SOSI = @SOSI_ENABLED@
#
# PCIDSK SDK
#
PCIDSK_SETTING = @PCIDSK_SETTING@
PCIDSK_LIB = @PCIDSK_LIB@
PCIDSK_INCLUDE = @PCIDSK_INCLUDE@
#
# Iconv
#
LIBICONV = @LIBICONV@
#
# LIBXML2
#
HAVE_LIBXML2 = @HAVE_LIBXML2@
LIBXML2_INC = @LIBXML2_INC@
LIBXML2_LIB = @LIBXML2_LIB@
#
# DWGdirect Library
#
DWGDIRECT = @DWGDIRECT@
DWG_PLT = @DWG_PLT@
ifneq ($(DWGDIRECT),)
DWG_LIBDIR = $(DWGDIRECT)/lib/$(DWG_PLT)
DWG_LIBS = $(DWG_LIBDIR)/DD_$(DWG_PLT)_ModelerGeometry.a \
$(DWG_LIBDIR)/DD_$(DWG_PLT)_AcisRenderer.a \
$(DWG_LIBDIR)/DD_$(DWG_PLT)_Br.a \
$(DWG_LIBDIR)/DD_$(DWG_PLT)_AcisBuilder.a \
$(DWG_LIBDIR)/DD_$(DWG_PLT)_Db.a \
$(DWG_LIBDIR)/DD_$(DWG_PLT)_Gs.a \
$(DWG_LIBDIR)/DD_$(DWG_PLT)_SpatialIndex.a \
$(DWG_LIBDIR)/DD_$(DWG_PLT)_Gi.a \
$(DWG_LIBDIR)/DD_$(DWG_PLT)_Ge.a \
$(DWG_LIBDIR)/DD_$(DWG_PLT)_Root.a \
$(DWG_LIBDIR)/DD_$(DWG_PLT)_FT.a \
$(DWG_LIBDIR)/DD_$(DWG_PLT)_Alloc.a
HAVE_DWGDIRECT = yes
else
DWG_LIBS =
HAVE_DWGDIRECT = no
endif
#
# Informix DataBlade support
#
HAVE_IDB = @HAVE_IDB@
IDB_INC = @IDB_INC@
IDB_LIB = @IDB_LIB@
ifeq ($(HAVE_IDB),yes)
LIBS += $(IDB_LIB)
endif
#
# FMEObjects
#
ifeq (@X_FME_HOME@,)
HAVE_FME = no
FME_INCLUDE =
else
HAVE_FME = yes
FME_INCLUDE = -I@X_FME_HOME@/fmeobjects/cpp
endif
# PCRaster support
PCRASTER_SETTING = @PCRASTER_SETTING@
OGDI_INCLUDE = @OGDI_INCLUDE@
PNG_SETTING = @PNG_SETTING@
JPEG_SETTING = @JPEG_SETTING@
JPEG12_ENABLED = @JPEG12_ENABLED@
TIFF_JPEG12_ENABLED = @TIFF_JPEG12_ENABLED@
TIFF_SETTING = @TIFF_SETTING@
TIFF_OPTS = @TIFF_OPTS@
RENAME_INTERNAL_LIBTIFF_SYMBOLS = @RENAME_INTERNAL_LIBTIFF_SYMBOLS@
GEOTIFF_SETTING = @GEOTIFF_SETTING@
GEOTIFF_INCLUDE = @GEOTIFF_INCLUDE@
RENAME_INTERNAL_LIBGEOTIFF_SYMBOLS = @RENAME_INTERNAL_LIBGEOTIFF_SYMBOLS@
GIF_SETTING = @GIF_SETTING@
FITS_SETTING = @FITS_SETTING@
OGDI_SETTING = @HAVE_OGDI@
ODBC_SETTING = @ODBC_SETTING@
# PGeo driver is built-in when ODBC is available
PGEO_SETTING = @ODBC_SETTING@
MSSQLSPATIAL_SETTING = @ODBC_SETTING@
GEOMEDIA_SETTING = @ODBC_SETTING@
NETCDF_SETTING = @NETCDF_SETTING@
LIBZ_SETTING = @LIBZ_SETTING@
LIBLZMA_SETTING = @LIBLZMA_SETTING@
#
# DDS via Crunch Support.
#
CRUNCHDIR = @CRUNCHDIR@
#
# Rasdaman stuff
#
RASDAMAN_ENABLED = @RASDAMAN_ENABLED@
RASDAMAN_INC = @RASDAMAN_INC@
RASDAMAN_LIB = @RASDAMAN_LIB@
#
# Poppler stuff
#
HAVE_POPPLER = @HAVE_POPPLER@
POPPLER_HAS_OPTCONTENT = @POPPLER_HAS_OPTCONTENT@
POPPLER_BASE_STREAM_HAS_TWO_ARGS = @POPPLER_BASE_STREAM_HAS_TWO_ARGS@
POPPLER_0_20_OR_LATER = @POPPLER_0_20_OR_LATER@
POPPLER_0_23_OR_LATER = @POPPLER_0_23_OR_LATER@
POPPLER_INC = @POPPLER_INC@
#
# Podofo stuff
#
HAVE_PODOFO = @HAVE_PODOFO@
PODOFO_INC = @PODOFO_INC@
#
# CharLs stuff
# Uncomment and adapt paths to enable JPEGLS driver
#
#HAVE_CHARLS = yes
#CHARLS_INC = -I/path/to/charls_include
#CHARLS_LIB = -L/path/to/charls_lib -lCharLS
#
# PROJ.4 stuff
#
PROJ_STATIC = @PROJ_STATIC@
ifeq ($(PROJ_STATIC),yes)
PROJ_FLAGS = -DPROJ_STATIC
endif
PROJ_INCLUDE = @PROJ_INCLUDE@
PAM_SETTING = @PAM_SETTING@
ifeq ($(OGR_ENABLED),yes)
GDAL_LIBS := $(GDAL_LIB) $(OCI_LIB) $(GDAL_LIBS)
CPPFLAGS := -DOGR_ENABLED $(CPPFLAGS)
else
GDAL_LIBS = $(GDAL_LIB)
endif
#
# Java stuff
#
JAVA_HOME = @JAVA_HOME@
JAVA_INC = @JAVA_INC@
JVM_LIB = @JVM_LIB@
MDB_ENABLED = @MDB_ENABLED@
HAVE_ARMADILLO = @HAVE_ARMADILLO@
#
# freexl stuff
#
HAVE_FREEXL = @HAVE_FREEXL@
FREEXL_INCLUDE = @FREEXL_INCLUDE@
#
# Note these codes have to exactly match the format directory names,
# and their uppercase form should be the format portion of the
# format registration entry point. eg. gdb -> GDALRegister_GDB().
#
GDAL_FORMATS = gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm \
sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b \
nitf bmp pcidsk airsar rs2 ilwis rmf leveller sgi srtmhgt \
idrisi gsg ingr ers jaxapalsar dimap gff cosar pds adrg \
coasp tsx terragen blx msgn til r northwood saga xyz hf2 \
kmlsuperoverlay ctg e00grid zmap ngsgeoid iris map\
sentinel2 \
@OPT_GDAL_FORMATS@
ifneq ($(LIBZ_SETTING),no)
GDAL_FORMATS := $(GDAL_FORMATS) rik ozi pdf
endif
ifeq ($(OGR_ENABLED),yes)
ifeq ($(HAVE_SQLITE),yes)
GDAL_FORMATS := $(GDAL_FORMATS) rasterlite mbtiles
endif
endif
ifeq ($(HAVE_POSTGISRASTER),yes)
GDAL_FORMATS := $(GDAL_FORMATS) postgisraster
endif
ifeq ($(HAVE_CHARLS),yes)
GDAL_FORMATS := $(GDAL_FORMATS) jpegls
endif
ifeq ($(OGR_ENABLED),yes)
GDAL_FORMATS := $(GDAL_FORMATS) arg
endif
#
# CONFIG_LIBS is what local program should link against, and CONFIG_LIBS_INS
# is what will be emitted into the gdal-config script that is installed
# globally.
#
ifeq ($(HAVE_LIBTOOL), yes)
CONFIG_LIBS = $(GDAL_ROOT)/$(LIBGDAL)
ifeq ($(MACOSX_FRAMEWORK),yes)
CONFIG_LIBS_INS = -L$(INST_LIB)/unix/lib -lgdal
else
CONFIG_LIBS_INS = -L$(INST_LIB) -lgdal
endif # MACOSX_FRAMEWORK
EXE_DEP_LIBS = $(GDAL_ROOT)/$(LIBGDAL)
SO_EXT = la
else # HAVE_LIBTOOL
ifeq ($(HAVE_LD_SHARED),yes)
CONFIG_LIBS = $(GDAL_SLIB_LINK) $(LIBS)
ifeq ($(MACOSX_FRAMEWORK),yes)
CONFIG_LIBS_INS = -L$(INST_LIB)/unix/lib -lgdal
else
CONFIG_LIBS_INS = -L$(INST_LIB) -lgdal
endif
EXE_DEP_LIBS = $(GDAL_SLIB)
else