gdal-python-py stable port information

Info2: <<
Package: gdal-python-py%type_pkg[python]
Type: python(2.5 2.4 2.3)
Version: 1.4.2
Revision: 1003
#Distribution: (%type_pkg[python] = 23) 10.3, (%type_pkg[python] = 23) 10.4
Distribution: 10.4
Description: GDAL Python Module
License: BSD
Homepage: http://www.gdal.org
Maintainer: Kurt Schwehr

# Dependencies.
Depends: <<
gdal-shlibs (=%v-%r),
postgresql82,
postgis82,
(%type_raw[python] = 2.4) python%type_pkg[python], python%type_pkg[python]-shlibs, numeric-py%type_pkg[python]
,libjasper.1-shlibs
,xerces-c-shlibs
<<

# gdal needed so that gdal-dev will build ok too?
BuildDepends: <<
libiconv-dev, cfitsio,
gdal (=%v-%r),
gdal-dev (=%v-%r),
libgeos2,
libogdi3,
postgresql82-dev,
postgis82
,libjasper.1
,xerces-c-dev
<<

Conflicts:
Replaces:

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

# Patch Phase.
Patch: gdal.patch

# 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-grass=no --with-python --with-geotiff=internal --with-hdf4=no --with-ogdi --with-pg=%p/bin/pg_config --without-mysql --with-geos --with-static-proj4=%p

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=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 --with-python

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

perl -pi.bak -e 's,^PYTHON_INCLUDES = \@PYTHON_INCLUDES\@,PYTHON_INCLUDES = -I%p/include/python%type_raw[python] -I%p/include/python%type_raw[python]/Numeric -DHAVE_NUMPY,' GDALmake.opt.in
perl -pi.bak -e 's,^PYTHON_LIBS = \@PYTHON_LIBS\@,PYTHON_LIBS = -bind_at_load -L%p/lib/python%type_raw[python]/config -lpython%type_raw[python] ,' GDALmake.opt.in
perl -pi.bak -e 's,^PYTHON_CFLAGS = \@PYTHON_CFLAGS\@ \@NUMPY_FLAG\@,PYTHON_CFLAGS = -I%p/include/python%type_raw[python] -I%p/include/python%type_raw[python]/Numeric,' GDALmake.opt.in
perl -pi.bak -e 's,^PYTHON = \@PYTHON\@,PYTHON = %p/bin/python%type_raw[python],' GDALmake.opt.in
perl -pi.bak -e 's,^PY_LD_SHARED = \@PY_LD_SHARED\@,PY_LD_SHARED = ,' GDALmake.opt.in
perl -pi.bak -e 's,^INST_PYMOD = \@pymoddir\@,INST_PYMOD = %i/lib/python%type_raw[python]/site-packages,' GDALmake.opt.in

./configure %c

make

pushd pymod
g++ -Wl,-bind_at_load -o .libs/_gdalmodule.so -bundle .libs/gdal_wrap.o .libs/numpydataset.o .libs/gdalnumeric.o ../.libs/libgdal.dylib -bundle -undefined dynamic_lookup
popd
<<

# Install Phase.
InstallScript: <<
#!/bin/sh -xe
pushd pymod
make install prefix=%i
popd
rm -rf %i/bin
perl -pi -e "s|^libdir.*$|libdir='%p/lib/python%type_raw[python]/site-packages'|" %i/lib/python%type_raw[python]/site-packages/_gdalmodule.la
<<

DocFiles: LICENSE NEWS

DescPort: <<
The python is Fink version of python.
<<

# End of Info2
<<

gdal-python-py _unstable_ port information

Info2: <<
Package: gdal-python-py%type_pkg[python]
Type: python(2.5 2.4 2.3)
Version: 1.4.2
Revision: 1003
#Distribution: (%type_pkg[python] = 23) 10.3, (%type_pkg[python] = 23) 10.4
Distribution: 10.4
Description: GDAL Python Module
License: BSD
Homepage: http://www.gdal.org
Maintainer: Kurt Schwehr

# Dependencies.
Depends: <<
gdal-shlibs (=%v-%r),
postgresql82,
postgis82,
(%type_raw[python] = 2.4) python%type_pkg[python], python%type_pkg[python]-shlibs, numeric-py%type_pkg[python]
,libjasper.1-shlibs
,xerces-c-shlibs
<<

# gdal needed so that gdal-dev will build ok too?
BuildDepends: <<
libiconv-dev, cfitsio,
gdal (=%v-%r),
gdal-dev (=%v-%r),
libgeos2,
libogdi3,
postgresql82-dev,
postgis82
,libjasper.1
,xerces-c-dev
<<

Conflicts:
Replaces:

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

# Patch Phase.
Patch: gdal.patch

# 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-grass=no --with-python --with-geotiff=internal --with-hdf4=no --with-ogdi --with-pg=%p/bin/pg_config --without-mysql --with-geos --with-static-proj4=%p

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=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 --with-python

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

perl -pi.bak -e 's,^PYTHON_INCLUDES = \@PYTHON_INCLUDES\@,PYTHON_INCLUDES = -I%p/include/python%type_raw[python] -I%p/include/python%type_raw[python]/Numeric -DHAVE_NUMPY,' GDALmake.opt.in
perl -pi.bak -e 's,^PYTHON_LIBS = \@PYTHON_LIBS\@,PYTHON_LIBS = -bind_at_load -L%p/lib/python%type_raw[python]/config -lpython%type_raw[python] ,' GDALmake.opt.in
perl -pi.bak -e 's,^PYTHON_CFLAGS = \@PYTHON_CFLAGS\@ \@NUMPY_FLAG\@,PYTHON_CFLAGS = -I%p/include/python%type_raw[python] -I%p/include/python%type_raw[python]/Numeric,' GDALmake.opt.in
perl -pi.bak -e 's,^PYTHON = \@PYTHON\@,PYTHON = %p/bin/python%type_raw[python],' GDALmake.opt.in
perl -pi.bak -e 's,^PY_LD_SHARED = \@PY_LD_SHARED\@,PY_LD_SHARED = ,' GDALmake.opt.in
perl -pi.bak -e 's,^INST_PYMOD = \@pymoddir\@,INST_PYMOD = %i/lib/python%type_raw[python]/site-packages,' GDALmake.opt.in

./configure %c

make

pushd pymod
g++ -Wl,-bind_at_load -o .libs/_gdalmodule.so -bundle .libs/gdal_wrap.o .libs/numpydataset.o .libs/gdalnumeric.o ../.libs/libgdal.dylib -bundle -undefined dynamic_lookup
popd
<<

# Install Phase.
InstallScript: <<
#!/bin/sh -xe
pushd pymod
make install prefix=%i
popd
rm -rf %i/bin
perl -pi -e "s|^libdir.*$|libdir='%p/lib/python%type_raw[python]/site-packages'|" %i/lib/python%type_raw[python]/site-packages/_gdalmodule.la
<<

DocFiles: LICENSE NEWS

DescPort: <<
The python is Fink version of python.
<<

# End of Info2
<<