summaryrefslogtreecommitdiff
path: root/lang/php5/Makefile.common
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2004-10-29 20:31:54 +0000
committerjdolecek <jdolecek@pkgsrc.org>2004-10-29 20:31:54 +0000
commit8b8cc033c124455d5bf9a9be10ab4d6d9a0b04dc (patch)
treea946341931337b7323c7796308a96b48ac383b85 /lang/php5/Makefile.common
parent174ce3bae0b37f4f61015770161f710229c9f81f (diff)
downloadpkgsrc-8b8cc033c124455d5bf9a9be10ab4d6d9a0b04dc.tar.gz
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 (limited to 'lang/php5/Makefile.common')
-rw-r--r--lang/php5/Makefile.common58
1 files changed, 58 insertions, 0 deletions
diff --git a/lang/php5/Makefile.common b/lang/php5/Makefile.common
new file mode 100644
index 00000000000..a035f20b958
--- /dev/null
+++ b/lang/php5/Makefile.common
@@ -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
+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