diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-06-07 20:45:11 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-06-07 20:45:11 +0000 |
commit | a3f84a35f03e97b265a0d094fb1ed29345f53792 (patch) | |
tree | 62e64420b81f4f4eb4646185fa716b5587f8d9ad /lang/php4 | |
parent | 185f70d1d04b480038784be3786dca70bc4e0cf4 (diff) | |
download | ports-a3f84a35f03e97b265a0d094fb1ed29345f53792.tar.gz ports-a3f84a35f03e97b265a0d094fb1ed29345f53792.zip |
Notes
Diffstat (limited to 'lang/php4')
-rw-r--r-- | lang/php4/Makefile | 15 | ||||
-rw-r--r-- | lang/php4/files/patch-configure | 126 | ||||
-rw-r--r-- | lang/php4/scripts/configure.php | 1 | ||||
-rw-r--r-- | lang/php4/scripts/php_options | 1 |
4 files changed, 133 insertions, 10 deletions
diff --git a/lang/php4/Makefile b/lang/php4/Makefile index 34a9fca846d5..8ba8b0ffbeb4 100644 --- a/lang/php4/Makefile +++ b/lang/php4/Makefile @@ -105,10 +105,10 @@ SAPI_FILE= "bin/php" ALL_OPTIONS= BCMATH BZIP2 CALENDAR CRACK CTYPE CURL DBASE DBX DOMXML \ DOMXSLT EXIF FILEPRO FTP GD GDBM GETTEXT GMP HYPERWAVE ICONV \ IMAP INTERBASE MBSTRING MCAL MCVE MCRYPT MHASH MIME MING MYSQL \ - NCURSES OPENLDAP OPENSSL PCNTL PCRE PDFLIB POSIX POSTGRESQL \ - PSPELL READLINE RECODE SESSION SHMOP SNMP SOCKETS SYBASEDB \ - SYBASECT SYSVSEM SYSVSHM TOKENIZER UNIXODBC WDDX XML XMLRPC \ - XSLT YAZ YP ZIP ZLIB + NCURSES OPENLDAP OPENSSL ORACLE PCNTL PCRE PDFLIB POSIX \ + POSTGRESQL PSPELL READLINE RECODE SESSION SHMOP SNMP SOCKETS \ + SYBASEDB SYBASECT SYSVSEM SYSVSHM TOKENIZER UNIXODBC WDDX XML \ + XMLRPC XSLT YAZ YP ZIP ZLIB .for opt in ${ALL_OPTIONS} .if defined(WITH_${opt}) || defined(WITHOUT_${opt}) @@ -224,6 +224,7 @@ CONFIGURE_ARGS+=--enable-calendar .if defined(WITH_CRACK) BUILD_DEPENDS+= ${LOCALBASE}/lib/libcrack.a:${PORTSDIR}/security/cracklib +RUN_DEPENDS+= ${LOCALBASE}/lib/libcrack.a:${PORTSDIR}/security/cracklib CONFIGURE_ARGS+=--with-crack=${LOCALBASE} .endif @@ -396,6 +397,12 @@ OPENSSLBASE= /usr CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE} .endif +.if defined(WITH_ORACLE) +BUILD_DEPENDS+= ${LOCALBASE}/oracle7/lib/libcore3.a:${PORTSDIR}/databases/oracle7-client +RUN_DEPENDS+= ${LOCALBASE}/oracle7/lib/libcore3.a:${PORTSDIR}/databases/oracle7-client +CONFIGURE_ARGS+=--with-oracle=${LOCALBASE}/oracle7 +.endif + .if defined(WITH_PCNTL) CONFIGURE_ARGS+=--enable-pcntl .endif diff --git a/lang/php4/files/patch-configure b/lang/php4/files/patch-configure index eda6b0e7209a..55249d0b72ca 100644 --- a/lang/php4/files/patch-configure +++ b/lang/php4/files/patch-configure @@ -1,6 +1,120 @@ ---- configure.orig Thu May 1 23:30:59 2003 -+++ configure Fri May 2 15:59:58 2003 -@@ -70925,29 +70925,6 @@ +--- configure.orig Wed May 28 14:36:29 2003 ++++ configure Sat Jun 7 15:37:45 2003 +@@ -54106,8 +54106,8 @@ + + echo $ac_n "checking Oracle version""... $ac_c" 1>&6 + echo "configure:54109: checking Oracle version" >&5 +- 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 +@@ -56370,6 +56370,102 @@ + + + if test "$ext_shared" = "yes"; then ++ ORACLE_SHARED_LIBADD="-lwrap $ORACLE_SHARED_LIBADD" ++ if test -n "$ORACLE_DIR/lib"; then ++ ++ if test "$ORACLE_DIR/lib" != "/usr/lib"; then ++ ++ if test -z "$ORACLE_DIR/lib" || echo "$ORACLE_DIR/lib" | grep '^/' >/dev/null ; then ++ ai_p=$ORACLE_DIR/lib ++ else ++ ++ ep_dir="`echo $ORACLE_DIR/lib|sed 's%/*[^/][^/]*/*$%%'`" ++ ++ ep_realdir="`(cd \"$ep_dir\" && pwd)`" ++ ai_p="$ep_realdir/`basename \"$ORACLE_DIR/lib\"`" ++ fi ++ ++ ++ if test "$ext_shared" = "yes"; then ++ ORACLE_SHARED_LIBADD="$ld_runpath_switch$ai_p -L$ai_p $ORACLE_SHARED_LIBADD" ++ else ++ ++ ++ ++ unique=`echo $ai_p|sed 's/[^a-zA-Z0-9]/_/g'` ++ ++ cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" ++ if test -n "$unique" && test "`eval $cmd`" = "" ; then ++ eval "LIBPATH$unique=set" ++ ++ test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" ++ LDFLAGS="$LDFLAGS -L$ai_p" ++ PHP_RPATHS="$PHP_RPATHS $ai_p" ++ ++ fi ++ ++ ++ fi ++ ++ fi ++ ++ fi ++ else ++ ++ ++ if test -n "$ORACLE_DIR/lib"; then ++ ++ if test "$ORACLE_DIR/lib" != "/usr/lib"; then ++ ++ if test -z "$ORACLE_DIR/lib" || echo "$ORACLE_DIR/lib" | grep '^/' >/dev/null ; then ++ ai_p=$ORACLE_DIR/lib ++ else ++ ++ ep_dir="`echo $ORACLE_DIR/lib|sed 's%/*[^/][^/]*/*$%%'`" ++ ++ ep_realdir="`(cd \"$ep_dir\" && pwd)`" ++ ai_p="$ep_realdir/`basename \"$ORACLE_DIR/lib\"`" ++ fi ++ ++ ++ ++ ++ ++ unique=`echo $ai_p|sed 's/[^a-zA-Z0-9]/_/g'` ++ ++ cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" ++ if test -n "$unique" && test "`eval $cmd`" = "" ; then ++ eval "LIBPATH$unique=set" ++ ++ test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" ++ LDFLAGS="$LDFLAGS -L$ai_p" ++ PHP_RPATHS="$PHP_RPATHS $ai_p" ++ ++ fi ++ ++ ++ ++ fi ++ ++ fi ++ ++ ++ case wrap in ++ c|c_r|pthread*) ;; ++ *) ++ LIBS="-lwrap $LIBS" ++ ;; ++ esac ++ ++ ++ ++ ++ fi ++ ++ ++ ++ ++ if test "$ext_shared" = "yes"; then + ORACLE_SHARED_LIBADD="-lnlsrtl3 $ORACLE_SHARED_LIBADD" + if test -n "$ORACLE_DIR/lib"; then + +@@ -70911,29 +71007,6 @@ else @@ -30,7 +144,7 @@ case ct in c|c_r|pthread*) ;; *) -@@ -70971,52 +70948,7 @@ +@@ -70957,52 +71030,7 @@ @@ -84,7 +198,7 @@ save_old_LDFLAGS=$LDFLAGS -@@ -71086,37 +71018,6 @@ +@@ -71072,37 +71100,6 @@ @@ -122,7 +236,7 @@ fi -@@ -84050,10 +83951,7 @@ +@@ -84033,10 +84030,7 @@ CXXFLAGS="$CXXFLAGS $standard_libtool_flag" all_targets='$(OVERALL_TARGET) $(PHP_MODULES) $(PHP_CLI_TARGET)' diff --git a/lang/php4/scripts/configure.php b/lang/php4/scripts/configure.php index 69b378289b80..b2e9db05094f 100644 --- a/lang/php4/scripts/configure.php +++ b/lang/php4/scripts/configure.php @@ -50,6 +50,7 @@ MYSQL "MySQL database support" ${WITH_MYSQL:-OFF} \ NCURSES "ncurses support (CLI only)" ${WITH_NCURSES:-OFF} \ OPENLDAP "OpenLDAP support" ${WITH_OPENLDAP:-OFF} \ OPENSSL "OpenSSL support" ${WITH_OPENSSL:-OFF} \ +ORACLE "Oracle support" ${WITH_ORACLE:-OFF} \ PCNTL "pcntl support (CLI only)" ${WITH_PCNTL:-OFF} \ PCRE "Perl Compatible Regular Expression support" ${WITH_PCRE:-OFF} \ PDFLIB "PDFlib support" ${WITH_PDFLIB:-OFF} \ diff --git a/lang/php4/scripts/php_options b/lang/php4/scripts/php_options index ddbb15ea9ea5..b30288950a6a 100644 --- a/lang/php4/scripts/php_options +++ b/lang/php4/scripts/php_options @@ -30,6 +30,7 @@ WITH_MYSQL=ON WITH_NCURSES=OFF WITH_OPENLDAP=OFF WITH_OPENSSL=OFF +WITH_ORACLE=OFF WITH_PCNTL=OFF WITH_PCRE=ON WITH_PDFLIB=OFF |