[63169] trunk/dports/mail/dovecot/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Jan 27 19:07:57 PST 2010


Revision: 63169
          http://trac.macports.org/changeset/63169
Author:   ryandesign at macports.org
Date:     2010-01-27 19:07:54 -0800 (Wed, 27 Jan 2010)
Log Message:
-----------
dovecot: make variants for each version of PostgreSQL, and make them actually work; fixes #12049

Modified Paths:
--------------
    trunk/dports/mail/dovecot/Portfile

Modified: trunk/dports/mail/dovecot/Portfile
===================================================================
--- trunk/dports/mail/dovecot/Portfile	2010-01-28 02:54:43 UTC (rev 63168)
+++ trunk/dports/mail/dovecot/Portfile	2010-01-28 03:07:54 UTC (rev 63169)
@@ -43,13 +43,43 @@
     adduser dovecot gid=${gid} realname=Dovecot
 }
 
-variant postgres description {Enable PostgreSQL support} {
-    depends_lib-append  port:postgresql80
+variant postgres requires postgresql80 description {Obsolete synonym for postgresql80 variant} {}
+
+variant postgresql80 conflicts postgresql81 postgresql82 postgresql83 postgresql84 description {Enable PostgreSQL 8.0 support} {
+    depends_lib-append          port:postgresql80
     configure.args-append       --with-pgsql
-    configure.ldflags-append    -L${prefix}/lib/pgsql8
-    configure.cppflags-append   -I${prefix}/include/pgsql8
+    configure.ldflags-append    -L${prefix}/lib/postgresql80
+    configure.cppflags-append   -I${prefix}/include/postgresql80
 }
 
+variant postgresql81 conflicts postgresql80 postgresql82 postgresql83 postgresql84 description {Enable PostgreSQL 8.1 support} {
+    depends_lib-append          port:postgresql81
+    configure.args-append       --with-pgsql
+    configure.ldflags-append    -L${prefix}/lib/postgresql81
+    configure.cppflags-append   -I${prefix}/include/postgresql81
+}
+
+variant postgresql82 conflicts postgresql80 postgresql81 postgresql83 postgresql84 description {Enable PostgreSQL 8.2 support} {
+    depends_lib-append          port:postgresql82
+    configure.args-append       --with-pgsql
+    configure.ldflags-append    -L${prefix}/lib/postgresql82
+    configure.cppflags-append   -I${prefix}/include/postgresql82
+}
+
+variant postgresql83 conflicts postgresql80 postgresql81 postgresql82 postgresql84 description {Enable PostgreSQL 8.3 support} {
+    depends_lib-append          port:postgresql83
+    configure.args-append       --with-pgsql
+    configure.ldflags-append    -L${prefix}/lib/postgresql83
+    configure.cppflags-append   -I${prefix}/include/postgresql83
+}
+
+variant postgresql84 conflicts postgresql80 postgresql81 postgresql82 postgresql83 description {Enable PostgreSQL 8.4 support} {
+    depends_lib-append          port:postgresql84
+    configure.args-append       --with-pgsql
+    configure.ldflags-append    -L${prefix}/lib/postgresql84
+    configure.cppflags-append   -I${prefix}/include/postgresql84
+}
+
 variant mysql5 description {Enable MySQL support} {
     depends_lib-append          path:bin/mysql_config5:mysql5
     configure.args-append       --with-mysql
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100127/37cfd62a/attachment.html>


More information about the macports-changes mailing list