summaryrefslogtreecommitdiff
path: root/packages/modphp/files/pear.patch
diff options
context:
space:
mode:
authorAndrew Wilcox <andy@protium.com>2006-12-07 19:47:18 +0000
committerAndrew Wilcox <andy@protium.com>2006-12-07 19:47:18 +0000
commit7d4a04338043aa1dd4668ff04fb1ff8188673a2c (patch)
treed7eebb193ebbdd2ab9274c8abd9117d53e2490ff /packages/modphp/files/pear.patch
parentf68d2c99fa7ca759e2a1e76f856aa59a71bae59f (diff)
modphp: Apache2 module for php, patches and BB file.
Diffstat (limited to 'packages/modphp/files/pear.patch')
-rw-r--r--packages/modphp/files/pear.patch83
1 files changed, 83 insertions, 0 deletions
diff --git a/packages/modphp/files/pear.patch b/packages/modphp/files/pear.patch
new file mode 100644
index 0000000000..fc9ed05af0
--- /dev/null
+++ b/packages/modphp/files/pear.patch
@@ -0,0 +1,83 @@
+
+#
+# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
+#
+
+--- php-4.3.6/configure.in~pear.patch 2004-06-04 19:03:26.595419000 -0400
++++ php-4.3.6/configure.in 2004-06-04 19:10:32.984552663 -0400
+@@ -850,15 +850,38 @@
+ [ --with-pear=DIR Install PEAR in DIR (default PREFIX/lib/php)
+ --without-pear Do not install PEAR], DEFAULT, yes)
+
++AC_ARG_WITH([pear-php-cli],
++[ --with-pear-php-cli=CLI ],
++[
++ PEAR_PHP_CLI="$withval"
++],[
++ PEAR_PHP_CLI=""
++])
++
+ if test "$PHP_PEAR" != "no"; then
+
+ dnl
+ dnl PEAR dependancies
+ dnl
+- if test "$PHP_SAPI_CLI" = "no"; then
+- pear_error_msg="$pear_error_msg
+- PEAR requires CLI to be enabled. Add --enable-cli to the configure line. (or --disable-pear)"
++
++ dnl PEAR requires a native PHP CLI.
++ if test "x$PEAR_PHP_CLI" == "x"; then
++ if test "x$cross_compiling" = "xyes"; then
++ pear_error_msg="$pear_error_msg
++ PEAR requires a native architecture PHP CLI when crosscompiling.
++ Add --with-pear-php-cli=PATH to the configure line. (or --disable-pear)"
++ else
++ if test "x$PHP_SAPI_CLI" != "xno"; then
++ PEAR_PHP_CLI="$PHP_SAPI_CLI"
++ else
++ pear_error_msg="$pear_error_msg
++ PEAR requires CLI to be enabled. Add --enable-cli to the configure line. (or --disable-pear)"
++ fi
++ fi
+ fi
++
++ AC_SUBST([PEAR_PHP_CLI])
++
+ if test "$PHP_PCRE_REGEX" = "no"; then
+ pear_error_msg="$pear_error_msg
+ PEAR requires PCRE to be enabled. Add --with-pcre-regex to the configure line. (or --disable-pear)"
+@@ -1233,6 +1256,7 @@
+ PHP_ADD_BUILD_DIR(Zend)
+
+ PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/scripts/Makefile.frag,$abs_srcdir/scripts,scripts)
++AC_OUTPUT([pear/Makefile.frag])
+ PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/pear/Makefile.frag,$abs_srcdir/pear,pear)
+ PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/Makefile.frag,$abs_srcdir/Zend,Zend)
+
+--- /dev/null 2004-02-23 16:04:30.000000000 -0500
++++ php-4.3.6/pear/Makefile.frag.in 2004-06-04 19:10:53.643569437 -0400
+@@ -0,0 +1,23 @@
++# -*- makefile -*-
++
++peardir=$(PEAR_INSTALLDIR)
++
++# Skip all php.ini files altogether
++PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0
++PEAR_PHP_CLI = @PEAR_PHP_CLI@
++
++install-pear-installer: $(PEAR_PHP_CLI)
++ @$(PEAR_PHP_CLI) $(PEAR_INSTALL_FLAGS) $(srcdir)/install-pear.php -d "$(peardir)" -b "$(bindir)" $(srcdir)/package-*.xml
++
++install-pear-packages: $(PEAR_PHP_CLI)
++ @$(PEAR_PHP_CLI) $(PEAR_INSTALL_FLAGS) $(srcdir)/install-pear.php -d "$(peardir)" -b "$(bindir)" $(srcdir)/packages/*.tar
++
++install-pear:
++ @echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/"
++ @if $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
++ $(MAKE) -s install-pear-installer install-pear-packages; \
++ else \
++ cat $(srcdir)/install-pear.txt; \
++ exit 5; \
++ fi
++