2002-04-02 17:09:41 +08:00
|
|
|
# -*- makefile -*-
|
1999-12-30 10:59:53 +08:00
|
|
|
|
2002-03-07 22:20:02 +08:00
|
|
|
pear_install_targets = \
|
2002-04-02 17:09:41 +08:00
|
|
|
install-pear \
|
2000-07-25 07:55:34 +08:00
|
|
|
install-headers \
|
|
|
|
install-build \
|
|
|
|
install-programs
|
1999-12-30 10:59:53 +08:00
|
|
|
|
2000-07-18 06:52:08 +08:00
|
|
|
peardir=$(PEAR_INSTALLDIR)
|
2000-05-03 06:28:12 +08:00
|
|
|
|
2002-05-09 20:45:02 +08:00
|
|
|
#PEAR_SUBDIRS = \
|
|
|
|
# Archive \
|
|
|
|
# Console \
|
|
|
|
# PEAR \
|
|
|
|
# PEAR/Command \
|
|
|
|
# PEAR/Frontend \
|
|
|
|
# XML
|
2000-05-03 06:28:12 +08:00
|
|
|
|
2002-04-02 17:09:41 +08:00
|
|
|
# These are moving to /pear (in cvs):
|
|
|
|
# Crypt \
|
|
|
|
# File \
|
|
|
|
# Date \
|
|
|
|
# DB \
|
|
|
|
# HTML \
|
|
|
|
# HTTP \
|
|
|
|
# Image \
|
|
|
|
# Mail \
|
|
|
|
# Net \
|
|
|
|
# Schedule \
|
|
|
|
|
2002-05-09 20:45:02 +08:00
|
|
|
#PEAR_FILES = \
|
|
|
|
# Archive/Tar.php \
|
|
|
|
# Console/Getopt.php \
|
|
|
|
# PEAR.php \
|
|
|
|
# PEAR/Autoloader.php \
|
|
|
|
# PEAR/Command.php \
|
|
|
|
# PEAR/Command/Auth.php \
|
|
|
|
# PEAR/Command/Common.php \
|
|
|
|
# PEAR/Command/Config.php \
|
|
|
|
# PEAR/Command/Install.php \
|
|
|
|
# PEAR/Command/Package.php \
|
|
|
|
# PEAR/Command/Registry.php \
|
|
|
|
# PEAR/Command/Remote.php \
|
|
|
|
# PEAR/Frontend/CLI.php \
|
|
|
|
# PEAR/Frontend/Gtk.php \
|
|
|
|
# PEAR/Common.php \
|
|
|
|
# PEAR/Config.php \
|
|
|
|
# PEAR/Dependency.php \
|
|
|
|
# PEAR/Installer.php \
|
|
|
|
# PEAR/Packager.php \
|
|
|
|
# PEAR/Registry.php \
|
|
|
|
# PEAR/Remote.php \
|
|
|
|
# System.php \
|
|
|
|
# XML/Parser.php
|
1999-12-30 10:59:53 +08:00
|
|
|
|
2002-04-02 17:09:41 +08:00
|
|
|
# These are moving to /pear (in cvs):
|
|
|
|
# Crypt/CBC.php \
|
|
|
|
# Crypt/HCEMD5.php \
|
|
|
|
# DB.php \
|
|
|
|
# DB/common.php \
|
|
|
|
# DB/fbsql.php \
|
|
|
|
# DB/ibase.php \
|
|
|
|
# DB/ifx.php \
|
|
|
|
# DB/msql.php \
|
|
|
|
# DB/mssql.php \
|
|
|
|
# DB/mysql.php \
|
|
|
|
# DB/oci8.php \
|
|
|
|
# DB/odbc.php \
|
|
|
|
# DB/pgsql.php \
|
|
|
|
# DB/storage.php \
|
|
|
|
# DB/sybase.php \
|
|
|
|
# Date/Calc.php \
|
|
|
|
# Date/Human.php \
|
|
|
|
# File/Find.php \
|
|
|
|
# File/Passwd.php \
|
|
|
|
# File/SearchReplace.php \
|
|
|
|
# HTML/Common.php \
|
|
|
|
# HTML/Form.php \
|
|
|
|
# HTML/IT.php \
|
|
|
|
# HTML/ITX.php \
|
|
|
|
# HTML/IT_Error.php \
|
|
|
|
# HTML/Page.php \
|
|
|
|
# HTML/Processor.php \
|
|
|
|
# HTML/Select.php \
|
|
|
|
# HTML/Table.php \
|
|
|
|
# HTTP.php \
|
|
|
|
# HTTP/Compress.php \
|
|
|
|
# Mail.php \
|
|
|
|
# Mail/RFC822.php \
|
|
|
|
# Mail/sendmail.php \
|
|
|
|
# Mail/smtp.php \
|
|
|
|
# Net/Curl.php \
|
|
|
|
# Net/Dig.php \
|
|
|
|
# Net/SMTP.php \
|
|
|
|
# Net/Socket.php \
|
|
|
|
# Schedule/At.php \
|
|
|
|
|
2002-05-09 20:45:02 +08:00
|
|
|
PEARCMD=$(top_builddir)/sapi/cli/php -d include_path=$(top_srcdir)/pear pear/scripts/pear.in
|
|
|
|
|
|
|
|
install-pear-installer: $(top_builddir)/sapi/cli/php
|
2002-05-20 18:46:01 +08:00
|
|
|
$(top_builddir)/sapi/cli/php $(srcdir)/install-pear.php $(srcdir)/package-*.xml
|
2002-05-09 20:45:02 +08:00
|
|
|
|
2002-05-20 18:46:01 +08:00
|
|
|
install-pear-packages: $(top_builddir)/sapi/cli/php
|
|
|
|
$(top_builddir)/sapi/cli/php $(srcdir)/install-pear.php $(srcdir)/packages/*.tar
|
2002-04-02 17:09:41 +08:00
|
|
|
|
2002-03-11 21:17:44 +08:00
|
|
|
install-pear:
|
2001-04-04 04:59:50 +08:00
|
|
|
@if $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
|
2002-05-09 20:45:02 +08:00
|
|
|
$(MAKE) install-pear-installer; \
|
|
|
|
$(MAKE) install-pear-packages; \
|
2000-05-03 06:28:12 +08:00
|
|
|
else \
|
|
|
|
cat $(srcdir)/install-pear.txt; \
|
|
|
|
exit 5; \
|
|
|
|
fi
|
1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
phpincludedir = $(includedir)/php
|
2000-08-24 20:02:05 +08:00
|
|
|
phpbuilddir = $(prefix)/lib/php/build
|
1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
BUILD_FILES = \
|
|
|
|
pear/pear.m4 \
|
2000-08-25 15:22:05 +08:00
|
|
|
build/mkdep.awk \
|
1999-12-30 10:59:53 +08:00
|
|
|
build/shtool \
|
2002-03-07 22:20:02 +08:00
|
|
|
Makefile.global \
|
|
|
|
scan_makefile_in.awk \
|
1999-12-30 10:59:53 +08:00
|
|
|
acinclude.m4
|
|
|
|
|
2002-03-19 09:13:20 +08:00
|
|
|
bin_SCRIPTS = phpize php-config pear pearize phptar
|
2000-07-25 07:55:34 +08:00
|
|
|
|
1999-12-30 10:59:53 +08:00
|
|
|
install-build:
|
2001-08-28 21:07:33 +08:00
|
|
|
@echo "Installing build environment"
|
|
|
|
@$(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \
|
2001-04-04 04:59:50 +08:00
|
|
|
(cd $(top_srcdir) && cp $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir))
|
2000-07-25 07:55:34 +08:00
|
|
|
|
|
|
|
install-programs:
|
2001-08-28 21:07:33 +08:00
|
|
|
@for prog in $(bin_SCRIPTS); do \
|
|
|
|
echo "Installing program: $$prog"; \
|
2002-03-07 22:20:02 +08:00
|
|
|
$(INSTALL) -m 755 $(builddir)/scripts/$$prog $(INSTALL_ROOT)$(bindir)/$$prog; \
|
2001-01-13 18:02:08 +08:00
|
|
|
done; \
|
2002-03-22 18:28:27 +08:00
|
|
|
for file in $(INSTALL_ROOT)$(bindir)/pearcmd-*.php; do \
|
|
|
|
rm -f $$file; \
|
|
|
|
done; \
|
2001-01-13 18:02:08 +08:00
|
|
|
for prog in phpextdist; do \
|
2001-08-28 21:07:33 +08:00
|
|
|
echo "Installing program: $$prog"; \
|
2001-04-04 04:59:50 +08:00
|
|
|
$(INSTALL) -m 755 $(srcdir)/scripts/$$prog $(INSTALL_ROOT)$(bindir)/$$prog; \
|
2000-07-25 07:55:34 +08:00
|
|
|
done
|
1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
HEADER_DIRS = \
|
2000-05-03 04:10:46 +08:00
|
|
|
/ \
|
1999-12-30 10:59:53 +08:00
|
|
|
Zend \
|
|
|
|
TSRM \
|
|
|
|
ext/standard \
|
2001-12-22 06:50:47 +08:00
|
|
|
ext/session \
|
2000-06-24 23:45:24 +08:00
|
|
|
ext/xml \
|
2002-04-10 00:06:07 +08:00
|
|
|
ext/xml/expat \
|
2000-06-14 16:30:37 +08:00
|
|
|
main \
|
2002-04-05 08:16:09 +08:00
|
|
|
ext/mbstring \
|
2002-04-08 22:17:28 +08:00
|
|
|
ext/pgsql \
|
1999-12-30 10:59:53 +08:00
|
|
|
regex
|
|
|
|
|
|
|
|
install-headers:
|
|
|
|
-@for i in $(HEADER_DIRS); do \
|
2001-04-04 04:59:50 +08:00
|
|
|
paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
|
1999-12-30 10:59:53 +08:00
|
|
|
done; \
|
|
|
|
$(mkinstalldirs) $$paths && \
|
2001-08-28 21:07:33 +08:00
|
|
|
echo "Installing header files" && \
|
2000-05-03 04:10:46 +08:00
|
|
|
for i in $(HEADER_DIRS); do \
|
2001-04-04 04:59:50 +08:00
|
|
|
(cd $(top_srcdir)/$$i && cp -p *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \
|
|
|
|
cd $(top_builddir)/$$i && cp -p *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \
|
2000-05-03 04:10:46 +08:00
|
|
|
done
|
2000-07-25 07:55:34 +08:00
|
|
|
|
2002-03-07 22:20:02 +08:00
|
|
|
$(builddir)/scripts/pear: $(srcdir)/scripts/pear.in $(top_builddir)/config.status
|
|
|
|
(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
|
2000-07-25 07:55:34 +08:00
|
|
|
|
2002-03-07 22:20:02 +08:00
|
|
|
$(builddir)/scripts/phpize: $(srcdir)/scripts/phpize.in $(top_builddir)/config.status
|
|
|
|
(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
|
2000-07-25 07:55:34 +08:00
|
|
|
|
2002-03-07 22:20:02 +08:00
|
|
|
$(builddir)/scripts/phptar: $(srcdir)/scripts/phptar.in $(top_builddir)/config.status
|
|
|
|
(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
|
2001-08-19 08:34:08 +08:00
|
|
|
|
2002-03-07 22:20:02 +08:00
|
|
|
$(builddir)/scripts/pearize: $(srcdir)/scripts/pearize.in $(top_builddir)/config.status
|
|
|
|
(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
|
2001-05-28 19:15:19 +08:00
|
|
|
|
2002-03-07 22:20:02 +08:00
|
|
|
$(builddir)/scripts/php-config: $(srcdir)/scripts/php-config.in $(top_builddir)/config.status
|
|
|
|
(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
|