1# -*- makefile -*- 2 3peardir=$(PEAR_INSTALLDIR) 4 5# Skip all php.ini files altogether 6PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0 7 8WGET = `which wget 2>/dev/null` 9FETCH = `which fetch 2>/dev/null` 10PEAR_PREFIX = -dp a${program_prefix} 11PEAR_SUFFIX = -ds a$(program_suffix) 12 13install-pear-installer: $(SAPI_CLI_PATH) 14 @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) pear/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX} 15 16install-pear: 17 @echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/" 18 @if test ! -f $(builddir)/install-pear-nozlib.phar; then \ 19 if test -f $(srcdir)/install-pear-nozlib.phar; then \ 20 cp $(srcdir)/install-pear-nozlib.phar $(builddir)/install-pear-nozlib.phar; \ 21 else \ 22 if test ! -z "$(WGET)" && test -x "$(WGET)"; then \ 23 "$(WGET)" http://pear.php.net/install-pear-nozlib.phar -nd -P $(builddir)/; \ 24 elif test ! -z "$(FETCH)" && test -x "$(FETCH)"; then \ 25 "$(FETCH)" -o $(builddir)/ http://pear.php.net/install-pear-nozlib.phar; \ 26 else \ 27 $(top_builddir)/sapi/cli/php -n $(srcdir)/fetch.php http://pear.php.net/install-pear-nozlib.phar $(builddir)/install-pear-nozlib.phar; \ 28 fi \ 29 fi \ 30 fi 31 @if test -f $(builddir)/install-pear-nozlib.phar && $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \ 32 $(MAKE) -s install-pear-installer; \ 33 else \ 34 cat $(srcdir)/install-pear.txt; \ 35 fi 36 37