25 | | configure.args --with-gd=${prefix} |
26 | | variant gdalogr description {Add raster formats from gdal (Geospatial Data Abstraction Library) and vector formats from OGR Simple Features Library} { |
27 | | depends_lib-append port:gdal |
28 | | configure.args-append --with-gdal=${prefix}/bin/gdal-config \ |
29 | | --with-ogr=${prefix}/bin/gdal-config |
| 29 | configure.args --with-gd=${prefix} \ |
| 30 | --with-png=${prefix} \ |
| 31 | --with-jpeg=${prefix} \ |
| 32 | --with-gif=${prefix} \ |
| 33 | --with-gif=${prefix} \ |
| 34 | |
| 35 | default_variants +wms +gdalogr +proj +cairo +wfs +proj +geos |
| 36 | |
| 37 | if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91]} { |
| 38 | default_variants-append +postgresql90 |
| 45 | if {[variant_isset wfs]} { |
| 46 | default_variants-append +proj +gdalogr +geos |
| 47 | } |
| 48 | |
| 49 | |
| 50 | variant postgresql83 conflicts postgresql84 postgresql90 postgresql91 description "Build using postgresql v8.3" { |
| 51 | depends_lib-append port:postgresql83 |
| 52 | configure.args-append --with-postgis=${prefix}/lib/postgresql83/bin/pg_config |
| 53 | } |
| 54 | |
| 55 | variant postgresql84 conflicts postgresql83 postgresql90 postgrsql91 description "Build using postgresql v8.4" { |
| 56 | depends_lib-append port:postgresql84 |
| 57 | configure.args-append --with-postgis=${prefix}/lib/postgresql84/bin/pg_config |
| 58 | } |
| 59 | |
| 60 | variant postgresql90 conflicts postgresql83 postgresql84 postgresql91 description "Build using postgresql v9.0" { |
| 61 | depends_lib-append port:postgresql90 |
| 62 | configure.args-append --with-postgis=${prefix}/lib/postgresql90/bin/pg_config |
| 63 | } |
| 64 | |
| 65 | variant postgresql91 conflicts postgresql83 postgresql84 postgresql90 description "Build using postgresql v9.1" { |
| 66 | depends_lib-append port:postgresql91 |
| 67 | configure.args-append --with-postgis=${prefix}/lib/postgresql91/bin/pg_config |
| 68 | } |
| 69 | |
| 70 | variant cairo description {Add SVG and PDF support through cairo} { |
| 71 | depends_lib-append path:lib/pkgconfig/cairo.pc:cairo |
| 72 | configure.args-append --with-cairo |
| 73 | } |
| 74 | |
| 75 | variant gdalogr description {Add GDAL/OGR input format support} { |
| 76 | depends_lib-append port:gdal |
| 77 | configure.args-append --with-gdal --with-ogr |
| 78 | } |
| 79 | |
| 80 | variant wms description {Add WMS server support} { |
| 81 | } |
| 82 | |
| 83 | variant wfs description {Add WFS server support} { |
| 84 | depends_lib-append port:libxml2 |
| 85 | configure.args-append --with-wfs |
| 86 | } |
| 87 | |
| 88 | variant proj description {Proj.4 reprojection support} { |
| 89 | depends_lib-append port:proj |
| 90 | configure.args-append --with-proj=${prefix} |
| 91 | } |
| 92 | |
| 93 | variant geos description {Add GEOS operations support} { |
| 94 | depends_lib-append port:geos |
| 95 | configure.args-append --with-geos |
| 96 | } |
| 97 | |