[54566] trunk/dports/php

ryandesign at macports.org ryandesign at macports.org
Wed Jul 29 09:09:49 PDT 2009


Revision: 54566
          http://trac.macports.org/changeset/54566
Author:   ryandesign at macports.org
Date:     2009-07-29 09:09:48 -0700 (Wed, 29 Jul 2009)
Log Message:
-----------
php5-mysql: new port; see #19091

Added Paths:
-----------
    trunk/dports/php/php5-mysql/
    trunk/dports/php/php5-mysql/Portfile

Added: trunk/dports/php/php5-mysql/Portfile
===================================================================
--- trunk/dports/php/php5-mysql/Portfile	                        (rev 0)
+++ trunk/dports/php/php5-mysql/Portfile	2009-07-29 16:09:48 UTC (rev 54566)
@@ -0,0 +1,54 @@
+# $Id$
+
+PortSystem                      1.0
+PortGroup                       php5extension 1.0
+
+php5extension.setup             mysql 5.3.0 bundled
+categories-append               databases
+platforms                       darwin
+maintainers                     ryandesign
+
+description                     a PHP interface to MySQL databases, including \
+                                the mysql, mysqli and pdo_mysql extensions
+
+long_description                ${description}
+
+checksums                       md5     846760cd655c98dfd86d6d97c3d964b0 \
+                                sha1    934700941d216c453376e3bf24347041cf12c6dc \
+                                rmd160  9a71b74052b0ca515f2ddf95c051b47a73d33f44
+
+depends_lib-append              port:zlib
+
+configure.args-append           --with-zlib-dir=${prefix} \
+                                --enable-pdo
+
+use_parallel_build              yes
+
+variant mysqlnd conflicts mysql4 mysql5 description {Use MySQL Native Driver (default)} {
+    configure.args-append       --with-mysql=shared,mysqlnd \
+                                --with-mysqli=shared,mysqlnd \
+                                --with-pdo-mysql=shared,mysqlnd
+}
+
+variant mysql4 conflicts mysql5 mysqlnd description {Use MySQL 4 libraries} {
+    depends_lib-append          port:mysql4
+    configure.args-append       --with-mysql=shared,${prefix} \
+                                --with-pdo-mysql=shared,${prefix}
+}
+
+variant mysql5 conflicts mysql4 mysqlnd description {Use MySQL 5 libraries} {
+    depends_lib-append          path:bin/mysql_config5:mysql5
+    configure.args-append       --with-mysql=shared,${workpath}/mysql5 \
+                                --with-mysqli=shared,${prefix}/bin/mysql_config5 \
+                                --with-pdo-mysql=shared,${prefix}/bin/mysql_config5 \
+                                --with-mysql-sock=${prefix}/var/run/mysql5/mysqld.sock
+    post-extract {
+        file mkdir ${workpath}/mysql5
+        file link -symbolic ${workpath}/mysql5/lib ${prefix}/lib/mysql5
+        file link -symbolic ${workpath}/mysql5/include ${prefix}/include/mysql5
+    }
+}
+
+if {![variant_isset mysql4] && ![variant_isset mysql5]} {
+    default_variants +mysqlnd
+}


Property changes on: trunk/dports/php/php5-mysql/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090729/13415a44/attachment.html>


More information about the macports-changes mailing list