Changeset 112160


Ignore:
Timestamp:
Oct 14, 2013, 11:11:15 AM (7 years ago)
Author:
stromnov@…
Message:

gdal: add conflicts to postgresqlXX variants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gis/gdal/Portfile

    r112137 r112160  
    234234
    235235# Database variants
    236 variant postgresql81 description {Enable PostgreSQL 8.1 support} {
    237     depends_lib-append      port:postgresql81
    238     configure.args-delete   --without-pg
    239     configure.args-append   --with-pg=${prefix}/lib/postgresql81/bin/pg_config
    240 }
    241 
    242 variant postgresql82 description {Enable PostgreSQL 8.2 support} {
    243     depends_lib-append      port:postgresql82
    244     configure.args-delete   --without-pg
    245     configure.args-append   --with-pg=${prefix}/lib/postgresql82/bin/pg_config
    246 }
    247 
    248 variant postgresql83 description {Enable PostgreSQL 8.3 support} {
    249     depends_lib-append      port:postgresql83
    250     configure.args-delete   --without-pg
    251     configure.args-append   --with-pg=${prefix}/lib/postgresql83/bin/pg_config
    252 }
    253 
    254 variant postgresql84 description {Enable PostgreSQL 8.4 support} {
    255     depends_lib-append      port:postgresql84
    256     configure.args-delete   --without-pg
    257     configure.args-append   --with-pg=${prefix}/lib/postgresql84/bin/pg_config
    258 }
    259 
    260 variant postgresql90 description {Enable PostgreSQL 9.0 support} {
    261     depends_lib-append      port:postgresql90
    262     configure.args-delete   --without-pg
    263     configure.args-append   --with-pg=${prefix}/lib/postgresql90/bin/pg_config
    264 }
    265 
    266 variant postgresql91 description {Enable PostgreSQL 9.1 support} {
    267     depends_lib-append      port:postgresql91
    268     configure.args-delete   --without-pg
    269     configure.args-append   --with-pg=${prefix}/lib/postgresql91/bin/pg_config
    270 }
    271 
    272 variant postgresql92 description {Enable PostgreSQL 9.2 support} {
    273     depends_lib-append      port:postgresql92
    274     configure.args-delete   --without-pg
    275     configure.args-append   --with-pg=${prefix}/lib/postgresql92/bin/pg_config
    276 }
    277 
    278 variant postgresql93 description {Enable PostgreSQL 9.3 support} {
    279     depends_lib-append      port:postgresql93
    280     configure.args-delete   --without-pg
    281     configure.args-append   --with-pg=${prefix}/lib/postgresql93/bin/pg_config
     236set postgresql_suffixes {81 82 83 84 90 91 92 93}
     237
     238set portsgresql_variants {}
     239foreach s ${postgresql_suffixes} {
     240    lappend portsgresql_variants postgresql${s}
     241}
     242
     243foreach s ${postgresql_suffixes} {
     244    set p postgresql${s}
     245    set v [string index ${s} 0].[string index ${s} 1]
     246    set i [lsearch -exact ${portsgresql_variants} ${p}]
     247    set c [lreplace ${portsgresql_variants} ${i} ${i}]
     248    eval [subst {
     249        variant ${p} description "Enable PostgreSQL ${v} support" conflicts ${c} {
     250            depends_lib-append      port:${p}
     251            configure.args-delete   --without-pg
     252            configure.args-append   --with-pg=${prefix}/lib/postgresql${s}/bin/pg_config
     253        }
     254    }]
    282255}
    283256
Note: See TracChangeset for help on using the changeset viewer.