[106507] trunk/dports/lang/php/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue May 28 15:01:37 PDT 2013


Revision: 106507
          https://trac.macports.org/changeset/106507
Author:   ryandesign at macports.org
Date:     2013-05-28 15:01:37 -0700 (Tue, 28 May 2013)
Log Message:
-----------
php-mysql: add mysql51/mysql55/mariadb/percona variants (#37452)

Modified Paths:
--------------
    trunk/dports/lang/php/Portfile

Modified: trunk/dports/lang/php/Portfile
===================================================================
--- trunk/dports/lang/php/Portfile	2013-05-28 21:35:18 UTC (rev 106506)
+++ trunk/dports/lang/php/Portfile	2013-05-28 22:01:37 UTC (rev 106507)
@@ -666,7 +666,7 @@
     
     configure.args-append   --with-zlib-dir=${prefix}
     
-    variant mysqlnd conflicts mysql4 mysql5 description {Use MySQL Native Driver} {
+    variant mysqlnd conflicts mysql4 mysql5 mysql51 mysql55 mariadb percona description {Use MySQL Native Driver} {
         configure.args-append   --with-mysql=mysqlnd \
                                 --with-mysqli=mysqlnd \
                                 --with-pdo-mysql=mysqlnd
@@ -687,14 +687,14 @@
 "
     }
     
-    variant mysql4 conflicts mysql5 mysqlnd description {Use MySQL 4 libraries} {
+    variant mysql4 conflicts mysqlnd mysql5 mysql51 mysql55 mariadb percona description {Use MySQL 4 libraries} {
         depends_lib-append      port:mysql4
         
         configure.args-append   --with-mysql=${prefix} \
                                 --with-pdo-mysql=${prefix}
     }
     
-    variant mysql5 conflicts mysql4 mysqlnd description {Use MySQL 5 libraries} {
+    variant mysql5 conflicts mysqlnd mysql4 mysql51 mysql55 mariadb percona description {Use MySQL 5 libraries} {
         depends_lib-append      path:bin/mysql_config5:mysql5
         
         post-extract {
@@ -709,7 +709,67 @@
                                 --with-mysql-sock=${prefix}/var/run/mysql5/mysqld.sock
     }
     
-    if {![variant_isset mysql4] && ![variant_isset mysql5]} {
+    variant mysql51 conflicts mysqlnd mysql4 mysql5 mysql55 mariadb percona description {Use MySQL 5.1 libraries} {
+        depends_lib-append      port:mysql51
+        
+        post-extract {
+            file mkdir ${workpath}/mysql51
+            file link -symbolic ${workpath}/mysql51/lib ${prefix}/lib/mysql51
+            file link -symbolic ${workpath}/mysql51/include ${prefix}/include/mysql51
+        }
+        
+        configure.args-append   --with-mysql=${workpath}/mysql51 \
+                                --with-mysqli=${prefix}/lib/mysql51/bin/mysql_config \
+                                --with-pdo-mysql=${prefix}/lib/mysql51/bin/mysql_config \
+                                --with-mysql-sock=${prefix}/var/run/mysql51/mysqld.sock
+    }
+    
+    variant mysql55 conflicts mysqlnd mysql4 mysql5 mysql51 mariadb percona description {Use MySQL 5.5 libraries} {
+        depends_lib-append      port:mysql55
+        
+        post-extract {
+            file mkdir ${workpath}/mysql55
+            file link -symbolic ${workpath}/mysql55/lib ${prefix}/lib/mysql55
+            file link -symbolic ${workpath}/mysql55/include ${prefix}/include/mysql55
+        }
+        
+        configure.args-append   --with-mysql=${workpath}/mysql55 \
+                                --with-mysqli=${prefix}/lib/mysql55/bin/mysql_config \
+                                --with-pdo-mysql=${prefix}/lib/mysql55/bin/mysql_config \
+                                --with-mysql-sock=${prefix}/var/run/mysql55/mysqld.sock
+    }
+    
+    variant mariadb conflicts mysqlnd mysql4 mysql5 mysql51 mysql55 percona description {Use MariaDB libraries} {
+        depends_lib-append      port:mariadb
+        
+        post-extract {
+            file mkdir ${workpath}/mariadb
+            file link -symbolic ${workpath}/mariadb/lib ${prefix}/lib/mariadb
+            file link -symbolic ${workpath}/mariadb/include ${prefix}/include/mariadb
+        }
+        
+        configure.args-append   --with-mysql=${workpath}/mariadb \
+                                --with-mysqli=${prefix}/lib/mariadb/bin/mysql_config \
+                                --with-pdo-mysql=${prefix}/lib/mariadb/bin/mysql_config \
+                                --with-mysql-sock=${prefix}/var/run/mariadb/mysqld.sock
+    }
+    
+    variant percona conflicts mysqlnd mysql4 mysql5 mysql51 mysql55 mariadb description {Use Percona libraries} {
+        depends_lib-append      port:percona
+        
+        post-extract {
+            file mkdir ${workpath}/percona
+            file link -symbolic ${workpath}/percona/lib ${prefix}/lib/percona
+            file link -symbolic ${workpath}/percona/include ${prefix}/include/percona
+        }
+        
+        configure.args-append   --with-mysql=${workpath}/percona \
+                                --with-mysqli=${prefix}/lib/percona/bin/mysql_config \
+                                --with-pdo-mysql=${prefix}/lib/percona/bin/mysql_config \
+                                --with-mysql-sock=${prefix}/var/run/percona/mysqld.sock
+    }
+    
+    if {![variant_isset mysql4] && ![variant_isset mysql5] && ![variant_isset mysql51] && ![variant_isset mysql55] && ![variant_isset mariadb] && ![variant_isset percona]} {
         default_variants +mysqlnd
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130528/1a7bcbc3/attachment.html>


More information about the macports-changes mailing list