# $Id: Portfile 85618 2011-10-15 09:16:59Z jmr@macports.org $ PortSystem 1.0 PortGroup perl5 1.0 perl5.setup DBD-Pg 2.17.2 revision 2 license {Artistic-1 GPL} categories perl databases maintainers nomaintainer description Perl DBI module to provide access to PostgreSQL databases long_description DBD::Pg is a Perl module which works with the DBI \ module to provide access to PostgreSQL databases platforms darwin checksums md5 2cd63605a9420a63c780f627420a359a \ sha1 e4509a8e1a06cc196ed6fc3e7976c124633bfeb8 \ rmd160 3f509dc9e1f9562f74d565a939f5e072190e6d51 if {${perl5.major} != ""} { depends_lib-append port:p${perl5.major}-dbi \ port:p${perl5.major}-version \ port:p${perl5.major}-module-signature \ port:p${perl5.major}-test-yaml-meta \ port:p${perl5.major}-test-warn variant postgresql7 conflicts postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 description {build with postgresql7 port} { depends_lib-append port:postgresql7 configure.env PATH=${prefix}/lib/pgsql7/bin:$env(PATH) \ POSTGRES_INCLUDE="${prefix}/include/pgsql7" \ POSTGRES_LIB="${prefix}/lib/pgsql7 -lssl" } variant postgresql80 conflicts postgresql7 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 description {build with postgresql80 port} { depends_lib-append port:postgresql80 configure.env PATH=${prefix}/lib/pgsql8/bin:$env(PATH) \ POSTGRES_INCLUDE="${prefix}/include/pgsql8" \ POSTGRES_LIB="${prefix}/lib/pgsql8 -lssl" } variant postgresql81 conflicts postgresql7 postgresql80 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 description {build with postgresql81 port} { depends_lib-append port:postgresql81 configure.env PATH=${prefix}/lib/postgresql81/bin:$env(PATH) \ POSTGRES_INCLUDE="${prefix}/include/postgresql81" \ POSTGRES_LIB="${prefix}/lib/postgresql81 -lssl" } variant postgresql82 conflicts postgresql7 postgresql80 postgresql81 postgresql83 postgresql84 postgresql90 postgresql91 description {build with postgresql82 port} { depends_lib-append port:postgresql82 configure.env PATH=${prefix}/lib/postgresql82/bin:$env(PATH) \ POSTGRES_INCLUDE="${prefix}/include/postgresql82" \ POSTGRES_LIB="${prefix}/lib/postgresql82 -lssl" } variant postgresql83 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql84 postgresql90 postgresql91 description {build with postgresql83 port} { depends_lib-append port:postgresql83 configure.env PATH=${prefix}/lib/postgresql83/bin:$env(PATH) \ POSTGRES_INCLUDE="${prefix}/include/postgresql83" \ POSTGRES_LIB="${prefix}/lib/postgresql83 -lssl" } variant postgresql84 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql90 postgresql91 description {build with postgresql84 port} { depends_lib-append port:postgresql84 configure.env PATH=${prefix}/lib/postgresql84/bin:$env(PATH) \ POSTGRES_INCLUDE="${prefix}/include/postgresql84" \ POSTGRES_LIB="${prefix}/lib/postgresql84 -lssl" } variant postgresql90 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql91 description {build with postgresql90 port} { depends_lib-append port:postgresql90 configure.env PATH=${prefix}/lib/postgresql90/bin:$env(PATH) \ POSTGRES_INCLUDE="${prefix}/include/postgresql90" \ POSTGRES_LIB="${prefix}/lib/postgresql90 -lssl" } variant postgresql91 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 description {build with postgresql91 port} { depends_lib-append port:postgresql91 configure.env PATH=${prefix}/lib/postgresql91/bin:$env(PATH) \ POSTGRES_INCLUDE="${prefix}/include/postgresql91" \ POSTGRES_LIB="${prefix}/lib/postgresql91 -lssl" } # Default to latest release if {![variant_isset postgresql7] && ![variant_isset postgresql80] && ![variant_isset postgresql81] && ![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql91]} { default_variants +postgresql90 } }