2002-04-02 09:09:41 +00:00
|
|
|
# -*- makefile -*-
|
1999-12-30 02:59:53 +00:00
|
|
|
|
2002-03-07 14:20:02 +00:00
|
|
|
pear_install_targets = \
|
2002-04-02 09:09:41 +00:00
|
|
|
install-pear \
|
2000-07-24 23:55:34 +00:00
|
|
|
install-headers \
|
|
|
|
install-build \
|
|
|
|
install-programs
|
1999-12-30 02:59:53 +00:00
|
|
|
|
2000-07-17 22:52:08 +00:00
|
|
|
peardir=$(PEAR_INSTALLDIR)
|
2000-05-02 22:28:12 +00:00
|
|
|
|
|
|
|
PEAR_SUBDIRS = \
|
2002-01-21 18:25:04 +00:00
|
|
|
Archive \
|
2001-01-11 18:38:26 +00:00
|
|
|
Console \
|
2000-08-27 19:46:06 +00:00
|
|
|
PEAR \
|
2002-03-18 17:39:52 +00:00
|
|
|
PEAR/Command \
|
2002-03-22 10:05:40 +00:00
|
|
|
PEAR/Frontend \
|
2001-08-17 08:47:43 +00:00
|
|
|
XML
|
2000-05-02 22:28:12 +00:00
|
|
|
|
2002-04-02 09:09:41 +00:00
|
|
|
# These are moving to /pear (in cvs):
|
|
|
|
# Crypt \
|
|
|
|
# File \
|
|
|
|
# Date \
|
|
|
|
# DB \
|
|
|
|
# HTML \
|
|
|
|
# HTTP \
|
|
|
|
# Image \
|
|
|
|
# Mail \
|
|
|
|
# Net \
|
|
|
|
# Schedule \
|
|
|
|
|
2000-05-02 22:28:12 +00:00
|
|
|
PEAR_FILES = \
|
2002-01-21 18:25:04 +00:00
|
|
|
Archive/Tar.php \
|
2001-01-11 18:38:26 +00:00
|
|
|
Console/Getopt.php \
|
2001-04-22 01:09:14 +00:00
|
|
|
PEAR.php \
|
2001-12-12 01:32:01 +00:00
|
|
|
PEAR/Autoloader.php \
|
2002-03-18 17:39:52 +00:00
|
|
|
PEAR/Command.php \
|
2002-03-22 09:22:28 +00:00
|
|
|
PEAR/Command/Auth.php \
|
2002-03-18 17:39:52 +00:00
|
|
|
PEAR/Command/Common.php \
|
|
|
|
PEAR/Command/Config.php \
|
|
|
|
PEAR/Command/Install.php \
|
2002-03-19 19:59:05 +00:00
|
|
|
PEAR/Command/Package.php \
|
2002-03-22 09:22:28 +00:00
|
|
|
PEAR/Command/Registry.php \
|
2002-03-31 00:32:00 +00:00
|
|
|
PEAR/Command/Remote.php \
|
2002-03-22 09:22:28 +00:00
|
|
|
PEAR/Frontend/CLI.php \
|
2001-04-22 01:09:14 +00:00
|
|
|
PEAR/Common.php \
|
2001-10-26 10:07:43 +00:00
|
|
|
PEAR/Config.php \
|
2001-12-29 02:12:02 +00:00
|
|
|
PEAR/Dependency.php \
|
2000-08-27 19:46:06 +00:00
|
|
|
PEAR/Installer.php \
|
2001-04-22 01:09:14 +00:00
|
|
|
PEAR/Packager.php \
|
2001-11-14 09:55:38 +00:00
|
|
|
PEAR/Registry.php \
|
2001-10-26 11:45:21 +00:00
|
|
|
PEAR/Remote.php \
|
2001-10-29 12:15:53 +00:00
|
|
|
System.php \
|
2001-08-17 08:47:43 +00:00
|
|
|
XML/Parser.php
|
1999-12-30 02:59:53 +00:00
|
|
|
|
2002-04-02 09:09:41 +00: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 \
|
|
|
|
|
|
|
|
PEAR_PACKAGES=\
|
|
|
|
Net_Socket-1.0.tgz
|
|
|
|
|
|
|
|
|
2002-03-11 13:17:44 +00:00
|
|
|
install-pear:
|
2001-04-03 20:59:50 +00:00
|
|
|
@if $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
|
2000-05-02 22:28:12 +00:00
|
|
|
for i in $(PEAR_SUBDIRS); do \
|
2001-08-28 13:07:33 +00:00
|
|
|
$(mkinstalldirs) $(INSTALL_ROOT)$(peardir)/$$i; \
|
2000-05-02 22:28:12 +00:00
|
|
|
done; \
|
2002-03-22 10:28:27 +00:00
|
|
|
for dir in PEAR/CommandUI; do \
|
2002-03-31 00:32:00 +00:00
|
|
|
test -d $(INSTALL_ROOT)$(peardir)/$$dir && rm -rf $(INSTALL_ROOT)$(peardir)/$$dir; \
|
2002-03-22 10:28:27 +00:00
|
|
|
done; \
|
2000-05-02 22:28:12 +00:00
|
|
|
for i in $(PEAR_FILES); do \
|
2001-08-28 13:07:33 +00:00
|
|
|
echo "Installing $$i"; \
|
2000-05-06 01:41:14 +00:00
|
|
|
dir=`echo $$i|sed 's%[^/][^/]*$$%%'`; \
|
2001-08-28 13:07:33 +00:00
|
|
|
$(INSTALL_DATA) $(srcdir)/$$i $(INSTALL_ROOT)$(peardir)/$$dir; \
|
2000-05-02 22:28:12 +00:00
|
|
|
done; \
|
2002-03-22 10:28:27 +00:00
|
|
|
rm -f $(INSTALL_ROOT)$(peardir)/PEAR/Command/Login.php; \
|
|
|
|
rm -f $(INSTALL_ROOT)$(peardir)/PEAR/CommandUI/CLI.php; \
|
2002-03-31 00:32:00 +00:00
|
|
|
rm -f $(INSTALL_ROOT)$(peardir)/PEAR/CommandResponse.php; \
|
2002-04-09 08:12:18 +00:00
|
|
|
rm -f $(INSTALL_ROOT)$(peardir)/PEAR/Uploader.php; \
|
2000-05-02 22:28:12 +00:00
|
|
|
else \
|
|
|
|
cat $(srcdir)/install-pear.txt; \
|
|
|
|
exit 5; \
|
|
|
|
fi
|
1999-12-30 02:59:53 +00:00
|
|
|
|
|
|
|
phpincludedir = $(includedir)/php
|
2000-08-24 12:02:05 +00:00
|
|
|
phpbuilddir = $(prefix)/lib/php/build
|
1999-12-30 02:59:53 +00:00
|
|
|
|
|
|
|
BUILD_FILES = \
|
|
|
|
pear/pear.m4 \
|
2000-08-25 07:22:05 +00:00
|
|
|
build/mkdep.awk \
|
1999-12-30 02:59:53 +00:00
|
|
|
build/shtool \
|
2002-03-07 14:20:02 +00:00
|
|
|
Makefile.global \
|
|
|
|
scan_makefile_in.awk \
|
1999-12-30 02:59:53 +00:00
|
|
|
acinclude.m4
|
|
|
|
|
2002-03-19 01:13:20 +00:00
|
|
|
bin_SCRIPTS = phpize php-config pear pearize phptar
|
2000-07-24 23:55:34 +00:00
|
|
|
|
1999-12-30 02:59:53 +00:00
|
|
|
install-build:
|
2001-08-28 13:07:33 +00:00
|
|
|
@echo "Installing build environment"
|
|
|
|
@$(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \
|
2001-04-03 20:59:50 +00:00
|
|
|
(cd $(top_srcdir) && cp $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir))
|
2000-07-24 23:55:34 +00:00
|
|
|
|
|
|
|
install-programs:
|
2001-08-28 13:07:33 +00:00
|
|
|
@for prog in $(bin_SCRIPTS); do \
|
|
|
|
echo "Installing program: $$prog"; \
|
2002-03-07 14:20:02 +00:00
|
|
|
$(INSTALL) -m 755 $(builddir)/scripts/$$prog $(INSTALL_ROOT)$(bindir)/$$prog; \
|
2001-01-13 10:02:08 +00:00
|
|
|
done; \
|
2002-03-22 10:28:27 +00:00
|
|
|
for file in $(INSTALL_ROOT)$(bindir)/pearcmd-*.php; do \
|
|
|
|
rm -f $$file; \
|
|
|
|
done; \
|
2001-01-13 10:02:08 +00:00
|
|
|
for prog in phpextdist; do \
|
2001-08-28 13:07:33 +00:00
|
|
|
echo "Installing program: $$prog"; \
|
2001-04-03 20:59:50 +00:00
|
|
|
$(INSTALL) -m 755 $(srcdir)/scripts/$$prog $(INSTALL_ROOT)$(bindir)/$$prog; \
|
2000-07-24 23:55:34 +00:00
|
|
|
done
|
1999-12-30 02:59:53 +00:00
|
|
|
|
|
|
|
HEADER_DIRS = \
|
2000-05-02 20:10:46 +00:00
|
|
|
/ \
|
1999-12-30 02:59:53 +00:00
|
|
|
Zend \
|
|
|
|
TSRM \
|
|
|
|
ext/standard \
|
2001-12-21 22:50:47 +00:00
|
|
|
ext/session \
|
2000-06-24 15:45:24 +00:00
|
|
|
ext/xml \
|
2002-04-09 16:06:07 +00:00
|
|
|
ext/xml/expat \
|
2000-06-14 08:30:37 +00:00
|
|
|
main \
|
2002-04-05 00:16:09 +00:00
|
|
|
ext/mbstring \
|
2002-04-08 14:17:28 +00:00
|
|
|
ext/pgsql \
|
1999-12-30 02:59:53 +00:00
|
|
|
regex
|
|
|
|
|
|
|
|
install-headers:
|
|
|
|
-@for i in $(HEADER_DIRS); do \
|
2001-04-03 20:59:50 +00:00
|
|
|
paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
|
1999-12-30 02:59:53 +00:00
|
|
|
done; \
|
|
|
|
$(mkinstalldirs) $$paths && \
|
2001-08-28 13:07:33 +00:00
|
|
|
echo "Installing header files" && \
|
2000-05-02 20:10:46 +00:00
|
|
|
for i in $(HEADER_DIRS); do \
|
2001-04-03 20:59:50 +00: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-02 20:10:46 +00:00
|
|
|
done
|
2000-07-24 23:55:34 +00:00
|
|
|
|
2002-03-07 14:20:02 +00:00
|
|
|
$(builddir)/scripts/pear: $(srcdir)/scripts/pear.in $(top_builddir)/config.status
|
|
|
|
(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
|
2000-07-24 23:55:34 +00:00
|
|
|
|
2002-03-07 14:20:02 +00:00
|
|
|
$(builddir)/scripts/phpize: $(srcdir)/scripts/phpize.in $(top_builddir)/config.status
|
|
|
|
(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
|
2000-07-24 23:55:34 +00:00
|
|
|
|
2002-03-07 14:20:02 +00:00
|
|
|
$(builddir)/scripts/phptar: $(srcdir)/scripts/phptar.in $(top_builddir)/config.status
|
|
|
|
(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
|
2001-08-19 00:34:08 +00:00
|
|
|
|
2002-03-07 14:20:02 +00:00
|
|
|
$(builddir)/scripts/pearize: $(srcdir)/scripts/pearize.in $(top_builddir)/config.status
|
|
|
|
(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
|
2001-05-28 11:15:19 +00:00
|
|
|
|
2002-03-07 14:20:02 +00:00
|
|
|
$(builddir)/scripts/php-config: $(srcdir)/scripts/php-config.in $(top_builddir)/config.status
|
|
|
|
(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
|