gdal stable port information

Info3: <<
Package: gdal%type_pkg[pgsql]%type_pkg[mysql]
Type: pgsql (. -pgsql), mysql (. -mysql)
Version: 1.7.2
Revision: 5
Description: Raster/Vector Geospatial Format Translator
License: BSD
Homepage: http://www.gdal.org
Maintainer: Kurt Schwehr
DescDetail: <<
GDAL is a translator library for raster geospatial data formats. As a library,
it presents a single abstract data model to the calling application for all
supported formats.

Current translators include GeoTIFF (read/write), Erdas Imagine (read),
ESRI .BIL (read/write), .aux labelled raw (read/write), DTED (read),
SDTS DEM (read), CEOS (read), JPEG (read/write), PNG (read/write),
Geosoft GXF (read), Arc/Info Binary Grid (read), FITS (read/write),
netCDF (limited read/write), and GIF (read/write).

The current version of GDAL come with the related OGR library (which lives
within the GDAL source tree) provides a similar capability for simple features
vector data.

The OGR Simple Features Library is a C++ open source library (and commandline
tools) providing read (and sometimes write) access to a variety of vector file
formats including ESRI Shapefiles, S-57, SDTS, PostGIS, Oracle Spatial, and
Mapinfo mid/mif and TAB formats.
<<
DescUsage: <<
Packages that need GDAL/OGR libraries should builddepend on gdal-dev and
depend on gdal-shlibs. Make sure that configure finds the gdal-config
script in %p/bin, which tells that the headers are
in %p/include/gdal1/ and the libraries are in %p/lib/.
<<

# Dependencies.
Depends: <<
%n-shlibs (= %v-%r)
<<
Suggests: gdal-py26, gdal-grass
Conflicts: gdal, gdal-pgsql, gdal-mysql, gdal-pgsql-mysql
Replaces: gdal, gdal-pgsql, gdal-mysql, gdal-pgsql-mysql
BuildDepends: <<
libjpeg8, libjasper.1, giflib | libungif, libpng14, libtiff,
szip, libiconv-dev, cfitsio,
netcdf, netcdf-bin,
unixodbc2 | unixodbc2-nox,
libdap9,
proj,
libogdi3,
hdf5,
libgeos3.2.2 (>= 3.2.2-1),
sqlite3-dev,
libspatialite1 (>= 2.3.1-4),
(%type_raw[mysql] = -mysql) mysql-unified-dev,
(%type_raw[pgsql] = -pgsql) postgresql84-dev,
<<
BuildConflicts: hdf
# python26 - Why was python in here?
# xerces-c is broken for x86_64
# xerces-c-dev,


# Unpack Phase.

Source: http://download.osgeo.org/gdal/gdal-%v.tar.gz
Source-MD5: 05351f8cb61761ae579667e24a297fe6

SetCPPFLAGS: -Os -I%p/include
#SetCPPFLAGS: -Os -I%b/port -I%b/gcore -I%b/alg -I%b/ogr -I%b/ogr/ogrsf_frmts -I%b/ogr/ogrsf_frmts/gtiff -I%p/include
SetLDFLAGS:

# WARNING: Watch out for the geos dependency!

ConfigureParams: --mandir='${prefix}/share/man' --with-local=%p --with-libz=%p --with-grass=no --with-cfitsio=%p --with-pcraster=no --with-netcdf=%p --with-png=%p --with-libtiff=%p --with-geotiff=internal --with-jpeg=%p --with-gif=%p --with-ogdi=%p --with-fme=no --with-jasper=yes --with-ecw=no --with-kakadu=no --with-mrsid=no --with-bsb --with-ogr --with-xerces=yes --with-xerces-inc=%p/include --with-xerces-lib='-L%p/lib -lxerces-c -lpthread' --with-hdf5=%p --with-hdf4=no --with-odbc=%p --with-oci=no --with-dods-root=no --with-geos=%p/opt/libgeos3.2.2/bin/geos-config --with-static-proj4=%p (%type_raw[pgsql] = .) --without-pg (%type_raw[pgsql] = -pgsql) --with-pg=%p/bin/pg_config (%type_raw[mysql] = .) --with-mysql=no (%type_raw[mysql] = -mysql) --with-mysql=yes --with-perl --without-php --without-ruby --without-python --libdir=%p/lib --includedir=%p/include/gdal1 --without-perl --with-sqlite3=%p --with-spatialite=%p

# --with-dods=%p


CompileScript: <<
#!/bin/sh -xe
./configure %c
# (cd apps && perl -pi -e 's|gdaldem|gdalflattenmask\$\(EXE\) gdaldem|' GNUmakefile)
make -j 5
<<

# Why was this in the make line above?
#PYTHON_INCLUDES=%p/include \
# PYTHON_LIBS='-L%p/lib/python2.6' \
# PYTHON=%p/bin/python2.6

# Install Phase.
InstallScript: <<
make install prefix=%i INST_LIB=%i/lib INST_INCLUDE=%i/include/gdal1
make install-man prefix=%i
install_name_tool -id "%p/lib/libgdal.1.dylib" %i/lib/libgdal.1.dylib

# The license file will be brought to %i/share/doc/%n by DocFiles
rm -f %i/share/gdal/LICENSE.TXT
<<
DocFiles: LICENSE.TXT


