[104526] trunk/dports/lang/php52/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Mar 26 17:42:42 PDT 2013


Revision: 104526
          https://trac.macports.org/changeset/104526
Author:   ryandesign at macports.org
Date:     2013-03-26 17:42:42 -0700 (Tue, 26 Mar 2013)
Log Message:
-----------
php52: rework +oracle variant for oracle-instantclient 11 (#37880)

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

Modified: trunk/dports/lang/php52/Portfile
===================================================================
--- trunk/dports/lang/php52/Portfile	2013-03-27 00:40:29 UTC (rev 104525)
+++ trunk/dports/lang/php52/Portfile	2013-03-27 00:42:42 UTC (rev 104526)
@@ -264,9 +264,12 @@
         patch-ext-pdo_oci-config.m4.diff
     depends_lib-append \
         port:oracle-instantclient
-    configure.args-append \
-        --with-oci8=instantclient,${prefix}/lib/oracle \
-        --with-pdo-oci=instantclient,${prefix}/lib/oracle,10.1
+    pre-configure {
+        set lib_dir             ${prefix}/lib/oracle
+        regexp {\.dylib\.(.+)$} [glob -directory ${lib_dir} libclntsh.dylib.*] -> library_version
+        configure.args-append   --with-oci8=instantclient,${lib_dir} \
+                                --with-pdo-oci=instantclient,${lib_dir},${library_version}
+    }
 }
 
 variant postgresql82 conflicts postgresql83 postgresql84 description {Add PostgreSQL 8.2 support} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130326/caa64153/attachment.html>


More information about the macports-changes mailing list