diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/modphp/files/pear.patch | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/modphp/files/pear.patch')
-rw-r--r-- | recipes/modphp/files/pear.patch | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/recipes/modphp/files/pear.patch b/recipes/modphp/files/pear.patch new file mode 100644 index 0000000000..fc9ed05af0 --- /dev/null +++ b/recipes/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 ++ |