aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-05-11 19:36:53 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-05-11 19:36:53 +0000
commitf44915884b9bbc543ae908eca4075cde7ae60255 (patch)
tree6525f7d6959179de877dffe71314f0e47974f981 /lang
parentf805596461de14573cb256886e7eda3cd2679df1 (diff)
downloadports-f44915884b9bbc543ae908eca4075cde7ae60255.tar.gz
ports-f44915884b9bbc543ae908eca4075cde7ae60255.zip
Notes
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile3
-rw-r--r--lang/php4-extensions/Makefile123
-rw-r--r--lang/php4-extensions/pkg-descr6
-rw-r--r--lang/php4-overload/Makefile17
-rw-r--r--lang/php4/Makefile184
-rw-r--r--lang/php4/Makefile.ext471
-rw-r--r--lang/php4/distinfo6
-rw-r--r--lang/php4/files/patch-TSRM_threads.m411
-rw-r--r--lang/php4/files/patch-Zend::zend.h11
-rw-r--r--lang/php4/files/patch-acinclude.m437
-rw-r--r--lang/php4/files/patch-build_libtool.m411
-rw-r--r--lang/php4/files/patch-configure.in51
-rw-r--r--lang/php4/files/patch-ext_standard_basic_functions.c10
-rw-r--r--lang/php4/files/patch-main::php_config.h.in12
-rw-r--r--lang/php4/files/patch-main_SAPI.c20
-rw-r--r--lang/php4/files/patch-main_main.c11
-rw-r--r--lang/php4/files/patch-php.ini-dist18
-rw-r--r--lang/php4/files/patch-php.ini-recommended18
-rw-r--r--lang/php4/files/patch-sapi_cgi_Makefile.frag9
-rw-r--r--lang/php4/files/patch-sapi_cgi_config9.m454
-rw-r--r--lang/php4/files/patch-scripts::Makefile.frag22
-rw-r--r--lang/php4/pkg-descr8
-rw-r--r--lang/php4/pkg-message.mod10
-rw-r--r--lang/php4/pkg-plist184
24 files changed, 0 insertions, 1307 deletions
diff --git a/lang/Makefile b/lang/Makefile
index e1daa442ebdb..d5783c30bd45 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -246,9 +246,6 @@
SUBDIR += phantomjs
SUBDIR += phc
SUBDIR += php-mode.el
- SUBDIR += php4
- SUBDIR += php4-extensions
- SUBDIR += php4-overload
SUBDIR += php5
SUBDIR += php5-extensions
SUBDIR += php52
diff --git a/lang/php4-extensions/Makefile b/lang/php4-extensions/Makefile
deleted file mode 100644
index 8c22ff85d137..000000000000
--- a/lang/php4-extensions/Makefile
+++ /dev/null
@@ -1,123 +0,0 @@
-# New ports collection makefile for: php4-extensions
-# Date created: 7 Jul 2004
-# Whom: Alex Dupre <ale@FreeBSD.org>
-#
-# $FreeBSD$
-#
-
-PORTNAME= php4
-PORTVERSION= 1.0
-CATEGORIES= lang
-MASTER_SITES= # none
-PKGNAMESUFFIX= -extensions
-DISTFILES= # none
-EXTRACT_ONLY= # none
-
-MAINTAINER= ale@FreeBSD.org
-COMMENT= A "meta-port" to install PHP extensions
-
-DEPRECATED= php4 is EOLed
-EXPIRATION_DATE= 2012-05-10
-
-USE_PHP= yes
-DEFAULT_PHP_VER=4
-IGNORE_WITH_PHP=5
-USE_PHP_BUILD= yes
-
-NO_BUILD= yes
-
-LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
-
-WITH_CTYPE= yes
-WITH_MYSQL= yes
-WITH_OVERLOAD= yes
-WITH_PCRE= yes
-WITH_POSIX= yes
-WITH_SESSION= yes
-WITH_TOKENIZER= yes
-WITH_XML= yes
-WITH_ZLIB= yes
-
-OPTIONS= BCMATH "bc style precision math functions" off \
- BZ2 "bzip2 library support" off \
- CALENDAR "calendar conversion support" off \
- CRACK "crack support" off \
- CTYPE "ctype functions" on \
- CURL "CURL support" off \
- DBA "dba support" off \
- DBASE "dBase library support" off \
- DBX "dbx support" off \
- DIO "Direct I/O support" off \
- DOMXML "DOM support" off \
- EXIF "EXIF support" off \
- FILEINFO "fileinfo support" off \
- FILEPRO "filePro support" off \
- FRIBIDI "FriBidi support" off \
- FTP "FTP support" off \
- GD "GD library support" off \
- GETTEXT "gettext library support" off \
- GMP "GNU MP support" off \
- ICONV "iconv support" off \
- IMAP "IMAP support" off \
- INTERBASE "Interbase 6 database support (Firebird)" off \
- LDAP "OpenLDAP support" off \
- MBSTRING "multibyte string support" off \
- MCAL "Modular Calendar Access Library support" off \
- MCRYPT "Encryption support" off \
- MCVE "MCVE support" off \
- MHASH "Crypto-hashing support" off \
- MSSQL "MS-SQL database support" off \
- MYSQL "MySQL database support" on \
- NCURSES "ncurses support (CLI only)" off \
- ODBC "unixODBC support" off \
- OPENSSL "OpenSSL support" off \
- ORACLE "Oracle support" off \
- OVERLOAD "user-space object overloading support" on \
- PCNTL "pcntl support (CLI only)" off \
- PCRE "Perl Compatible Regular Expression support" on \
- PDF "PDFlib support (implies GD)" off \
- PFPRO "PayFlow Pro support" off \
- PGSQL "PostgreSQL database support" off \
- POSIX "POSIX-like functions" on \
- PSPELL "pspell support" off \
- READLINE "readline support (CLI only)" off \
- RECODE "recode support" off \
- SESSION "session support" on \
- SHMOP "shmop support" off \
- SNMP "SNMP support" off \
- SOCKETS "sockets support" off \
- SYBASE_CT "Sybase database support" off \
- SYSVMSG "System V message support" off \
- SYSVSEM "System V semaphore support" off \
- SYSVSHM "System V shared memory support" off \
- TOKENIZER "tokenizer support" on \
- WDDX "WDDX support (implies XML)" off \
- XML "XML support" on \
- XMLRPC "XMLRPC-EPI support" off \
- XSLT "XSLT Sablotron support" off \
- YAZ "YAZ support (ANSI/NISO Z39.50)" off \
- YP "YP/NIS support" off \
- ZIP "ZIP support" off \
- ZLIB "ZLIB support" on
-
-ALL_OPTIONS= BCMATH BZ2 CALENDAR CRACK CTYPE CURL DBA DBASE DBX DIO \
- DOMXML EXIF FILEINFO FILEPRO FRIBIDI FTP GD GETTEXT \
- GMP ICONV IMAP INTERBASE LDAP MBSTRING MCAL MCRYPT \
- MCVE MHASH MIME_MAGIC MSSQL MYSQL NCURSES \
- ODBC OPENSSL ORACLE OVERLOAD PCNTL PCRE PDF PFPRO \
- PGSQL POSIX PSPELL READLINE RECODE SESSION SHMOP SNMP SOCKETS \
- SYBASE_CT SYSVMSG SYSVSEM SYSVSHM TOKENIZER \
- WDDX XML XMLRPC XSLT YAZ YP ZIP ZLIB
-
-.include <bsd.port.options.mk>
-
-.for opt in ${ALL_OPTIONS}
-. if defined(WITH_${opt}) && !defined(WITHOUT_${opt})
-USE_PHP+= ${opt:L}
-. endif
-.endfor
-
-do-install: build
- @${DO_NADA}
-
-.include <bsd.port.mk>
diff --git a/lang/php4-extensions/pkg-descr b/lang/php4-extensions/pkg-descr
deleted file mode 100644
index dcde248c8439..000000000000
--- a/lang/php4-extensions/pkg-descr
+++ /dev/null
@@ -1,6 +0,0 @@
-This is a "meta-port" to install the extensions for PHP 4.
-
-Defaults to:
-ctype, mysql, overload, pcre, posix, session, tokenizer, xml and zlib.
-
-WWW: http://www.php.net/
diff --git a/lang/php4-overload/Makefile b/lang/php4-overload/Makefile
deleted file mode 100644
index a4f3202e51ad..000000000000
--- a/lang/php4-overload/Makefile
+++ /dev/null
@@ -1,17 +0,0 @@
-# New ports collection makefile for: php4-overload
-# Date created: 7 Jul 2004
-# Whom: Alex Dupre <ale@FreeBSD.org>
-#
-# $FreeBSD$
-#
-
-DEPRECATED= php4 is EOLed
-EXPIRATION_DATE= 2012-05-10
-
-CATEGORIES= lang
-
-MASTERDIR= ${.CURDIR}/../../lang/php4
-
-PKGNAMESUFFIX= -overload
-
-.include "${MASTERDIR}/Makefile"
diff --git a/lang/php4/Makefile b/lang/php4/Makefile
deleted file mode 100644
index 221f985286b3..000000000000
--- a/lang/php4/Makefile
+++ /dev/null
@@ -1,184 +0,0 @@
-# New ports collection makefile for: php4
-# Date created: Tue Feb 18 11:17:13 CET 2003
-# Whom: Alex Dupre <sysadmin@alexdupre.com>
-#
-# $FreeBSD$
-#
-
-PORTNAME= php4
-PORTVERSION= 4.4.9
-PORTREVISION?= 5
-CATEGORIES?= lang devel www
-MASTER_SITES= ${MASTER_SITE_PHP:S,$,:release,} \
- http://downloads.php.net/ilia/:rc \
- http://downloads.php.net/jani/:rc
-MASTER_SITE_SUBDIR= distributions/:release
-DISTNAME= php-${PORTVERSION:S/.r/RC/}
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:release
-
-MAINTAINER?= ale@FreeBSD.org
-COMMENT?= PHP Scripting Language
-
-LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
-
-USE_BZIP2= yes
-.if !defined(PKGNAMESUFFIX)
-USE_AUTOTOOLS= autoconf
-
-CONFIGURE_ARGS= --enable-versioning \
- --enable-memory-limit \
- --with-layout=GNU \
- --with-config-file-scan-dir=${PREFIX}/etc/php \
- --disable-all \
- --program-prefix=""
-
-OPTIONS= CLI "Build CLI version" on \
- CGI "Build CGI version" on \
- APACHE "Build Apache module" off \
- DEBUG "Enable debug" off \
- SUHOSIN "Enable Suhosin protection system (not for jails)" on \
- MULTIBYTE "Enable zend multibyte support" off \
- IPV6 "Enable ipv6 support" on \
- MAILHEAD "Enable mail header patch" off \
- REDIRECT "Enable force-cgi-redirect support (CGI only)" off \
- DISCARD "Enable discard-path support (CGI only)" off \
- FASTCGI "Enable fastcgi support (CGI only)" on \
- PATHINFO "Enable path-info-check support (CGI only)" on \
- OPENSSL "Build static OpenSSL extension" off \
- ZLIB "Build static zlib extension" off
-
-CONFLICTS= php5-5*
-
-MAN1= php-config.1 phpize.1
-
-.include <bsd.port.pre.mk>
-
-PATCH_DIST_STRIP= -p1
-
-.if !defined(WITHOUT_SUHOSIN)
-PATCHFILES+= suhosin-patch-${PORTVERSION}-0.9.6.patch.gz:suhosin
-PATCH_SITES+= http://download.suhosin.org/:suhosin
-PLIST_SUB+= SUHOSIN=""
-.else
-PLIST_SUB+= SUHOSIN="@comment "
-.endif
-
-.if defined(WITH_MAILHEAD)
-PATCHFILES+= php-${PORTVERSION}-mail-header.patch:mail
-PATCH_SITES+= http://choon.net/opensource/php/:mail
-.endif
-
-.if !defined(WITHOUT_CLI)
-PHP_SAPI+= cli
-PLIST_SUB+= CLI=""
-MAN1+= php.1
-.else
-PLIST_SUB+= CLI="@comment "
-CONFIGURE_ARGS+=--disable-cli
-.endif
-
-.if !defined(WITHOUT_CGI)
-PHP_SAPI+= cgi
-PLIST_SUB+= CGI=""
-.if defined(WITH_REDIRECT)
-CONFIGURE_ARGS+=--enable-force-cgi-redirect
-.endif
-.if defined(WITH_DISCARD)
-CONFIGURE_ARGS+=--enable-discard-path
-.endif
-.if !defined(WITHOUT_FASTCGI)
-CONFIGURE_ARGS+=--enable-fastcgi
-.endif
-.if defined(WITHOUT_PATHINFO)
-CONFIGURE_ARGS+=--disable-path-info-check
-.endif
-.else
-PLIST_SUB+= CGI="@comment "
-CONFIGURE_ARGS+=--disable-cgi
-.endif
-
-.if defined(WITH_APACHE)
-PHP_SAPI+= mod
-USE_APACHE= 20+
-.include "${PORTSDIR}/Mk/bsd.apache.mk"
-CONFIGURE_ARGS+=--with-apxs2=${APXS}
-PKGMESSAGE= ${PKGDIR}/pkg-message.mod
-MODULENAME= lib${PORTNAME}
-SHORTMODNAME= ${PORTNAME}
-PLIST_SUB+= APACHE=""
-.else
-PLIST_SUB+= APACHE="@comment "
-.endif
-
-.if !defined(WITH_REGEX_TYPE) || ${WITH_REGEX_TYPE} == "php"
-CONFIGURE_ARGS+=--with-regex=php
-.elif defined(WITH_REGEX_TYPE) && ${WITH_REGEX_TYPE} == "system"
-CONFIGURE_ARGS+=--with-regex=system
-.elif defined(WITH_REGEX_TYPE) && ${WITH_REGEX_TYPE} == "apache"
-CONFIGURE_ARGS+=--with-regex=apache
-.endif
-
-CONFIGURE_ENV+= ac_cv_pthreads_lib=${PTHREAD_LIBS} \
- ac_cv_pthreads_cflags=${PTHREAD_CFLAGS} \
- pthreads_working="yes"
-
- MAKE_ENV+= LDFLAGS="${LDFLAGS}"
-
-.if defined(WITH_OPENSSL)
-WITH_OPENSSL_BASE= yes
-.include "${PORTSDIR}/Mk/bsd.openssl.mk"
-CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE} \
- --with-openssl-dir=${OPENSSLBASE}
-LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
-PHP_EXT_INC+= openssl
-.endif
-
-.if defined(WITH_ZLIB)
-CONFIGURE_ARGS+=--with-zlib=/usr
-PHP_EXT_INC+= zlib
-.endif
-
-.if defined(WITH_DEBUG)
-CONFIGURE_ARGS+=--enable-debug
-.endif
-
-.if defined(WITH_MULTIBYTE)
-CONFIGURE_ARGS+=--enable-zend-multibyte
-.endif
-
-.if defined(WITHOUT_IPV6)
-CONFIGURE_ARGS+=--disable-ipv6
-.endif
-
-post-patch:
- @${TOUCH} ${WRKSRC}/ext/php_config.h
- @${REINPLACE_CMD} "s|^\(extension_dir\)|; \1|" ${WRKSRC}/php.ini-*
-
-# Work around issues with newer (>=2.64) autoconf
-pre-configure:
- @${REINPLACE_CMD} -E 's:^((m4_)?divert)[(]([0-9]*)[)]:\1(600\3):' \
- ${WRKSRC}/configure.in `${FIND} ${WRKSRC} -name '*.m4'`
- @${RM} ${WRKSRC}/configure
- @${CAT} ${WRKSRC}/acinclude.m4 ${WRKSRC}/build/libtool.m4 > ${WRKSRC}/aclocal.m4
-
-post-build:
- @${ECHO_CMD} "PHP_VER=4" > ${WRKDIR}/php.conf
- @${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf
- @${ECHO_CMD} "PHP_SAPI=${PHP_SAPI}" >> ${WRKDIR}/php.conf
-.if defined(PHP_EXT_INC)
- @${ECHO_CMD} "PHP_EXT_INC=${PHP_EXT_INC}" >> ${WRKDIR}/php.conf
-.endif
-
-post-install:
- @${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc
- @${INSTALL_DATA} ${WRKSRC}/php.ini-recommended ${PREFIX}/etc
- @${INSTALL_DATA} ${WRKDIR}/php.conf ${PREFIX}/etc
- @${TOUCH} ${PREFIX}/include/php/ext/php_config.h
-.if defined(WITH_APACHE)
- @${CAT} ${PKGMESSAGE}
-.endif
-
-.else
-.include "${MASTERDIR}/Makefile.ext"
-.endif
-.include <bsd.port.post.mk>
diff --git a/lang/php4/Makefile.ext b/lang/php4/Makefile.ext
deleted file mode 100644
index 3819c1549360..000000000000
--- a/lang/php4/Makefile.ext
+++ /dev/null
@@ -1,471 +0,0 @@
-COMMENT= The ${PHP_MODNAME} shared extension for php
-
-USE_PHP= yes
-USE_PHPEXT= yes
-PHP_MODNAME= ${PKGNAMESUFFIX:S/-//}
-DEFAULT_PHP_VER=4
-IGNORE_WITH_PHP=52 5
-
-EXTSUBDIR= ${DISTNAME}/ext/${PHP_MODNAME}
-WRKSRC= ${WRKDIR}/${EXTSUBDIR}
-PATCHDIR= ${.CURDIR}/files
-PLIST= ${NONEXISTENT}
-
-EXTRACT_AFTER_ARGS?= | ${TAR} -xf - ${EXTSUBDIR}
-
-.if ${PHP_MODNAME} == "bcmath"
-CONFIGURE_ARGS+=--enable-bcmath
-
-PHP_HEADER_DIRS=libbcmath libbcmath/src
-.endif
-
-.if ${PHP_MODNAME} == "bz2"
-.if exists(/usr/bin/bzip2)
-BZ2BASE= /usr
-.else
-BZ2BASE= ${LOCALBASE}
-LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2
-.endif
-CONFIGURE_ARGS+=--with-bz2=${BZ2BASE}
-.endif
-
-.if ${PHP_MODNAME} == "calendar"
-CONFIGURE_ARGS+=--enable-calendar
-.endif
-
-.if ${PHP_MODNAME} == "crack"
-BUILD_DEPENDS+= ${LOCALBASE}/lib/libcrack.a:${PORTSDIR}/security/cracklib
-
-CONFIGURE_ARGS+=--with-crack=${LOCALBASE}
-.endif
-
-.if ${PHP_MODNAME} == "ctype"
-CONFIGURE_ARGS+=--enable-ctype
-.endif
-
-.if ${PHP_MODNAME} == "curl"
-LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl
-
-CONFIGURE_ARGS+=--with-curl=${LOCALBASE}
-.endif
-
-.if ${PHP_MODNAME} == "dba"
-CONFIGURE_ARGS+=--enable-dba
-
-OPTIONS= CDB "cdb database support" on \
- DB4 "Berkeley DB4 support" off \
- GDBM "GDBM database support" off \
- INIFILE "INI file support" on \
- FLATFILE "flatfile support" on
-
-PHP_HEADER_DIRS= libcdb libflatfile libinifile
-.endif
-
-.if ${PHP_MODNAME} == "dbase"
-CONFIGURE_ARGS+=--enable-dbase
-.endif
-
-.if ${PHP_MODNAME} == "dbx"
-CONFIGURE_ARGS+=--enable-dbx
-.endif
-
-.if ${PHP_MODNAME} == "dio"
-CONFIGURE_ARGS+=--enable-dio
-.endif
-
-.if ${PHP_MODNAME} == "domxml"
-CONFIGURE_ARGS+=--with-dom=${LOCALBASE} \
- --with-zlib-dir=/usr
-
-USE_GNOME= libxml2
-
-OPTIONS= XSLT "Include DOM (E)XSLT support" on
-.endif
-
-.if ${PHP_MODNAME} == "exif"
-CONFIGURE_ARGS+=--enable-exif
-.endif
-
-.if ${PHP_MODNAME} == "filepro"
-CONFIGURE_ARGS+=--enable-filepro
-.endif
-
-.if ${PHP_MODNAME} == "ftp"
-CONFIGURE_ARGS+=--enable-ftp
-.endif
-
-.if ${PHP_MODNAME} == "gd"
-LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
- png.6:${PORTSDIR}/graphics/png \
- jpeg.11:${PORTSDIR}/graphics/jpeg
-. if !defined(WITHOUT_X11)
-USE_XORG= xpm
-. endif
-
-CONFIGURE_ARGS+=--with-gd \
- --with-freetype-dir=${LOCALBASE} \
- --with-jpeg-dir=${LOCALBASE} \
- --with-png-dir=${LOCALBASE} \
- --with-zlib-dir=/usr
-. if !defined(WITHOUT_X11)
-CONFIGURE_ARGS+=--with-xpm-dir=${LOCALBASE}
-. endif
-
-OPTIONS= T1LIB "Include T1lib support" on \
- TRUETYPE "Enable TrueType string function" on \
- JIS "Enable JIS-mapped Japanese font support" off
-
-PHP_HEADER_DIRS=libgd
-.endif
-
-.if ${PHP_MODNAME} == "gettext"
-CONFIGURE_ARGS+=--with-gettext=${LOCALBASE}
-
-USE_GETTEXT= yes
-.endif
-
-.if ${PHP_MODNAME} == "gmp"
-LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
-
-CONFIGURE_ARGS+=--with-gmp=${LOCALBASE}
-.endif
-
-.if ${PHP_MODNAME} == "iconv"
-CONFIGURE_ARGS+=--with-iconv=${LOCALBASE} \
- --with-iconv-dir=${LOCALBASE}
-
-USE_ICONV= yes
-.endif
-
-.if ${PHP_MODNAME} == "imap"
-LIB_DEPENDS+= c-client4.9:${PORTSDIR}/mail/cclient
-
-CONFIGURE_ARGS+=--with-imap=${LOCALBASE}
-.if !defined(WITHOUT_SSL)
-CONFIGURE_ARGS+=--with-imap-ssl=${OPENSSLBASE}
-
-LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
-USE_OPENSSL= yes
-.endif
-.endif
-
-.if ${PHP_MODNAME} == "interbase"
-CONFIGURE_ARGS+=--with-interbase=${LOCALBASE}
-
-USE_FIREBIRD= yes
-.endif
-
-.if ${PHP_MODNAME} == "ldap"
-CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
-
-USE_OPENLDAP= yes
-.endif
-
-.if ${PHP_MODNAME} == "mbstring"
-CONFIGURE_ARGS+=--enable-mbstring
-
-OPTIONS= REGEX "Enable multibyte regex support" on
-
-PHP_HEADER_DIRS=libmbfl libmbfl/filters libmbfl/mbfl libmbfl/nls
-.endif
-
-.if ${PHP_MODNAME} == "mcal"
-LIB_DEPENDS+= mcal.0:${PORTSDIR}/misc/libmcal
-
-CONFIGURE_ARGS+=--with-mcal=${LOCALBASE}
-.endif
-
-.if ${PHP_MODNAME} == "mcrypt"
-LIB_DEPENDS+= mcrypt.8:${PORTSDIR}/security/libmcrypt
-
-CONFIGURE_ARGS+=--with-mcrypt=${LOCALBASE}
-
-USE_AUTOTOOLS= libltdl
-.endif
-
-.if ${PHP_MODNAME} == "mcve"
-LIB_DEPENDS+= monetra.7:${PORTSDIR}/devel/libmonetra
-
-CONFIGURE_ARGS+=--with-mcve=${LOCALBASE} \
- --with-openssl-dir=${OPENSSLBASE}
-
-LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
-USE_OPENSSL= yes
-.endif
-
-.if ${PHP_MODNAME} == "mhash"
-LIB_DEPENDS+= mhash.2:${PORTSDIR}/security/mhash
-
-CONFIGURE_ARGS+=--with-mhash=${LOCALBASE}
-.endif
-
-.if ${PHP_MODNAME} == "mssql"
-LIB_DEPENDS+= sybdb.5:${PORTSDIR}/databases/freetds-msdblib
-
-CONFIGURE_ARGS+=--with-mssql=${LOCALBASE}
-.endif
-
-.if ${PHP_MODNAME} == "mysql"
-CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} \
- --with-zlib-dir=/usr
-
-USE_MYSQL= yes
-.endif
-
-.if ${PHP_MODNAME} == "ncurses"
-CONFIGURE_ARGS+=--with-ncurses=/usr
-.endif
-
-.if ${PHP_MODNAME} == "odbc"
-LIB_DEPENDS+= odbc.2:${PORTSDIR}/databases/unixODBC
-
-CONFIGURE_ARGS+=--with-unixODBC=${LOCALBASE}
-.endif
-
-.if ${PHP_MODNAME} == "openssl"
-CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE}
-
-LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
-USE_OPENSSL= yes
-.endif
-
-.if ${PHP_MODNAME} == "oracle"
-BUILD_DEPENDS+= ${LOCALBASE}/oracle7/lib/libcore3.a:${PORTSDIR}/databases/oracle7-client
-
-CONFIGURE_ARGS+=--with-oracle=${LOCALBASE}/oracle7
-.endif
-
-.if ${PHP_MODNAME} == "overload"
-CONFIGURE_ARGS+=--enable-overload
-.endif
-
-.if ${PHP_MODNAME} == "pcntl"
-CONFIGURE_ARGS+=--enable-pcntl
-.endif
-
-.if ${PHP_MODNAME} == "pcre"
-CONFIGURE_ARGS+=--with-pcre-regex=yes
-
-PHP_HEADER_DIRS=pcrelib
-.endif
-
-.if ${PHP_MODNAME} == "pfpro"
-BUILD_DEPENDS+= ${LOCALBASE}/lib/libpfpro.so:${PORTSDIR}/finance/pfpro
-CONFIGURE_ARGS+=--with-pfpro=${LOCALBASE}
-.endif
-
-.if ${PHP_MODNAME} == "pgsql"
-USE_PGSQL= YES
-
-CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
-.endif
-
-.if ${PHP_MODNAME} == "posix"
-CONFIGURE_ARGS+=--enable-posix
-.endif
-
-.if ${PHP_MODNAME} == "pspell"
-LIB_DEPENDS+= aspell.16:${PORTSDIR}/textproc/aspell
-
-CONFIGURE_ARGS+=--with-pspell=${LOCALBASE}
-.endif
-
-.if ${PHP_MODNAME} == "readline"
-CONFIGURE_ARGS+=--with-readline=/usr
-.endif
-
-.if ${PHP_MODNAME} == "recode"
-LIB_DEPENDS+= recode.3:${PORTSDIR}/converters/recode
-
-CONFIGURE_ARGS+=--with-recode=${LOCALBASE}
-.endif
-
-.if ${PHP_MODNAME} == "session"
-CONFIGURE_ARGS+=--enable-session
-.endif
-
-.if ${PHP_MODNAME} == "shmop"
-CONFIGURE_ARGS+=--enable-shmop
-.endif
-
-.if ${PHP_MODNAME} == "snmp"
-CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} \
- --with-openssl-dir=${OPENSSLBASE} \
- --enable-ucd-snmp-hack
-
-LIB_DEPENDS+= netsnmp.30:${PORTSDIR}/net-mgmt/net-snmp
-LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
-USE_OPENSSL= yes
-.endif
-
-.if ${PHP_MODNAME} == "sockets"
-CONFIGURE_ARGS+=--enable-sockets
-.endif
-
-.if ${PHP_MODNAME} == "sybase_ct"
-LIB_DEPENDS+= ct.4:${PORTSDIR}/databases/freetds
-
-CONFIGURE_ARGS+=--with-sybase-ct=${LOCALBASE}
-.endif
-
-.if ${PHP_MODNAME} == "sysvmsg"
-CONFIGURE_ARGS+=--enable-sysvmsg
-.endif
-
-.if ${PHP_MODNAME} == "sysvsem"
-CONFIGURE_ARGS+=--enable-sysvsem
-.endif
-
-.if ${PHP_MODNAME} == "sysvshm"
-CONFIGURE_ARGS+=--enable-sysvshm
-.endif
-
-.if ${PHP_MODNAME} == "tokenizer"
-CONFIGURE_ARGS+=--enable-tokenizer
-.endif
-
-.if ${PHP_MODNAME} == "wddx"
-LIB_DEPENDS+= expat.6:${PORTSDIR}/textproc/expat2
-
-CONFIGURE_ARGS+=--enable-wddx \
- --with-expat-dir=${LOCALBASE}
-
-USE_PHP= xml session
-USE_PHP_BUILD= yes
-.endif
-
-.if ${PHP_MODNAME} == "xml"
-LIB_DEPENDS+= expat.6:${PORTSDIR}/textproc/expat2
-
-CONFIGURE_ARGS+=--enable-xml \
- --with-expat-dir=${LOCALBASE}
-.endif
-
-.if ${PHP_MODNAME} == "xmlrpc"
-LIB_DEPENDS+= expat.6:${PORTSDIR}/textproc/expat2
-
-CONFIGURE_ARGS+=--with-xmlrpc \
- --with-expat-dir=${LOCALBASE} \
- --with-iconv-dir=${LOCALBASE}
-
-USE_ICONV= yes
-
-PHP_HEADER_DIRS=libxmlrpc
-.endif
-
-.if ${PHP_MODNAME} == "xslt"
-LIB_DEPENDS+= sablot.70:${PORTSDIR}/textproc/sablotron \
- expat.6:${PORTSDIR}/textproc/expat2
-
-CONFIGURE_ARGS+=--enable-xslt \
- --with-xslt-sablot=${LOCALBASE} \
- --with-expat-dir=${LOCALBASE} \
- --with-iconv-dir=${LOCALBASE}
-
-USE_ICONV= yes
-.endif
-
-.if ${PHP_MODNAME} == "yp"
-CONFIGURE_ARGS+=--enable-yp
-.endif
-
-.if ${PHP_MODNAME} == "zlib"
-CONFIGURE_ARGS+=--with-zlib=/usr
-.endif
-
-.include <bsd.port.pre.mk>
-
-.if ${PHP_MODNAME} == "dba"
-. if defined(WITHOUT_CDB)
-CONFIGURE_ARGS+=--without-cdb
-. endif
-. if defined(WITH_DB4)
-WITH_DB4_VER?= 44
-. if ${WITH_DB4_VER} == 43
-LIB_DEPENDS+= db-4.3.0:${PORTSDIR}/databases/db43
-. else
-. if ${WITH_DB4_VER} == 42
-LIB_DEPENDS+= db-4.2.2:${PORTSDIR}/databases/db42
-. else
-. if ${WITH_DB4_VER} == 41
-LIB_DEPENDS+= db41.1:${PORTSDIR}/databases/db41
-. else
-. if ${WITH_DB4_VER} == 4
-LIB_DEPENDS+= db4.0:${PORTSDIR}/databases/db4
-. else
-LIB_DEPENDS+= db-4.4.0:${PORTSDIR}/databases/db44
-. endif
-. endif
-. endif
-. endif
-CONFIGURE_ARGS+=--with-db4=${LOCALBASE}
-. endif
-. if defined(WITH_GDBM)
-LIB_DEPENDS+= gdbm.4:${PORTSDIR}/databases/gdbm
-
-CONFIGURE_ARGS+=--with-gdbm=${LOCALBASE}
-. endif
-. if defined(WITHOUT_INIFILE)
-CONFIGURE_ARGS+=--without-inifile
-. endif
-. if defined(WITHOUT_FLATFILE)
-CONFIGURE_ARGS+=--without-flatfile
-. endif
-.endif
-
-.if ${PHP_MODNAME} == "domxml"
-. if !defined(WITHOUT_XSLT)
-CONFIGURE_ARGS+=--with-dom-xslt=${LOCALBASE} \
- --with-dom-exslt=${LOCALBASE}
-USE_GNOME+= libxslt
-. endif
-.endif
-
-.if ${PHP_MODNAME} == "gd"
-. if !defined(WITHOUT_T1LIB)
-LIB_DEPENDS+= t1.5:${PORTSDIR}/devel/t1lib
-
-CONFIGURE_ARGS+=--with-t1lib=${LOCALBASE}
-. endif
-. if !defined(WITHOUT_TRUETYPE)
-CONFIGURE_ARGS+=--enable-gd-native-ttf
-. endif
-. if defined(WITH_JIS)
-CONFIGURE_ARGS+=--enable-gd-jis-conv
-. endif
-.endif
-
-.if ${PHP_MODNAME} == "mbstring"
-. if defined(WITHOUT_REGEX)
-CONFIGURE_ARGS+=--disable-mbregex
-. endif
-.endif
-
-.if ${PHP_MODNAME} == "openssl"
-post-extract:
- @${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4
-.endif
-
-.if ${PHP_MODNAME} == "oracle"
-pre-configure:
- @cd ${WRKSRC}; \
- for lib in c3v6 client common core3 epc generic ncr nlsrtl3 sqlnet wrap; do \
- /usr/bin/ar x ${LOCALBASE}/oracle7/lib/lib$${lib}.a; \
- done; \
- /usr/bin/ar rcs liboracle.a *.o
-.endif
-
-.if ${PHP_MODNAME} == "pcre"
-post-extract:
- @${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4
-.endif
-
-.if ${PHP_MODNAME} == "pfpro"
-post-patch:
- @${REINPLACE_CMD} "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/pfpro.c
-.endif
-
-.if ${PHP_MODNAME} == "zlib"
-post-extract:
- @${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4
-.endif
diff --git a/lang/php4/distinfo b/lang/php4/distinfo
deleted file mode 100644
index f4869d11a552..000000000000
--- a/lang/php4/distinfo
+++ /dev/null
@@ -1,6 +0,0 @@
-SHA256 (php-4.4.9.tar.bz2) = 2ac502d56ba3360fa4ea2e5c53ea6e35b6367a5654161f9aeec86a549b1656c2
-SIZE (php-4.4.9.tar.bz2) = 4545009
-SHA256 (suhosin-patch-4.4.9-0.9.6.patch.gz) = 163dc01b0ce2412fec6dcd63f1b4d474c82657672f8d4ca1b40979722c46ca3f
-SIZE (suhosin-patch-4.4.9-0.9.6.patch.gz) = 22248
-SHA256 (php-4.4.9-mail-header.patch) = 25031351bba30c77993590bf392236490f368724df00e91dcf79a5708ea238ec
-SIZE (php-4.4.9-mail-header.patch) = 3420
diff --git a/lang/php4/files/patch-TSRM_threads.m4 b/lang/php4/files/patch-TSRM_threads.m4
deleted file mode 100644
index 3f75b837b071..000000000000
--- a/lang/php4/files/patch-TSRM_threads.m4
+++ /dev/null
@@ -1,11 +0,0 @@
---- TSRM/threads.m4.orig Fri May 5 08:02:38 2006
-+++ TSRM/threads.m4 Fri May 5 08:02:59 2006
-@@ -164,7 +164,7 @@ dnl
- dnl
- AC_DEFUN([PTHREADS_ASSIGN_VARS],[
- if test -n "$ac_cv_pthreads_lib"; then
-- LIBS="$LIBS -l$ac_cv_pthreads_lib"
-+ LIBS="$LIBS $ac_cv_pthreads_lib"
- fi
-
- if test -n "$ac_cv_pthreads_cflags"; then
diff --git a/lang/php4/files/patch-Zend::zend.h b/lang/php4/files/patch-Zend::zend.h
deleted file mode 100644
index 7bbc0dd24d16..000000000000
--- a/lang/php4/files/patch-Zend::zend.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- Zend/zend.h.orig Sat Jul 23 13:58:40 2005
-+++ Zend/zend.h Tue Nov 15 23:25:54 2005
-@@ -176,7 +176,7 @@
- #endif
-
-
--#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(__darwin__) && !defined(__APPLE__)
-+#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(__darwin__) && !defined(__APPLE__) && !(defined(ZTS) && defined(__FreeBSD__))
- # define do_alloca(p) alloca(p)
- # define free_alloca(p)
- #else
diff --git a/lang/php4/files/patch-acinclude.m4 b/lang/php4/files/patch-acinclude.m4
deleted file mode 100644
index 94e15f9f3d58..000000000000
--- a/lang/php4/files/patch-acinclude.m4
+++ /dev/null
@@ -1,37 +0,0 @@
---- acinclude.m4.orig Mon Dec 19 23:29:11 2005
-+++ acinclude.m4 Fri May 5 08:05:43 2006
-@@ -84,7 +84,7 @@
- dnl
- dnl which array to append to?
- AC_DEFUN([PHP_ADD_SOURCES],[
-- PHP_ADD_SOURCES_X($1, $2, $3, ifelse($4,cli,PHP_CLI_OBJS,ifelse($4,sapi,PHP_SAPI_OBJS,PHP_GLOBAL_OBJS)))
-+ PHP_ADD_SOURCES_X($1, $2, $3, ifelse($4,cli,PHP_CLI_OBJS,ifelse($4,sapi,PHP_SAPI_OBJS,ifelse($4,cgi,PHP_CGI_OBJS,PHP_GLOBAL_OBJS))))
- ])
- dnl
- dnl _PHP_ASSIGN_BUILD_VARS(type)
-@@ -1305,12 +1305,8 @@
-
- if test "$3" != "shared" && test "$3" != "yes" && test "$4" = "cli"; then
- dnl ---------------------------------------------- CLI static module
-- if test "$PHP_SAPI" = "cgi"; then
-- PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,)
-- EXT_STATIC="$EXT_STATIC $1"
-- else
- PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,cli)
-- fi
-+ PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,cgi)
- EXT_CLI_STATIC="$EXT_CLI_STATIC $1"
- fi
- PHP_ADD_BUILD_DIR($ext_builddir)
-@@ -1713,9 +1709,9 @@
- test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
-
- dnl Fallbacks for different configure options
-- if test "$PHP_OPENSSL" != "no"; then
-+ if test -n "$PHP_OPENSSL" && test "$PHP_OPENSSL" != "no"; then
- PHP_OPENSSL_DIR=$PHP_OPENSSL
-- elif test "$PHP_IMAP_SSL" != "no"; then
-+ elif test -n "$PHP_IMAP_SSL" && test "$PHP_IMAP_SSL" != "no"; then
- PHP_OPENSSL_DIR=$PHP_IMAP_SSL
- fi
-
diff --git a/lang/php4/files/patch-build_libtool.m4 b/lang/php4/files/patch-build_libtool.m4
deleted file mode 100644
index d55e8471178e..000000000000
--- a/lang/php4/files/patch-build_libtool.m4
+++ /dev/null
@@ -1,11 +0,0 @@
---- build/libtool.m4.orig Wed Feb 7 16:51:07 2007
-+++ build/libtool.m4 Wed Feb 7 16:51:49 2007
-@@ -2073,7 +2073,7 @@
- ;;
-
- freebsd*)
-- objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
-+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
diff --git a/lang/php4/files/patch-configure.in b/lang/php4/files/patch-configure.in
deleted file mode 100644
index 8359580c8dfe..000000000000
--- a/lang/php4/files/patch-configure.in
+++ /dev/null
@@ -1,51 +0,0 @@
---- configure.in.orig Sat Jan 20 10:56:56 2007
-+++ configure.in Sat Jan 20 10:57:33 2007
-@@ -261,7 +261,6 @@
- dnl .
- dnl -------------------------------------------------------------------------
-
--PTHREADS_CHECK
- PHP_HELP_SEPARATOR([SAPI modules:])
- PHP_SHLIB_SUFFIX_NAME
- PHP_SAPI=default
-@@ -287,7 +286,6 @@
-
- if test "$enable_experimental_zts" = "yes"; then
- PTHREADS_ASSIGN_VARS
-- PTHREADS_FLAGS
- fi
-
- if test "$PHP_ENABLE_FASTCGI" = "yes"; then
-@@ -1058,7 +1056,7 @@
- EXPANDED_DATADIR=$datadir
- EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
- EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
--INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
-+INCLUDE_PATH=.:${prefix}/share/pear
-
- exec_prefix=$old_exec_prefix
- libdir=$old_libdir
-@@ -1235,18 +1233,15 @@
- INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag"
- CXXFLAGS="$CXXFLAGS $standard_libtool_flag"
-
--all_targets='$(OVERALL_TARGET) $(PHP_MODULES) $(PHP_CLI_TARGET)'
--install_targets="$install_modules $install_pear install-build install-headers install-programs"
-+all_targets='$(OVERALL_TARGET) $(PHP_MODULES) $(PHP_CLI_TARGET) $(PHP_CGI_TARGET)'
-+install_targets="$PHP_INSTALL_CLI_TARGET $PHP_INSTALL_CGI_TARGET $install_modules $install_pear install-build install-headers install-programs"
-
- case $PHP_SAPI in
-- cgi)
-+ apache)
- install_targets="install-sapi $install_targets"
- ;;
-- cli)
-- install_targets="$PHP_INSTALL_CLI_TARGET $install_targets"
-- ;;
-- *)
-- install_targets="install-sapi $PHP_INSTALL_CLI_TARGET $install_targets"
-+ apache2handler)
-+ install_targets="install-sapi $install_targets"
- ;;
- esac
-
diff --git a/lang/php4/files/patch-ext_standard_basic_functions.c b/lang/php4/files/patch-ext_standard_basic_functions.c
deleted file mode 100644
index b44a87f1ec9e..000000000000
--- a/lang/php4/files/patch-ext_standard_basic_functions.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- ext/standard/basic_functions.c.orig Mon Jan 30 15:58:01 2006
-+++ ext/standard/basic_functions.c Mon Jan 30 15:58:36 2006
-@@ -66,6 +66,7 @@
- # include <sys/mman.h>
- #endif
-
-+#define HARTMUT_0
- #ifdef HARTMUT_0
- #include <getopt.h>
- #endif
diff --git a/lang/php4/files/patch-main::php_config.h.in b/lang/php4/files/patch-main::php_config.h.in
deleted file mode 100644
index 0b470b3f484a..000000000000
--- a/lang/php4/files/patch-main::php_config.h.in
+++ /dev/null
@@ -1,12 +0,0 @@
---- main/php_config.h.in.orig Thu Jan 12 19:24:28 2006
-+++ main/php_config.h.in Fri May 5 08:02:13 2006
-@@ -2624,6 +2624,9 @@
- /* Whether to build zip as dynamic module */
- #undef COMPILE_DL_ZIP
-
-+/* Include external shared modules configurations */
-+#include "ext/php_config.h"
-+
- /* Define if int32_t type is present. */
- #undef HAVE_INT32_T
-
diff --git a/lang/php4/files/patch-main_SAPI.c b/lang/php4/files/patch-main_SAPI.c
deleted file mode 100644
index 7064b4797140..000000000000
--- a/lang/php4/files/patch-main_SAPI.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- main/SAPI.c.orig Sun Jan 1 14:46:59 2006
-+++ main/SAPI.c Fri May 5 08:02:13 2006
-@@ -582,7 +582,7 @@
- ptr++;
- len--;
- }
--#if HAVE_ZLIB
-+#if 1
- if(!strncmp(ptr, "image/", sizeof("image/")-1)) {
- zend_alter_ini_entry("zlib.output_compression", sizeof("zlib.output_compression"), "0", sizeof("0") - 1, PHP_INI_USER, PHP_INI_STAGE_RUNTIME);
- }
-@@ -729,7 +729,7 @@
- return SUCCESS;
- }
-
--#if HAVE_ZLIB
-+#if 1
- /* Add output compression headers at this late stage in order to make
- it possible to switch it off inside the script. */
-
diff --git a/lang/php4/files/patch-main_main.c b/lang/php4/files/patch-main_main.c
deleted file mode 100644
index fda40aee97f5..000000000000
--- a/lang/php4/files/patch-main_main.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- main/main.c.orig Sat Dec 10 09:40:39 2005
-+++ main/main.c Sat Dec 10 09:40:57 2005
-@@ -344,7 +344,7 @@
- PHP_INI_ENTRY("smtp_port", "25", PHP_INI_ALL, NULL)
- PHP_INI_ENTRY("browscap", NULL, PHP_INI_SYSTEM, NULL)
- #if MEMORY_LIMIT
-- PHP_INI_ENTRY("memory_limit", "8M", PHP_INI_ALL, OnChangeMemoryLimit)
-+ PHP_INI_ENTRY("memory_limit", "12M", PHP_INI_ALL, OnChangeMemoryLimit)
- #endif
- PHP_INI_ENTRY("precision", "14", PHP_INI_ALL, OnSetPrecision)
- PHP_INI_ENTRY("sendmail_from", NULL, PHP_INI_ALL, NULL)
diff --git a/lang/php4/files/patch-php.ini-dist b/lang/php4/files/patch-php.ini-dist
deleted file mode 100644
index 5ba593157aab..000000000000
--- a/lang/php4/files/patch-php.ini-dist
+++ /dev/null
@@ -1,18 +0,0 @@
---- php.ini-dist.orig Fri Dec 30 18:19:43 2005
-+++ php.ini-dist Mon Oct 16 08:12:28 2006
-@@ -155,6 +155,15 @@
-
- ; Safe Mode
- ;
-+; SECURITY NOTE: The FreeBSD Security Officer strongly recommend that
-+; the PHP Safe Mode feature not be relied upon for security, since the
-+; issues Safe Mode tries to handle cannot properly be handled in PHP
-+; (primarily due to PHP's use of external libraries). While many bugs
-+; in Safe Mode has been fixed it's very likely that more issues exist
-+; which allows a user to bypass Safe Mode restrictions.
-+; For increased security we always recommend to install the Suhosin
-+; extension.
-+;
- safe_mode = Off
-
- ; By default, Safe Mode does a UID compare check when
diff --git a/lang/php4/files/patch-php.ini-recommended b/lang/php4/files/patch-php.ini-recommended
deleted file mode 100644
index a2baecd55e4f..000000000000
--- a/lang/php4/files/patch-php.ini-recommended
+++ /dev/null
@@ -1,18 +0,0 @@
---- php.ini-recommended.orig Fri Dec 30 18:19:43 2005
-+++ php.ini-recommended Mon Oct 16 08:13:05 2006
-@@ -169,6 +169,15 @@
- ;
- ; Safe Mode
- ;
-+; SECURITY NOTE: The FreeBSD Security Officer strongly recommend that
-+; the PHP Safe Mode feature not be relied upon for security, since the
-+; issues Safe Mode tries to handle cannot properly be handled in PHP
-+; (primarily due to PHP's use of external libraries). While many bugs
-+; in Safe Mode has been fixed it's very likely that more issues exist
-+; which allows a user to bypass Safe Mode restrictions.
-+; For increased security we recommend to always install the Suhosin
-+; extension.
-+;
- safe_mode = Off
-
- ; By default, Safe Mode does a UID compare check when
diff --git a/lang/php4/files/patch-sapi_cgi_Makefile.frag b/lang/php4/files/patch-sapi_cgi_Makefile.frag
deleted file mode 100644
index c10be19f4703..000000000000
--- a/lang/php4/files/patch-sapi_cgi_Makefile.frag
+++ /dev/null
@@ -1,9 +0,0 @@
---- sapi/cgi/Makefile.frag.orig Fri May 5 08:09:42 2006
-+++ sapi/cgi/Makefile.frag Fri May 5 08:10:05 2006
-@@ -1,2 +1,5 @@
--$(SAPI_CGI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
-+$(SAPI_CGI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_CGI_OBJS)
- $(BUILD_CGI)
-+
-+install-cgi: $(SAPI_CGI_PATH)
-+ @$(INSTALL_CGI)
diff --git a/lang/php4/files/patch-sapi_cgi_config9.m4 b/lang/php4/files/patch-sapi_cgi_config9.m4
deleted file mode 100644
index 2d10bb0ac156..000000000000
--- a/lang/php4/files/patch-sapi_cgi_config9.m4
+++ /dev/null
@@ -1,54 +0,0 @@
---- sapi/cgi/config9.m4.orig Fri May 5 08:10:10 2006
-+++ sapi/cgi/config9.m4 Fri May 5 08:15:23 2006
-@@ -81,7 +81,6 @@ main()
- ])
-
-
--if test "$PHP_SAPI" = "default"; then
- AC_MSG_CHECKING(for CGI build)
- if test "$PHP_SAPI_CGI" != "no"; then
- AC_MSG_RESULT(yes)
-@@ -149,25 +148,38 @@ if test "$PHP_SAPI" = "default"; then
- AC_DEFINE_UNQUOTED(PHP_FCGI_STATIC, $PHP_FCGI_STATIC, [ ])
- AC_MSG_RESULT($PHP_ENABLE_FASTCGI)
-
-- INSTALL_IT="@echo \"Installing PHP CGI into: \$(INSTALL_ROOT)\$(bindir)/\"; \$(INSTALL) -m 0755 \$(SAPI_CGI_PATH) \$(INSTALL_ROOT)\$(bindir)/\$(program_prefix)php\$(program_suffix)"
-- PHP_SELECT_SAPI(cgi, program, $PHP_FCGI_FILES cgi_main.c getopt.c, $PHP_FCGI_INCLUDE, '$(SAPI_CGI_PATH)')
-+ INSTALL_CGI="@echo \"Installing PHP CGI into: \$(INSTALL_ROOT)\$(bindir)/\"; \$(INSTALL) -m 0755 \$(SAPI_CGI_PATH) \$(INSTALL_ROOT)\$(bindir)/\$(program_prefix)php-cgi\$(program_suffix)"
-+ PHP_ADD_SOURCES(sapi/cgi, $PHP_FCGI_FILES cgi_main.c getopt.c, $PHP_FCGI_INCLUDE, cgi)
-+ PHP_ADD_SOURCES(/main, internal_functions.c,,cgi)
-
- case $host_alias in
- *darwin*)
- BUILD_CGI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_SAPI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
- ;;
- *)
-- BUILD_CGI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
-+ BUILD_CGI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
- ;;
- esac
-
-+ PHP_CGI_TARGET="\$(SAPI_CGI_PATH)"
-+ PHP_INSTALL_CGI_TARGET="install-cgi"
- PHP_SUBST(BUILD_CGI)
-+ PHP_SUBST(INSTALL_CGI)
-+ PHP_SUBST(PHP_CGI_OBJS)
-+ PHP_SUBST(PHP_CGI_TARGET)
-+ PHP_SUBST(PHP_INSTALL_CGI_TARGET)
-
-- elif test "$PHP_SAPI_CLI" != "no"; then
-- AC_MSG_RESULT(no)
-+ if test "$PHP_SAPI" = "default" ; then
-+ PHP_BUILD_PROGRAM($SAPI_CGI_PATH)
-+ fi
-+ else
-+ AC_MSG_RESULT(no)
-+ if test "$PHP_SAPI" = "default" ; then
-+ if test "$PHP_SAPI_CLI" != "no" ; then
- OVERALL_TARGET=
- PHP_SAPI=cli
- else
- AC_MSG_ERROR([No SAPIs selected.])
- fi
-+ fi
- fi
diff --git a/lang/php4/files/patch-scripts::Makefile.frag b/lang/php4/files/patch-scripts::Makefile.frag
deleted file mode 100644
index c0d6f9c744e3..000000000000
--- a/lang/php4/files/patch-scripts::Makefile.frag
+++ /dev/null
@@ -1,22 +0,0 @@
---- scripts/Makefile.frag.orig Wed Jun 8 12:34:41 2005
-+++ scripts/Makefile.frag Wed Jul 13 09:28:45 2005
-@@ -34,18 +34,9 @@
- / \
- Zend/ \
- TSRM/ \
-- include/ \
- main/ \
- regex/ \
-- ext/iconv/ \
-- ext/pgsql/ \
-- ext/standard/ \
-- ext/session/ \
-- ext/xml/ \
-- ext/xml/expat/ \
-- ext/mbstring/ \
-- ext/mbstring/libmbfl/ \
-- ext/mbstring/libmbfl/mbfl/
-+ ext/standard/
-
- install-headers:
- -@for i in $(HEADER_DIRS); do \
diff --git a/lang/php4/pkg-descr b/lang/php4/pkg-descr
deleted file mode 100644
index a53cdb1bde68..000000000000
--- a/lang/php4/pkg-descr
+++ /dev/null
@@ -1,8 +0,0 @@
-PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open
-Source general-purpose scripting language that is especially suited for
-Web development and can be embedded into HTML. Its syntax draws upon C,
-Java, and Perl, and is easy to learn. The main goal of the language is to
-allow web developers to write dynamically generated webpages quickly, but
-you can do much more with PHP.
-
-WWW: http://www.php.net/
diff --git a/lang/php4/pkg-message.mod b/lang/php4/pkg-message.mod
deleted file mode 100644
index 555f5b053ae8..000000000000
--- a/lang/php4/pkg-message.mod
+++ /dev/null
@@ -1,10 +0,0 @@
-***************************************************************
-
-Make sure index.php is part of your DirectoryIndex.
-
-You should add the following to your Apache configuration file:
-
-AddType application/x-httpd-php .php
-AddType application/x-httpd-php-source .phps
-
-***************************************************************
diff --git a/lang/php4/pkg-plist b/lang/php4/pkg-plist
deleted file mode 100644
index e0bc9acf7b97..000000000000
--- a/lang/php4/pkg-plist
+++ /dev/null
@@ -1,184 +0,0 @@
-%%CLI%%bin/php
-%%CGI%%bin/php-cgi
-bin/php-config
-bin/phpize
-etc/php.conf
-etc/php.ini-dist
-etc/php.ini-recommended
-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.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_execute.h
-include/php/Zend/zend_execute_globals.h
-include/php/Zend/zend_execute_locks.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_istdiostream.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_modules.h
-include/php/Zend/zend_multibyte.h
-include/php/Zend/zend_multiply.h
-include/php/Zend/zend_operators.h
-include/php/Zend/zend_ptr_stack.h
-include/php/Zend/zend_qsort.h
-include/php/Zend/zend_stack.h
-include/php/Zend/zend_static_allocator.h
-include/php/Zend/zend_strtod.h
-include/php/Zend/zend_types.h
-include/php/Zend/zend_variables.h
-include/php/acconfig.h
-include/php/ext/standard/aggregation.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
-include/php/ext/standard/php_dir.h
-include/php/ext/standard/php_ext_syslog.h
-include/php/ext/standard/php_filestat.h
-include/php/ext/standard/php_fopen_wrappers.h
-include/php/ext/standard/php_ftok.h
-include/php/ext/standard/php_image.h
-include/php/ext/standard/php_incomplete_class.h
-include/php/ext/standard/php_iptc.h
-include/php/ext/standard/php_lcg.h
-include/php/ext/standard/php_link.h
-include/php/ext/standard/php_mail.h
-include/php/ext/standard/php_math.h
-include/php/ext/standard/php_metaphone.h
-include/php/ext/standard/php_parsedate.h
-include/php/ext/standard/php_rand.h
-include/php/ext/standard/php_smart_str.h
-include/php/ext/standard/php_smart_str_public.h
-include/php/ext/standard/php_standard.h
-include/php/ext/standard/php_string.h
-include/php/ext/standard/php_type.h
-include/php/ext/standard/php_var.h
-include/php/ext/standard/php_versioning.h
-include/php/ext/standard/quot_print.h
-include/php/ext/standard/reg.h
-include/php/ext/standard/scanf.h
-include/php/ext/standard/sha1.h
-include/php/ext/standard/uniqid.h
-include/php/ext/standard/url.h
-include/php/ext/standard/url_scanner.h
-include/php/ext/standard/url_scanner_ex.h
-@exec touch %D/include/php/ext/php_config.h
-@unexec [ -s %D/include/php/ext/php_config.h ] || rm %D/include/php/ext/php_config.h
-include/php/main/SAPI.h
-include/php/main/build-defs.h
-include/php/main/config.w32.h
-include/php/main/fopen_wrappers.h
-include/php/main/internal_functions_registry.h
-include/php/main/logos.h
-include/php/main/php.h
-include/php/main/php3_compat.h
-include/php/main/php_compat.h
-include/php/main/php_config.h
-include/php/main/php_content_types.h
-include/php/main/php_embed.h
-include/php/main/php_globals.h
-include/php/main/php_ini.h
-include/php/main/php_logos.h
-include/php/main/php_main.h
-include/php/main/php_memory_streams.h
-include/php/main/php_network.h
-include/php/main/php_open_temporary_file.h
-include/php/main/php_output.h
-include/php/main/php_reentrancy.h
-include/php/main/php_regex.h
-include/php/main/php_scandir.h
-include/php/main/php_streams.h
-include/php/main/php_syslog.h
-include/php/main/php_ticks.h
-include/php/main/php_variables.h
-include/php/main/php_version.h
-include/php/main/rfc1867.h
-include/php/main/safe_mode.h
-include/php/main/snprintf.h
-include/php/main/spprintf.h
-%%SUHOSIN%%include/php/main/suhosin_globals.h
-%%SUHOSIN%%include/php/main/suhosin_logo.h
-%%SUHOSIN%%include/php/main/suhosin_patch.h
-include/php/main/win95nt.h
-include/php/regex/cclass.h
-include/php/regex/cname.h
-include/php/regex/regex.h
-include/php/regex/regex2.h
-include/php/regex/regex_extra.h
-include/php/regex/utils.h
-lib/php/build/Makefile.global
-lib/php/build/acinclude.m4
-lib/php/build/config.guess
-lib/php/build/config.sub
-lib/php/build/libtool.m4
-lib/php/build/ltmain.sh
-lib/php/build/mkdep.awk
-lib/php/build/phpize.m4
-lib/php/build/scan_makefile_in.awk
-lib/php/build/shtool
-%%APACHE%%%%APACHEMODDIR%%/%%AP_MODULE%%
-%%APACHE%%@exec %D/sbin/apxs -e -a -n %%AP_NAME%% %f
-%%APACHE%%@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %f
-@dirrm include/php/TSRM
-@dirrm include/php/Zend
-@dirrm include/php/ext/standard
-@dirrmtry include/php/ext
-@dirrm include/php/main
-@dirrm include/php/regex
-@dirrmtry include/php
-@dirrm lib/php/build
-@dirrmtry lib/php