diff options
author | ale <ale@FreeBSD.org> | 2004-07-19 15:54:18 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2004-07-19 15:54:18 +0800 |
commit | d04719daae76984bb913ded94de92f32c0882178 (patch) | |
tree | 18542ddc78b4c5b31da09a1bff088ad824bc35da /databases/php4-oracle | |
parent | 61d2e837ee80122f6bdc0d8a18024a589bec8f99 (diff) | |
download | freebsd-ports-gnome-d04719daae76984bb913ded94de92f32c0882178.tar.gz freebsd-ports-gnome-d04719daae76984bb913ded94de92f32c0882178.tar.zst freebsd-ports-gnome-d04719daae76984bb913ded94de92f32c0882178.zip |
Add a new shared extension for PHP.
Diffstat (limited to 'databases/php4-oracle')
-rw-r--r-- | databases/php4-oracle/Makefile | 14 | ||||
-rw-r--r-- | databases/php4-oracle/files/patch-config.m4 | 21 |
2 files changed, 35 insertions, 0 deletions
diff --git a/databases/php4-oracle/Makefile b/databases/php4-oracle/Makefile new file mode 100644 index 000000000000..f9711a360ce3 --- /dev/null +++ b/databases/php4-oracle/Makefile @@ -0,0 +1,14 @@ +# New ports collection makefile for: php4-oracle +# Date created: 7 Jul 2004 +# Whom: Alex Dupre <ale@FreeBSD.org> +# +# $FreeBSD$ +# + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php4 + +PKGNAMESUFFIX= -oracle + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php4-oracle/files/patch-config.m4 b/databases/php4-oracle/files/patch-config.m4 new file mode 100644 index 000000000000..550d803dd3d7 --- /dev/null +++ b/databases/php4-oracle/files/patch-config.m4 @@ -0,0 +1,21 @@ +--- config.m4.orig Thu Jul 8 10:22:35 2004 ++++ config.m4 Thu Jul 8 10:30:31 2004 +@@ -4,8 +4,8 @@ + + AC_DEFUN(AC_ORACLE_VERSION,[ + AC_MSG_CHECKING([Oracle version]) +- if test -s "$ORACLE_DIR/orainst/unix.rgs"; then +- ORACLE_VERSION=`grep '"ocommon"' $ORACLE_DIR/orainst/unix.rgs | sed 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4` ++ if test -s "$ORACLE_DIR/ocommon/install/partial.prd"; then ++ ORACLE_VERSION=`grep '"ocommon"' $ORACLE_DIR/ocommon/install/partial.prd | sed 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4` + test -z "$ORACLE_VERSION" && ORACLE_VERSION=7.3 + elif test -f $ORACLE_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then + ORACLE_VERSION=9.0 +@@ -113,6 +113,7 @@ + PHP_ADD_LIBRARY_WITH_PATH(clntsh, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD) + else + PHP_ADD_LIBRARY_WITH_PATH(core3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD) ++ PHP_ADD_LIBRARY_WITH_PATH(wrap, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(nlsrtl3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(core3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(c3v6, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD) |