Ticket #26073: Portfile.diff

File Portfile.diff, 2.3 KB (added by ldeck, 14 years ago)

adding variant postgresql90

  • Portfile

    old new  
    2222
    2323use_parallel_build              yes
    2424
    25 variant postgresql82 conflicts postgresql83 postgresql84 description {Use PostgreSQL 8.2 libraries} {
     25variant postgresql82 conflicts postgresql83 postgresql84 postgresql90 description {Use PostgreSQL 8.2 libraries} {
    2626    depends_lib-append          port:postgresql82
    2727    archcheck.files-append      lib/postgresql82/libpq.dylib
    2828    configure.args-append       --with-pgsql=${prefix}/lib/postgresql82/bin \
    2929                                --with-pdo-pgsql=${prefix}/lib/postgresql82/bin
    3030}
    3131
    32 variant postgresql83 conflicts postgresql82 postgresql84 description {Use PostgreSQL 8.3 libraries} {
     32variant postgresql83 conflicts postgresql82 postgresql84 postgresql90 description {Use PostgreSQL 8.3 libraries} {
    3333    depends_lib-append          port:postgresql83
    3434    archcheck.files-append      lib/postgresql83/libpq.dylib
    3535    configure.args-append       --with-pgsql=${prefix}/lib/postgresql83/bin \
    3636                                --with-pdo-pgsql=${prefix}/lib/postgresql83/bin
    3737}
    3838
    39 variant postgresql84 conflicts postgresql82 postgresql83 description {Use PostgreSQL 8.4 libraries} {
     39variant postgresql84 conflicts postgresql82 postgresql83 postgresql90 description {Use PostgreSQL 8.4 libraries} {
    4040    depends_lib-append          port:postgresql84
    4141    archcheck.files-append      lib/postgresql84/libpq.dylib
    4242    configure.args-append       --with-pgsql=${prefix}/lib/postgresql84/bin \
    4343                                --with-pdo-pgsql=${prefix}/lib/postgresql84/bin
    4444}
    4545
    46 if {![variant_isset postgresql82] && ![variant_isset postgresql83]} {
     46variant postgresql90 conflicts postgresql82 postgresql83 postgresql84 description {Use PostgreSQL 9.0 libraries} {
     47    depends_lib-append          port:postgresql90
     48    archcheck.files-append      lib/postgresql90/libpq.dylib
     49    configure.args-append       --with-pgsql=${prefix}/lib/postgresql90/bin \
     50                                --with-pdo-pgsql=${prefix}/lib/postgresql90/bin
     51}
     52
     53if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql90]} {
    4754    default_variants +postgresql84
    4855}