pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/php5 Import PHP 5.0.2, based on the pkgsrc-wip PH...
details: https://anonhg.NetBSD.org/pkgsrc/rev/15aeffd0349e
branches: trunk
changeset: 482553:15aeffd0349e
user: jdolecek <jdolecek%pkgsrc.org@localhost>
date: Fri Oct 29 20:31:54 2004 +0000
description:
Import PHP 5.0.2, based on the pkgsrc-wip PHP5 package.
Some of the key features of PHP 5 include:
* The Zend Engine II with a new object model and dozens of new features.
* XML support has been completely redone in PHP 5, all extensions
are now focused around the excellent libxml2 library
(http://www.xmlsoft.org/).
* A new SimpleXML extension for easily accessing and manipulating
XML as PHP objects. It can also interface with the DOM extension
and vice-versa.
* A brand new built-in SOAP extension for interoperability with Web Services.
* A new MySQL extension named MySQLi for developers using MySQL
4.1 and later. This new extension includes an object-oriented
interface in addition to a traditional interface; as well as support
for many of MySQL's new features, such as prepared statements.
* SQLite has been bundled with PHP. For more information on SQLite,
please visit their website.
* Streams have been greatly improved, including the ability to access
low-level socket operations on streams.
diffstat:
lang/php5/DESCR | 5 +
lang/php5/MESSAGE | 10 +
lang/php5/MESSAGE.module | 11 +
lang/php5/Makefile | 27 ++++
lang/php5/Makefile.common | 58 +++++++++
lang/php5/Makefile.module | 56 +++++++++
lang/php5/PLIST | 269 ++++++++++++++++++++++++++++++++++++++++++++++
lang/php5/PLIST.module | 2 +
lang/php5/buildlink3.mk | 20 +++
lang/php5/distinfo | 4 +
lang/php5/pear.mk | 55 +++++++++
11 files changed, 517 insertions(+), 0 deletions(-)
diffs (truncated from 561 to 300 lines):
diff -r ba91d6c0d8ea -r 15aeffd0349e lang/php5/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php5/DESCR Fri Oct 29 20:31:54 2004 +0000
@@ -0,0 +1,5 @@
+PHP is an HTML-embedded scripting language. It is modular, with
+some object-oriented features. Much of its syntax is borrowed from
+C, Java and Perl with a couple of unique PHP-specific features
+thrown in. The language is designed to allow web developers to
+write dynamically generated pages quickly.
diff -r ba91d6c0d8ea -r 15aeffd0349e lang/php5/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php5/MESSAGE Fri Oct 29 20:31:54 2004 +0000
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2004/10/29 20:31:54 jdolecek Exp $
+
+You must edit your "${PKG_SYSCONFDIR}/etc/php.ini" if you want
+to use PEAR packages:
+
+ register_argc_argv = On
+ register_globals = On
+
+===========================================================================
diff -r ba91d6c0d8ea -r 15aeffd0349e lang/php5/MESSAGE.module
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php5/MESSAGE.module Fri Oct 29 20:31:54 2004 +0000
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE.module,v 1.1.1.1 2004/10/29 20:31:54 jdolecek Exp $
+
+To enable this module, add the following to ${PKG_SYSCONFDIR}/php.ini:
+
+ extension=${MODNAME}.so
+
+and make sure extension_dir points to the dir where ${MODNAME}.so is.
+
+Then restart your PHP5-enabled HTTP server to load this module.
+===========================================================================
diff -r ba91d6c0d8ea -r 15aeffd0349e lang/php5/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php5/Makefile Fri Oct 29 20:31:54 2004 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/29 20:31:54 jdolecek Exp $
+#
+
+PKGNAME= php-${PHP5_VERSION}
+CATEGORIES= lang
+
+MAINTAINER= pancake%phreaker.net@localhost
+HOMEPAGE= http://www.php.net/
+COMMENT= PHP Hypertext Preprocessor version 5
+
+USE_PKGINSTALL= YES
+USE_BUILDLINK3= YES
+USE_GNU_TOOLS+= make
+LIBTOOL_OVERRIDE= # empty
+
+.include "Makefile.common"
+
+EGDIR= ${PREFIX}/share/examples/php
+
+CONF_FILES= ${EGDIR}/php.ini-recommended ${PKG_SYSCONFDIR}/php.ini
+OWN_DIRS= ${PREFIX}/${PHP_EXTENSION_DIR}
+
+post-install:
+ @${INSTALL_DATA_DIR} ${EGDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} php.ini-dist php.ini-recommended ${EGDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff -r ba91d6c0d8ea -r 15aeffd0349e lang/php5/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php5/Makefile.common Fri Oct 29 20:31:54 2004 +0000
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2004/10/29 20:31:54 jdolecek Exp $
+#
+
+DISTNAME?= php-${PHP5_VERSION}
+CATEGORIES+= www
+MASTER_SITES?= http://www.php.net/distributions/ \
+ http://php3.de/distributions/ \
+ ftp://ftp.php.net/pub/distributions/
+EXTRACT_SUFX?= .tar.bz2
+DISTINFO_FILE= ${.CURDIR}/../../wip/php5/distinfo
+
+MAINTAINER?= tech-pkg%NetBSD.org@localhost
+HOMEPAGE?= http://www.php.net/
+
+PHP5_VERSION= 5.0.2
+
+BUILD_DEFS= USE_INET6
+
+USE_LIBTOOL= YES
+GNU_CONFIGURE= YES
+
+CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
+
+PHP_EXTENSION_DIR= lib/php/20040412
+PLIST_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR}
+
+.include "../../mk/bsd.prefs.mk"
+
+CONFIGURE_ARGS+= --with-config-file-path=${PREFIX}/etc/
+CONFIGURE_ARGS+= --with-regex=system
+
+CONFIGURE_ARGS+= --without-mysql
+CONFIGURE_ARGS+= --without-sqlite
+CONFIGURE_ARGS+= --without-iconv
+
+CONFIGURE_ARGS+= --enable-discard-path
+CONFIGURE_ARGS+= --enable-force-cgi-redirect
+CONFIGURE_ARGS+= --enable-memory-limit
+CONFIGURE_ARGS+= --enable-track-vars
+
+CONFIGURE_ARGS+= --disable-posix
+CONFIGURE_ARGS+= --disable-dom
+
+.if defined(USE_INET6) && ${USE_INET6} == "NO"
+CONFIGURE_ARGS+= --disable-ipv6
+.else
+CONFIGURE_ARGS+= --enable-ipv6
+.endif
+
+CONFIGURE_ARGS+= --enable-xml
+CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX}
+.include "../../textproc/libxml2/buildlink3.mk"
+
+BUILD_DEFS+= USE_SSL
+.if defined(USE_SSL) && !empty(USE_SSL:M[Yy][Ee][Ss])
+CONFIGURE_ARGS+= --with-openssl
+.include "../../security/openssl/buildlink3.mk"
+.endif
diff -r ba91d6c0d8ea -r 15aeffd0349e lang/php5/Makefile.module
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php5/Makefile.module Fri Oct 29 20:31:54 2004 +0000
@@ -0,0 +1,56 @@
+# $NetBSD: Makefile.module,v 1.1.1.1 2004/10/29 20:31:54 jdolecek Exp $
+
+.include "../../wip/php5/Makefile.common"
+
+PKGNAME?= php-${MODNAME}-${PHP5_VERSION}
+PKGREVISION?= # empty
+
+.include "../../mk/automake.mk"
+
+PKGMODNAME?= ${MODNAME:S/-/_/}
+MODULESDIR?= ${WRKSRC}/modules
+PLIST_SUBST+= MODNAME=${PKGMODNAME}
+
+EXTRACT_ELEMENTS?= ${DISTNAME}/ext/${PKGMODNAME}
+WRKSRC?= ${WRKDIR}/${EXTRACT_ELEMENTS}
+DISTINFO_FILE?= ${PKGDIR}/../../wip/php5/distinfo
+
+PHPIZE?= ${BUILDLINK_PREFIX.php}/bin/phpize
+PHP_CONFIG?= ${BUILDLINK_PREFIX.php}/bin/php-config
+
+GNU_CONFIGURE= YES
+CONFIGURE_ARGS+= --with-php-config=${PHP_CONFIG}
+
+USE_CONFIG_WRAPPER= YES
+USE_LIBTOOL= YES
+
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
+MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS="${EXPORT_SYMBOLS_LDFLAGS}"
+
+PLIST_SRC= ${.CURDIR}/../../wip/php5/PLIST.module
+MESSAGE_SRC= ${.CURDIR}/../../wip/php5/MESSAGE.module
+MESSAGE_SUBST+= MODNAME=${PKGMODNAME}
+MESSAGE_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR}
+
+pre-configure: phpize-module
+
+phpize-module:
+ @cookie=${WRKDIR}/.phpize_module_done; \
+ if [ ! -f $${cookie} ]; then \
+ cd ${WRKSRC} && \
+ ${SETENV} AUTOCONF=${AUTOCONF} AUTOHEADER=${AUTOHEADER} \
+ ACLOCAL=${ACLOCAL} \
+ LIBTOOLIZE=${LOCALBASE}/bin/libtoolize \
+ ${PHPIZE} && \
+ ${TOUCH} ${TOUCH_FLAGS} $${cookie}; \
+ fi
+
+do-install: do-module-install
+
+do-module-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/${PHP_EXTENSION_DIR}
+ ${INSTALL_DATA} ${MODULESDIR}/${PKGMODNAME}.so \
+ ${PREFIX}/${PHP_EXTENSION_DIR}
+
+.include "../../wip/php5/buildlink3.mk"
diff -r ba91d6c0d8ea -r 15aeffd0349e lang/php5/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php5/PLIST Fri Oct 29 20:31:54 2004 +0000
@@ -0,0 +1,269 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/10/29 20:31:54 jdolecek Exp $
+bin/pear
+bin/php
+bin/php-config
+bin/phpextdist
+bin/phpize
+etc/pear.conf
+include/php/TSRM/TSRM.h
+include/php/TSRM/acconfig.h
+include/php/TSRM/readdir.h
+include/php/TSRM/tsrm_config.h
+include/php/TSRM/tsrm_config.nw.h
+include/php/TSRM/tsrm_config.w32.h
+include/php/TSRM/tsrm_config_common.h
+include/php/TSRM/tsrm_nw.h
+include/php/TSRM/tsrm_strtok_r.h
+include/php/TSRM/tsrm_virtual_cwd.h
+include/php/TSRM/tsrm_win32.h
+include/php/Zend/FlexLexer.h
+include/php/Zend/acconfig.h
+include/php/Zend/zend.h
+include/php/Zend/zend_API.h
+include/php/Zend/zend_alloc.h
+include/php/Zend/zend_builtin_functions.h
+include/php/Zend/zend_compile.h
+include/php/Zend/zend_config.h
+include/php/Zend/zend_config.nw.h
+include/php/Zend/zend_config.w32.h
+include/php/Zend/zend_constants.h
+include/php/Zend/zend_dynamic_array.h
+include/php/Zend/zend_errors.h
+include/php/Zend/zend_exceptions.h
+include/php/Zend/zend_execute.h
+include/php/Zend/zend_extensions.h
+include/php/Zend/zend_fast_cache.h
+include/php/Zend/zend_globals.h
+include/php/Zend/zend_globals_macros.h
+include/php/Zend/zend_hash.h
+include/php/Zend/zend_highlight.h
+include/php/Zend/zend_indent.h
+include/php/Zend/zend_ini.h
+include/php/Zend/zend_ini_parser.h
+include/php/Zend/zend_ini_scanner.h
+include/php/Zend/zend_interfaces.h
+include/php/Zend/zend_istdiostream.h
+include/php/Zend/zend_iterators.h
+include/php/Zend/zend_language_parser.h
+include/php/Zend/zend_language_scanner.h
+include/php/Zend/zend_list.h
+include/php/Zend/zend_llist.h
+include/php/Zend/zend_mm.h
+include/php/Zend/zend_modules.h
+include/php/Zend/zend_multibyte.h
+include/php/Zend/zend_multiply.h
+include/php/Zend/zend_object_handlers.h
+include/php/Zend/zend_objects.h
+include/php/Zend/zend_objects_API.h
+include/php/Zend/zend_operators.h
+include/php/Zend/zend_ptr_stack.h
+include/php/Zend/zend_qsort.h
+include/php/Zend/zend_reflection_api.h
+include/php/Zend/zend_stack.h
+include/php/Zend/zend_static_allocator.h
+include/php/Zend/zend_stream.h
+include/php/Zend/zend_ts_hash.h
+include/php/Zend/zend_types.h
+include/php/Zend/zend_variables.h
+include/php/acconfig.h
+include/php/ext/libxml/php_libxml.h
+include/php/ext/mbstring/mb_gpc.h
+include/php/ext/mbstring/mbstring.h
+include/php/ext/mbstring/php_mbregex.h
+include/php/ext/mbstring/php_unicode.h
+include/php/ext/mbstring/unicode_data.h
+include/php/ext/session/mod_files.h
+include/php/ext/session/mod_mm.h
+include/php/ext/session/mod_user.h
+include/php/ext/session/php_session.h
+include/php/ext/standard/base64.h
+include/php/ext/standard/basic_functions.h
+include/php/ext/standard/crc32.h
+include/php/ext/standard/credits.h
+include/php/ext/standard/credits_ext.h
+include/php/ext/standard/credits_sapi.h
+include/php/ext/standard/css.h
+include/php/ext/standard/cyr_convert.h
+include/php/ext/standard/datetime.h
+include/php/ext/standard/dl.h
+include/php/ext/standard/dns.h
+include/php/ext/standard/exec.h
+include/php/ext/standard/file.h
+include/php/ext/standard/flock_compat.h
+include/php/ext/standard/fsock.h
+include/php/ext/standard/head.h
+include/php/ext/standard/html.h
+include/php/ext/standard/info.h
+include/php/ext/standard/md5.h
+include/php/ext/standard/microtime.h
+include/php/ext/standard/pack.h
+include/php/ext/standard/pageinfo.h
+include/php/ext/standard/parsedate.h
+include/php/ext/standard/php_array.h
+include/php/ext/standard/php_assert.h
+include/php/ext/standard/php_browscap.h
+include/php/ext/standard/php_crypt.h
Home |
Main Index |
Thread Index |
Old Index