Ticket #18418: Portfile-gdal.diff
File Portfile-gdal.diff, 6.7 KB (added by seanasy@…, 16 years ago) |
---|
-
Portfile
old new 1 # $Id: Portfile 39275 2008-08-15 07:50:10Z landonf@macports.org $1 # 2 2 3 3 PortSystem 1.0 4 4 name gdal 5 version 1. 5.16 revision 15 version 1.6.0 6 revision 0 7 7 maintainers seanasy@gmail.com 8 8 platforms darwin 9 9 description GDAL - Geospatial Data Abstraction Library … … 15 15 (which lives within the GDAL source tree) provides a \ 16 16 similar capability for simple features vector data. 17 17 homepage http://www.gdal.org/ 18 master_sites http://www.gdal.org/dl/ 18 master_sites http://www.gdal.org/dl/ \ 19 http://download.osgeo.org/gdal/ 19 20 categories science 20 checksums md5 76b53917142c5e9ad2d0ac20fb99890b 21 checksums md5 0c53697511f489455f8b60e843986568 \ 22 rmd160 85bf968b5ec6c2af5a02597bc4c8375d8f775fec \ 23 sha1 cae5a891231ee5794350d1626a688d802a429423 21 24 22 25 depends_lib port:zlib port:libpng port:tiff port:libgeotiff port:jpeg \ 23 26 port:giflib port:proj 24 27 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 28 configure.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 \ 29 46 47 30 48 # Patch to ensure that the python installation respects DESTDIR 31 49 patchfiles patch-swig_python_GNUmakefile 32 50 51 # Patches for universal build 52 53 pre-build { 54 if {[variant_isset universal]} { 55 system "cd ${worksrcpath} && patch -p0 < ${portpath}/files/patch_cpl_config_h" 56 } 57 } 58 33 59 # Set target to none 34 60 build.target 35 61 36 variant mrsid { 62 variant 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 68 variant 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 74 variant mrsid description {Enable MrSID file format} { 37 75 depends_lib-append port:geoexpress-sdk 76 configure.args-delete --without-mrsid 38 77 configure.args-append --with-mrsid=${prefix}/share/Geo_DSDK 39 78 40 79 # Fixes for Geo_DSDK 7.x - http://trac.osgeo.org/gdal/ticket/2410 … … 42 81 patch-mrsid-configure 43 82 } 44 83 45 variant python24 { 84 variant 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 90 variant 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 96 variant 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 102 variant 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 108 variant 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 115 variant python24 description {Enable Python 2.4 support} { 46 116 depends_lib-append port:python24 \ 47 117 port:py-numpy 118 configure.args-delete --without-python 48 119 configure.args-append --with-python 49 120 build.args-append PYTHON=python2.4 50 121 } 51 122 52 variant python25 {123 variant python25 description {Enable Python 2.5 support} { 53 124 depends_lib-append port:python25 \ 54 125 port:py25-numpy 126 configure.args-delete --without-python 55 127 configure.args-append --with-python 56 128 build.args-append PYTHON=python2.5 57 129 } 58 130 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} 131 variant 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 67 137 } 68 138 69 variant postgresql81 { 139 # Database variants 140 variant postgresql81 description {Enable PostgreSQL 8.1 support} { 70 141 depends_lib-append port:postgresql81 71 142 configure.args-delete --without-pg 72 143 configure.args-append --with-pg=${prefix}/lib/postgresql81/bin/pg_config 73 144 } 74 145 75 variant postgresql82 {146 variant postgresql82 description {Enable PostgreSQL 8.2 support} { 76 147 depends_lib-append port:postgresql82 77 148 configure.args-delete --without-pg 78 149 configure.args-append --with-pg=${prefix}/lib/postgresql82/bin/pg_config 79 150 } 80 151 81 variant postgresql83 {152 variant postgresql83 description {Enable PostgreSQL 8.3 support} { 82 153 depends_lib-append port:postgresql83 83 154 configure.args-delete --without-pg 84 155 configure.args-append --with-pg=${prefix}/lib/postgresql83/bin/pg_config 85 156 } 86 157 87 variant sqlite3 { 158 variant 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 164 variant sqlite3 description {Enable SQLite3 support} { 88 165 depends_lib-append port:sqlite3 89 166 configure.args-delete --without-sqlite 90 167 configure.args-append --with-sqlite=${prefix} 91 168 } 92 169 93 variant framework { 170 variant 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 177 variant framework description {Build as a Mac OS X framework} { 94 178 configure.args-append --with-macosx-framework 95 179 } 96 180