[54572] trunk/dports/php

ryandesign at macports.org ryandesign at macports.org
Wed Jul 29 11:18:30 PDT 2009


Revision: 54572
          http://trac.macports.org/changeset/54572
Author:   ryandesign at macports.org
Date:     2009-07-29 11:18:30 -0700 (Wed, 29 Jul 2009)
Log Message:
-----------
php5-oracle: new port, see #19091

Added Paths:
-----------
    trunk/dports/php/php5-oracle/
    trunk/dports/php/php5-oracle/Portfile
    trunk/dports/php/php5-oracle/files/
    trunk/dports/php/php5-oracle/files/patch-ext-pdo_oci-config.m4.diff

Added: trunk/dports/php/php5-oracle/Portfile
===================================================================
--- trunk/dports/php/php5-oracle/Portfile	                        (rev 0)
+++ trunk/dports/php/php5-oracle/Portfile	2009-07-29 18:18:30 UTC (rev 54572)
@@ -0,0 +1,32 @@
+# $Id: Portfile 54567 2009-07-29 16:10:57Z ryandesign at macports.org $
+
+PortSystem              1.0
+PortGroup               php5extension 1.0
+
+php5extension.setup     oracle 5.3.0 bundled
+categories-append       databases
+platforms               darwin
+maintainers             ryandesign
+
+description             a PHP interface to Oracle, including the oci8 and \
+                        pdo_oci extensions
+
+long_description        ${description}
+
+checksums               md5     846760cd655c98dfd86d6d97c3d964b0 \
+                        sha1    934700941d216c453376e3bf24347041cf12c6dc \
+                        rmd160  9a71b74052b0ca515f2ddf95c051b47a73d33f44
+
+depends_build-append    port:autoconf213
+
+depends_lib-append      port:oracle-instantclient
+
+patchfiles-append       patch-ext-pdo_oci-config.m4.diff
+
+use_autoconf            yes
+autoconf.cmd            ${prefix}/bin/autoconf213
+
+configure.args-append   --with-oci8=shared,instantclient,${prefix}/lib/oracle \
+                        --with-pdo-oci=shared,instantclient,${prefix}/lib/oracle,10.1
+
+use_parallel_build      yes

Copied: trunk/dports/php/php5-oracle/files/patch-ext-pdo_oci-config.m4.diff (from rev 54571, trunk/dports/lang/php5/files/patch-ext-pdo_oci-config.m4.diff)
===================================================================
--- trunk/dports/php/php5-oracle/files/patch-ext-pdo_oci-config.m4.diff	                        (rev 0)
+++ trunk/dports/php/php5-oracle/files/patch-ext-pdo_oci-config.m4.diff	2009-07-29 18:18:30 UTC (rev 54572)
@@ -0,0 +1,19 @@
+See http://bugs.php.net/bug.php?id=39312.
+
+--- ext/pdo_oci/config.m4.orig	2008-10-22 14:29:24.000000000 -0500
++++ ext/pdo_oci/config.m4	2009-06-13 09:00:04.000000000 -0500
+@@ -89,11 +89,11 @@
+     else
+       AC_MSG_ERROR([I'm too dumb to figure out where the include dir is in your Instant Client install])
+     fi
+-    if test -f "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/client/lib/libclntsh.so" ; then
++    if test -f "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/client/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
+     PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/client/lib"
+-    elif test -f "$PDO_OCI_IC_PREFIX/client/lib/libclntsh.so" ; then
++    elif test -f "$PDO_OCI_IC_PREFIX/client/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
+       PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/client/lib"
+-    elif test -f "$PDO_OCI_IC_PREFIX/libclntsh.so" ; then
++    elif test -f "$PDO_OCI_IC_PREFIX/libclntsh.$SHLIB_SUFFIX_NAME" ; then
+       PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX"
+     else
+       AC_MSG_ERROR([I'm too dumb to figure out where the libraries are in your Instant Client install])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090729/1c00b07f/attachment.html>


More information about the macports-changes mailing list