[92745] trunk/dports/_resources/port1.0/group/php-1.0.tcl

ryandesign at macports.org ryandesign at macports.org
Sat May 5 12:01:52 PDT 2012


Revision: 92745
          https://trac.macports.org/changeset/92745
Author:   ryandesign at macports.org
Date:     2012-05-05 12:01:52 -0700 (Sat, 05 May 2012)
Log Message:
-----------
php portgroup: fix configure error in PDO portions of bundled database extensions; see #33742

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/php-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/php-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/php-1.0.tcl	2012-05-05 18:54:24 UTC (rev 92744)
+++ trunk/dports/_resources/port1.0/group/php-1.0.tcl	2012-05-05 19:01:52 UTC (rev 92745)
@@ -264,6 +264,16 @@
             }
         }
         
+        post-extract {
+            # The PDO extensions need the PDO headers which are installed by the ${php} port.
+            foreach extension ${php.extensions} {
+                if {[regexp {^pdo_} ${extension}]} {
+                    file mkdir ${worksrcpath}/ext/${extension}/ext
+                    ln -s ${prefix}/include/${php}/php/ext/pdo ${worksrcpath}/ext/${extension}/ext
+                }
+            }
+        }
+        
         pre-configure {
             set php_version [exec ${php.config} --version 2>/dev/null]
             if {${version} != ${php_version}} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120505/b87eb048/attachment.html>


More information about the macports-changes mailing list