Ticket #18418: Portfile-gdal.diff

File Portfile-gdal.diff, 6.7 KB (added by seanasy@…, 15 years ago)
  • Portfile

    old new  
    1 # $Id: Portfile 39275 2008-08-15 07:50:10Z landonf@macports.org $
     1#
    22
    33PortSystem 1.0
    44name            gdal
    5 version         1.5.1
    6 revision        1
     5version         1.6.0
     6revision        0
    77maintainers     seanasy@gmail.com
    88platforms       darwin
    99description     GDAL - Geospatial Data Abstraction Library
     
    1515                        (which lives within the GDAL source tree) provides a \
    1616                        similar capability for simple features vector data.
    1717homepage        http://www.gdal.org/
    18 master_sites    http://www.gdal.org/dl/
     18master_sites    http://www.gdal.org/dl/ \
     19                                http://download.osgeo.org/gdal/
    1920categories              science
    20 checksums               md5 76b53917142c5e9ad2d0ac20fb99890b
     21checksums               md5 0c53697511f489455f8b60e843986568 \
     22                                rmd160 85bf968b5ec6c2af5a02597bc4c8375d8f775fec \
     23                                sha1 cae5a891231ee5794350d1626a688d802a429423
    2124
    2225depends_lib     port:zlib port:libpng port:tiff port:libgeotiff port:jpeg \
    2326                        port:giflib port:proj
    2427
    25 configure.args  --without-python --with-libz=${prefix} --with-png=${prefix} \
    26         --with-libtiff=${prefix} --with-geotiff=${prefix} --with-jpeg=${prefix} \
    27         --with-gif=${prefix} --without-pg --without-mysql --without-sqlite \
    28         --mandir=${prefix}/share/man --with-static-proj4=${prefix} --without-macosx-framework
     28configure.args  --with-local=${prefix} --with-libz=${prefix} \
     29                                --with-png=${prefix} \
     30                                --with-libtiff=${prefix} --with-geotiff=${prefix} \
     31                                --with-jpeg=${prefix} --with-gif=${prefix} \
     32                                --with-static-proj4=${prefix} \
     33                                --without-pg --without-grass --without-libgrass \
     34                                --without-cfitsio --without-pcraster --without-netcdf \
     35                                --without-ogdi --without-fme --without-hdf4 --without-hdf5 \
     36                                --without-jasper --without-ecw --without-kakadu --without-mrsid \
     37                                --without-jp2mrsid --without-msg --without-bsb --without-oci \
     38                                --without-grib --without-mysql --without-ingres --without-xerces \
     39                                --without-expat --without-odbc --with-dods-support=no \
     40                                --without-curl --without-sqlite3 \
     41                                --without-dwgdirect --without-idb --without-sde --without-geos \
     42                                --without-pam --without-macosx-framework --without-perl \
     43                                --without-php --without-ruby --without-python --without-ogpython \
     44                                --without-xerces \
     45                                --mandir=${prefix}/share/man --with-pthreads \
    2946
     47                               
    3048# Patch to ensure that the python installation respects DESTDIR
    3149patchfiles      patch-swig_python_GNUmakefile
    3250
     51# Patches for universal build
     52
     53pre-build {
     54        if {[variant_isset universal]} {
     55                system "cd ${worksrcpath} && patch -p0 < ${portpath}/files/patch_cpl_config_h"
     56        }
     57}
     58
    3359# Set target to none
    3460build.target
    3561
    36 variant mrsid {
     62variant geos description {Enable GEOS geometry engine functionality} {
     63        depends_lib-append              port:geos
     64        configure.args-delete   --without-geos
     65        configure.args-append   --with-geos=${prefix}/bin/geos-config
     66}
     67
     68variant curl description {Enable curl support} {
     69        depends_lib-append              port:curl
     70        configure.args-delete   --without-curl
     71        configure.args-append   --with-curl=${prefix}/bin/curl-config
     72}
     73
     74variant mrsid description {Enable MrSID file format} {
    3775        depends_lib-append              port:geoexpress-sdk
     76        configure.args-delete   --without-mrsid
    3877        configure.args-append           --with-mrsid=${prefix}/share/Geo_DSDK
    3978
    4079        # Fixes for Geo_DSDK 7.x - http://trac.osgeo.org/gdal/ticket/2410
     
    4281                                        patch-mrsid-configure
    4382}
    4483
    45 variant python24 {
     84variant hdf4 description {Enable HDF4 file format} {
     85        depends_lib-append              port:hdf4
     86        configure.args-delete   --without-hdf4
     87        configure.args-append   --with-hdf4=${prefix}
     88}
     89
     90variant hdf5 description {Enable HDF5 file format} {
     91        depends_lib-append              port:hdf5
     92        configure.args-delete   --without-hdf5
     93        configure.args-append   --with-hdf5=${prefix}
     94}
     95
     96variant netcdf description {Enable NetCDF file format} {
     97        depends_lib-append              port:netcdf
     98        configure.args-delete   --without-netcdf
     99        configure.args-append   --with-netcdf=${prefix}
     100}
     101
     102variant jasper description {Enable JasPer JPEG-2000 file format} {
     103        depends_lib-append              port:jasper
     104        configure.args-delete   --without-jasper
     105        configure.args-append   --with-jasper=${prefix}
     106}
     107
     108variant xerces description {Enable xerces XML support for GML file format} {
     109        depends_lib-append              port:xercesc
     110        configure.args-delete   --without-xerces
     111        configure.args-append   --with-xerces=${prefix}
     112}
     113
     114# Python variants
     115variant python24 description {Enable Python 2.4 support} {
    46116        depends_lib-append              port:python24 \
    47117                                        port:py-numpy
     118        configure.args-delete   --without-python
    48119        configure.args-append           --with-python
    49120        build.args-append               PYTHON=python2.4
    50121}
    51122
    52 variant python25 {
     123variant python25 description {Enable Python 2.5 support} {
    53124        depends_lib-append              port:python25 \
    54125                                        port:py25-numpy
     126        configure.args-delete   --without-python
    55127        configure.args-append           --with-python
    56128        build.args-append               PYTHON=python2.5
    57129}
    58130
    59 variant geos {
    60         depends_lib-append              port:geos
    61         configure.args-append   --with-geos=${prefix}/bin/geos-config
    62 }
    63 
    64 variant hdf5 {
    65         depends_lib-append              port:hdf5
    66         configure.args-append   --with-hdf5=${prefix}
     131variant python26 description {Enable Python 2.6 support} {
     132        depends_lib-append              port:python26 \
     133                                        port:py26-numpy
     134        configure.args-delete   --without-python
     135        configure.args-append           --with-python
     136        build.args-append               PYTHON=python2.6
    67137}
    68138
    69 variant postgresql81 {
     139# Database variants
     140variant postgresql81 description {Enable PostgreSQL 8.1 support} {
    70141        depends_lib-append              port:postgresql81
    71142        configure.args-delete   --without-pg
    72143        configure.args-append   --with-pg=${prefix}/lib/postgresql81/bin/pg_config
    73144}
    74145
    75 variant postgresql82 {
     146variant postgresql82 description {Enable PostgreSQL 8.2 support} {
    76147        depends_lib-append              port:postgresql82
    77148        configure.args-delete   --without-pg
    78149        configure.args-append   --with-pg=${prefix}/lib/postgresql82/bin/pg_config
    79150}
    80151
    81 variant postgresql83 {
     152variant postgresql83 description {Enable PostgreSQL 8.3 support} {
    82153        depends_lib-append              port:postgresql83
    83154        configure.args-delete   --without-pg
    84155        configure.args-append   --with-pg=${prefix}/lib/postgresql83/bin/pg_config
    85156}
    86157
    87 variant sqlite3 {
     158variant mysql5 description {Enable MySQL 5 support} {
     159        depends_lib-append              port:mysql5
     160        configure.args-delete   --without-mysql
     161        configure.args-append   --with-mysql=${prefix}/lib/mysql5/bin/mysql_config
     162}       
     163
     164variant sqlite3 description {Enable SQLite3 support} {
    88165        depends_lib-append              port:sqlite3
    89166        configure.args-delete   --without-sqlite
    90167        configure.args-append   --with-sqlite=${prefix}
    91168}
    92169
    93 variant framework {
     170variant odbc description {Enable ODBC support} {
     171        depends_lib-append              port:unixODBC
     172        configure.args-delete   --without-odbc
     173        configure.args-append   --with-odbc=${prefix}
     174}
     175
     176# OS X Framework
     177variant framework description {Build as a Mac OS X framework} {
    94178        configure.args-append   --with-macosx-framework
    95179}
    96180