gdal stable port information

Info2: <<
Package: gdal
Version: 1.4.2
Revision: 1001
Distribution: 10.4
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),
postgresql82,
postgis82,
libdap3-shlibs
<<

Suggests: gdal-python-py23, gdal-grass

BuildDepends: <<
libjpeg,
giflib | libungif,
lesstiff | libtiff,
libpng3,
netcdf, netcdf-bin,
unixodbc2 | unixodbc2-nox,
libiconv-dev, cfitsio,
libogdi3,
hdf5,
xerces-c-dev,
sqlite3-dev,
libgeos2,
postgresql82-dev,
postgis82,
proj, szip,
libdap3
<<

#Conflicts: gdal, gdal-nopgsql, gdal-dev
Conflicts: gdal-nopgsql
#Replaces: gdal, gdal-nopgsql
Replaces: gdal-nopgsql
BuildConflicts: gdal-dev (<< %v)

# Unpack Phase.
Source: mirror:custom:%n-%v.tar.gz
Source-MD5: dedf5ff6a766e85b9a2b5c54c1c59221
CustomMirror: <<
nam-US: http://www.gdal.org/dl
nam-US: ftp://ftp.remotesensing.org/gdal
<<


# Patch Phase.
PatchScript: sed 's|@PREFIX@|%p|g' <%a/gdal.patch | patch -p1

# Compile Phase.
#GCC: 3.3

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

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 --without-hdf4 --with-hdf5=%p --with-jasper=no --with-ecw=no --with-kakadu=no --with-mrsid=no --with-bsb --with-ogr --with-pg=%p/bin/pg_config --with-mysql=no --with-xerces --with-xerces-inc=%p/include --with-xerces-lib='-L%p/lib -lxerces-c -lpthread' --with-odbc=%p --with-oci=no --with-dods-root=no --with-sqlite=%p --with-geos=%p/bin/geos-config --with-static-proj4=%p --without-perl --without-php --without-ruby --without-python --with-dods=%p

CompileScript: <<
#!/bin/sh -xe

touch missing
./configure %c
rm missing

make OGDI_INCLUDE=''
<<

# Install Phase.
InstallScript: <<
make install prefix=%i INST_INCLUDE=%i/include/gdal1
<<