SplitOff: <<
Package: %N-shlibs
Description: GDAL/OGR shared libraries
Conflicts: gdal-shlibs, gdal-pgsql-shlibs, gdal-mysql-shlibs, gdal-pgsql-mysql-shlibs
Replaces: gdal-shlibs, gdal-pgsql-shlibs, gdal-mysql-shlibs, gdal-pgsql-mysql-shlibs
Depends: <<
libjpeg8-shlibs, libjasper.1-shlibs, giflib-shlibs | libungif-shlibs, libpng14-shlibs, libtiff-shlibs (>= 3.6.0),
szip-shlibs, libiconv,
netcdf-shlibs,
hdf5-shlibs,
unixodbc2-shlibs | unixodbc2-nox-shlibs,
libdap9-shlibs,
proj-shlibs,
libogdi3-shlibs,
libgeos3.2.2-shlibs (>= 3.2.2-1),
sqlite3-shlibs,
libspatialite1-shlibs (>= 2.3.1-4),
(%type_raw[mysql] = -mysql) mysql-unified,
(%type_raw[mysql] = -mysql) mysql-unified-shlibs,
(%type_raw[pgsql] = -pgsql) postgis84,
(%type_raw[pgsql] = -pgsql) postgresql84-shlibs,
<<
Files: lib/libgdal.*.dylib
Shlibs: %p/lib/libgdal.1.dylib 16.0.0 %n (>= 1.7.0-1)
DocFiles: LICENSE.TXT
<<

# Unnecessary, right?
# python26-shlibs


SplitOff2: <<
Package: %N-dev
Description: GDAL/OGR development headers
Conflicts: gdal-dev, gdal-pgsql-dev, gdal-mysql-dev, gdal-pgsql-mysql-dev
Replaces: gdal-dev, gdal-pgsql-dev, gdal-mysql-dev, gdal-pgsql-mysql-dev
Depends: %N-shlibs (= %v-%r)
BuildDependsOnly: true
Files: bin/gdal-config include/gdal1 lib/*.a lib/*.la lib/libgdal.dylib
DocFiles: LICENSE.TXT
<<


DescPackaging: <<
Previous versions of this package were maintained by Matt Stephenson
, Blair Zajac
and BABA Yoshihiko .
See http://wiki.finkproject.org/index.php?title=Fink:Packaging:GIS
<<

DescPort: <<
<<

# End of Info3
<<

gdal stable port .patch

diff --new-file -u -r gdal-1.4.0.orig/LICENSE gdal-1.4.0/LICENSE
--- gdal-1.4.0.orig/LICENSE 1969-12-31 19:00:00.000000000 -0500
+++ gdal-1.4.0/LICENSE 2007-01-12 10:55:42.000000000 -0500
@@ -0,0 +1,19 @@
+Copyright (c) 2000, Frank Warmerdam
+
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
diff --new-file -u -r gdal-1.4.0.orig/apps/GNUmakefile gdal-1.4.0/apps/GNUmakefile
--- gdal-1.4.0.orig/apps/GNUmakefile 2006-11-03 22:02:15.000000000 -0500
+++ gdal-1.4.0/apps/GNUmakefile 2007-01-12 10:55:42.000000000 -0500
@@ -73,7 +73,7 @@
echo 'CONFIG_LIBS="$(CONFIG_LIBS)"' >> gdal-config
echo 'CONFIG_DEP_LIBS="$(LIBS)"' >> gdal-config
echo 'CONFIG_PREFIX="$(GDAL_ROOT)"' >> gdal-config
- echo 'CONFIG_CFLAGS="-I$(GDAL_ROOT)/port -I$(GDAL_ROOT)/gcore -I$(GDAL_ROOT)/alg -I$(GDAL_ROOT)/ogr -I$(GDAL_ROOT)/ogr/ogrsf_frmts"' >> gdal-config
+ echo 'CONFIG_CFLAGS="-I@PREFIX@/include/gdal1"' >> gdal-config
echo 'CONFIG_VERSION="'`cat ../VERSION`'"' >> gdal-config
echo 'CONFIG_OGR_ENABLED=$(OGR_ENABLED)' >> gdal-config
echo 'CONFIG_FORMATS="$(GDAL_FORMATS)"' >> gdal-config
@@ -86,7 +86,7 @@
echo 'CONFIG_LIBS="$(CONFIG_LIBS_INS)"' >> gdal-config-inst
echo 'CONFIG_DEP_LIBS="$(LIBS)"' >> gdal-config-inst
echo 'CONFIG_PREFIX="$(INST_PREFIX)"' >> gdal-config-inst
- echo 'CONFIG_CFLAGS="-I$(INST_INCLUDE)"' >> gdal-config-inst
+ echo 'CONFIG_CFLAGS="-I@PREFIX@/include/gdal1"' >> gdal-config-inst
echo 'CONFIG_VERSION="'`cat ../VERSION`'"' >> gdal-config-inst
echo 'CONFIG_OGR_ENABLED=$(OGR_ENABLED)' >> gdal-config-inst
echo 'CONFIG_FORMATS="$(GDAL_FORMATS)"' >> gdal-config-inst
diff --new-file -u -r gdal-1.4.0.orig/frmts/ogdi/GNUmakefile gdal-1.4.0/frmts/ogdi/GNUmakefile
--- gdal-1.4.0.orig/frmts/ogdi/GNUmakefile 2006-03-24 11:51:57.000000000 -0500
+++ gdal-1.4.0/frmts/ogdi/GNUmakefile 2007-01-12 10:55:42.000000000 -0500
@@ -3,7 +3,7 @@

OBJ = ogdidataset.o

-CPPFLAGS := $(GDAL_INCLUDE) $(OGDI_INCLUDE) $(CPPFLAGS)
+CPPFLAGS := $(CPPFLAGS) $(GDAL_INCLUDE) $(OGDI_INCLUDE)

default: $(OBJ)

gdal _unstable_ port .patch