DocFiles: LICENSE NEWS
SplitOff: <<
Package: %N-shlibs
Description: GDAL/OGR shared libraries
#Replaces: %N (<< %v-%r), gdal-shlibs, gdal-nopgsql-shlibs
#Conflicts: %N (<< %v-%r), gdal-shlibs, gdal-nopgsql-shlibs
Replaces: %N (<< %v-%r), gdal-nopgsql-shlibs
Conflicts: %N (<< %v-%r), gdal-nopgsql-shlibs
Depends: <<
giflib-shlibs | libungif-shlibs, libjpeg-shlibs, libpng3-shlibs, libtiff-shlibs (>= 3.6.0), netcdf-shlibs,
proj-shlibs, libgeos2-shlibs,
unixodbc2-shlibs | unixodbc2-nox-shlibs,
postgresql82-shlibs (>=8.0.2-12),
postgis82,
szip-shlibs, libiconv, xerces-c-shlibs, hdf5-shlibs,
libogdi3-shlibs, sqlite3-shlibs
<<
Files: lib/libgdal.*.dylib
Shlibs: %p/lib/libgdal.1.dylib 13.0.0 %n (>= 1.4.0-1000)
DocFiles: LICENSE NEWS
<<
SplitOff2: <<
Package: %N-dev
Description: GDAL/OGR development headers
# Replaces: %N (<< %v-%r), gdal-dev, gdal-nopgsql-dev
# Conflicts: %N (<< %v-%r), gdal-dev, gdal-nopgsql-dev
Replaces: %N (<< %v-%r), gdal-nopgsql-dev
Conflicts: %N (<< %v-%r), gdal-nopgsql-dev
Depends: %N-shlibs (= %v-%r)
BuildDependsOnly: true
Files: bin/gdal-config include/gdal1 lib/*.a lib/*.la lib/libgdal.dylib share/man/man1/gdal-config.1
DocFiles: LICENSE NEWS
<<

DescPackaging: <<
Patch file does the following:
1. add LICENSE.
2. install header files in %p/include/gdal1.
3. change the order of include directories not to read header files of
older GDAL package.

Previous versions of this package were maintained by Matt Stephenson
, Blair Zajac
and BABA Yoshihiko .
<<

DescPort: <<
1.3 conflicts with the gdal headers of older versions. gdal.patch
solves this problem by changing the include orders. For future
versions, gdal13 headers will be in %p/include/gdal13 and so on. (This
has not happened. Still include/gdal1. -kurt 12/2006)

1.3 adds HDF-5 support.

1.2.6-5 fixes gdal-config and adds Xerces and SQLite supports.
1.2.6-4 for Python support (see gdal-python-py23)
--with-geos is enabled since 1.2.6-1.

The large number of gdal include files are moved into %p/include
subdirectory and gdal-config has been patched to have the correct
include file path.

Uses -Os, otherwise it compiles with no optimization.

Uses --with-local=%p in ConfigureParams to have -I%p/include and
-L%p/lib be used in compiling this package. But even with this set,
not all files are compiled with -I%p/include and so this is put in
SetCFLAGS and SetCXXFLAGS.

Uses --with-static-proj4=%p in ConfigureParams, but libproj still ends
up linking dynamically.

Uses --with-hdf4=no in ConfigureParams to avoid a compile error in
EHapi.c.

Franks Warmerdam says using the "internal" settings should not be
necessary, as the libs are tested to see if they are compatible.

As of 1.3.2, removing the Conflict with itself since that -dev was
only able to be installed at the same time as gdal{,-shlibs}

TODO:

There are lots of other formats/libs that could be enabled, but have
not yet been tried.
<<

# End of Info2
<<

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 information

Info2: <<
Package: gdal
Version: 1.5.1
Revision: 1002
Distribution: 10.4, 10.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),
postgis83,
libdap6-shlibs
,libjasper.1-shlibs
,hdf5-shlibs
,hdf
,libgeos2-shlibs
<<

Suggests: gdal-py25

BuildDepends: <<
libjpeg,
giflib | libungif,
libtiff,
libpng3,
netcdf, netcdf-bin,
unixodbc2 | unixodbc2-nox,
libiconv-dev, cfitsio,
libogdi3,
hdf5,
xerces-c-dev,
sqlite3-dev,
libgeos2,
postgresql83-dev,
postgis83,
proj, szip,
libdap6
,libjasper.1
,hdf
<<



Conflicts: gdal-nopgsql
Replaces: gdal-nopgsql
BuildConflicts: gdal-dev (<< %v)

# Unpack Phase.
Source: mirror:custom:%n-%v.tar.gz
Source-MD5: 76b53917142c5e9ad2d0ac20fb99890b

PatchScript: perl -pi -e 's;-no-undefined;$& -Wl,-m;' GNUmakefile

CustomMirror: <<
nam-US: http://www.gdal.org/dl
nam-US: ftp://ftp.remotesensing.org/gdal
<<

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

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-pg=%p/bin/pg_config --with-mysql=no --with-xerces --with-xerces-inc=%p/include --with-xerces-lib='-L%p/lib -lxerces-c -lpthread' --with-odbc=%p --with-oci=no --with-dods-root=no --with-sqlite=%p --with-geos=%p/bin/geos-config --with-static-proj4=%p --without-perl --without-php --without-ruby --without-python --with-dods=%p --with-hdf5=%p --includedir=%p/include/gdal1 --with-hdf4=%p


CompileScript: <<
#!/bin/sh -xe

touch missing
./configure %c
rm missing

make OGDI_INCLUDE=''
<<

# Install Phase.
InstallScript: <<
#mkdir -p %i/share
#mv %i/man %i/share/
make install prefix=%i INST_INCLUDE=%i/include/gdal1
make install-man prefix=%i
<<

DocFiles: NEWS
SplitOff: <<
Package: %N-shlibs
Description: GDAL/OGR shared libraries
#Replaces: %N (<< %v-%r), gdal-shlibs, gdal-nopgsql-shlibs
#Conflicts: %N (<< %v-%r), gdal-shlibs, gdal-nopgsql-shlibs
Replaces: %N (<< %v-%r), gdal-nopgsql-shlibs
Conflicts: %N (<< %v-%r), gdal-nopgsql-shlibs
Depends: <<
giflib-shlibs | libungif-shlibs, libjpeg-shlibs, libpng3-shlibs, libtiff-shlibs (>= 3.6.0), netcdf-shlibs,
proj-shlibs, libgeos2-shlibs,
unixodbc2-shlibs | unixodbc2-nox-shlibs,
postgresql82-shlibs (>=8.0.2-12),
postgis82,
szip-shlibs, libiconv, xerces-c-shlibs, hdf5-shlibs,
libogdi3-shlibs, sqlite3-shlibs
<<
Files: lib/libgdal.*.dylib
Shlibs: %p/lib/libgdal.1.dylib 14.0.0 %n (>= 1.5.1-1002)
DocFiles: NEWS
<<
SplitOff2: <<
Package: %N-dev
Description: GDAL/OGR development headers
Replaces: %N (<< %v-%r), gdal-nopgsql-dev
Conflicts: %N (<< %v-%r), gdal-nopgsql-dev
Depends: %N-shlibs (= %v-%r)
BuildDependsOnly: true
Files: bin/gdal-config include/gdal1 lib/*.a lib/*.la lib/libgdal.dylib
DocFiles: NEWS
<<

DescPackaging: <<

As of 1.5.0, the patch is no longer needed

Jean-Francois Mertens submitted a patch to allow hdf4 and hdf5

Previous versions of this package were maintained by Matt Stephenson
, Blair Zajac
and BABA Yoshihiko .
<<

DescPort: <<
1.3 conflicts with the gdal headers of older versions. gdal.patch
solves this problem by changing the include orders. For future
versions, gdal13 headers will be in %p/include/gdal13 and so on. (This
has not happened. Still include/gdal1. -kurt 12/2006)

1.3 adds HDF-5 support.

1.2.6-5 fixes gdal-config and adds Xerces and SQLite supports.
1.2.6-4 for Python support (see gdal-python-py23)
--with-geos is enabled since 1.2.6-1.

The large number of gdal include files are moved into %p/include
subdirectory and gdal-config has been patched to have the correct
include file path.

Uses -Os, otherwise it compiles with no optimization.

Uses --with-local=%p in ConfigureParams to have -I%p/include and
-L%p/lib be used in compiling this package. But even with this set,
not all files are compiled with -I%p/include and so this is put in
SetCFLAGS and SetCXXFLAGS.

Uses --with-static-proj4=%p in ConfigureParams, but libproj still ends
up linking dynamically.

Uses --with-hdf4=no in ConfigureParams to avoid a compile error in
EHapi.c.

Franks Warmerdam says using the "internal" settings should not be
necessary, as the libs are tested to see if they are compatible.

As of 1.3.2, removing the Conflict with itself since that -dev was
only able to be installed at the same time as gdal{,-shlibs}

TODO:

There are lots of other formats/libs that could be enabled, but have
not yet been tried.
<<

# End of Info2
<<

gdal _unstable_ 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)