aboutsummaryrefslogtreecommitdiffstats
path: root/lang/php53
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2009-03-06 18:08:35 +0800
committerale <ale@FreeBSD.org>2009-03-06 18:08:35 +0800
commitcda4cb0e938960d41d98a51ee53848b56f54c6cc (patch)
tree5022cc200f018dae0bc62ad631ecdbd308ea4365 /lang/php53
parent54fbbce18cfd3a02e873d9eecdafbeba7b28b456 (diff)
downloadfreebsd-ports-gnome-cda4cb0e938960d41d98a51ee53848b56f54c6cc.tar.gz
freebsd-ports-gnome-cda4cb0e938960d41d98a51ee53848b56f54c6cc.tar.zst
freebsd-ports-gnome-cda4cb0e938960d41d98a51ee53848b56f54c6cc.zip
Update to 5.2.9 release and re-add pcre extension.
Diffstat (limited to 'lang/php53')
-rw-r--r--lang/php53/Makefile16
-rw-r--r--lang/php53/Makefile.ext35
-rw-r--r--lang/php53/distinfo12
-rw-r--r--lang/php53/files/patch-ext_date_lib_timelib_structs.h11
-rw-r--r--lang/php53/pkg-plist9
5 files changed, 39 insertions, 44 deletions
diff --git a/lang/php53/Makefile b/lang/php53/Makefile
index 7beaceb2cf45..db9c68378afb 100644
--- a/lang/php53/Makefile
+++ b/lang/php53/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= php5
-PORTVERSION= 5.2.8
+PORTVERSION= 5.2.9
PORTREVISION?= 0
CATEGORIES?= lang devel www
MASTER_SITES= ${MASTER_SITE_PHP}
@@ -22,16 +22,12 @@ USE_BZIP2= yes
.if !defined(PKGNAMESUFFIX)
USE_AUTOTOOLS= autoconf:262
-# use bundled pcre while apache2 does the same
-#LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
-
CONFIGURE_ARGS= \
--with-layout=GNU \
--with-config-file-scan-dir=${PREFIX}/etc/php \
--disable-all \
--enable-libxml \
--with-libxml-dir=${LOCALBASE} \
- --with-pcre-regex=yes \
--enable-reflection \
--program-prefix=""
@@ -59,8 +55,7 @@ MAN1= php-config.1 phpize.1
PATCH_DIST_STRIP= -p1
.if !defined(WITHOUT_SUHOSIN)
-#PATCHFILES+= suhosin-patch-${PORTVERSION}-0.9.6.3.patch.gz:suhosin
-PATCHFILES+= suhosin-patch-5.2.7-0.9.6.3.patch.gz:suhosin
+PATCHFILES+= suhosin-patch-${PORTVERSION}-0.9.7.patch.gz:suhosin
PATCH_SITES+= http://download.suhosin.org/:suhosin
PLIST_SUB+= SUHOSIN=""
.else
@@ -68,7 +63,8 @@ PLIST_SUB+= SUHOSIN="@comment "
.endif
.if defined(WITH_MAILHEAD)
-PATCHFILES+= php-${PORTVERSION}-mail-header.patch:mail
+#PATCHFILES+= php-${PORTVERSION}-mail-header.patch:mail
+PATCHFILES+= php-5.2.8-mail-header.patch:mail
PATCH_SITES+= http://choon.net/opensource/php/:mail
.endif
@@ -163,10 +159,6 @@ post-build:
@${ECHO_CMD} "PHP_VER=5" > ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_SAPI=${PHP_SAPI}" >> ${WRKDIR}/php.conf
- @${ECHO_CMD} "PHP_EXT_INC=pcre" >> ${WRKDIR}/php.conf
-
-test: build
- @(cd ${WRKSRC} && ${MAKE} test)
post-install:
@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc
diff --git a/lang/php53/Makefile.ext b/lang/php53/Makefile.ext
index 804b22e71bdb..bc006495b739 100644
--- a/lang/php53/Makefile.ext
+++ b/lang/php53/Makefile.ext
@@ -75,7 +75,11 @@ CONFIGURE_ARGS+=--enable-exif
.endif
.if ${PHP_MODNAME} == "filter"
-CONFIGURE_ARGS+=--enable-filter
+CONFIGURE_ARGS+=--enable-filter \
+ --with-pcre-dir=${LOCALBASE}
+
+USE_PHP= pcre
+USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "ftp"
@@ -245,6 +249,10 @@ USE_OPENSSL= yes
CONFIGURE_ARGS+=--enable-pcntl
.endif
+.if ${PHP_MODNAME} == "pcre"
+OPTIONS= BUNDLED_PCRE "Select if you use apache 2.0.x" off
+.endif
+
.if ${PHP_MODNAME} == "pdo"
CONFIGURE_ARGS+=--enable-pdo
.endif
@@ -392,7 +400,7 @@ CONFIGURE_ARGS+=--enable-spl \
USE_GNOME= libxml2
-USE_PHP= simplexml
+USE_PHP= pcre simplexml
USE_PHP_BUILD= yes
.endif
@@ -459,7 +467,7 @@ USE_GNOME= libxml2
.endif
.if ${PHP_MODNAME} == "xmlreader"
-CONFIGURE_ARGS+=--with-xmlreader \
+CONFIGURE_ARGS+=--enable-xmlreader \
--with-libxml-dir=${LOCALBASE}
USE_GNOME= libxml2
@@ -483,7 +491,7 @@ USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "xmlwriter"
-CONFIGURE_ARGS+=--with-xmlwriter \
+CONFIGURE_ARGS+=--enable-xmlwriter \
--with-libxml-dir=${LOCALBASE}
USE_GNOME= libxml2
@@ -529,10 +537,10 @@ LIB_DEPENDS+= qdbm.14:${PORTSDIR}/databases/qdbm
CONFIGURE_ARGS+=--with-qdbm=${LOCALBASE}
. endif
. if defined(WITHOUT_INIFILE)
-CONFIGURE_ARGS+=--without-inifile
+CONFIGURE_ARGS+=--disable-inifile
. endif
. if defined(WITHOUT_FLATFILE)
-CONFIGURE_ARGS+=--without-flatfile
+CONFIGURE_ARGS+=--disable-flatfile
. endif
.endif
@@ -570,6 +578,21 @@ pre-configure:
/usr/bin/ar rcs liboci8.a *.o
.endif
+.if ${PHP_MODNAME} == "pcre"
+. if defined(WITH_BUNDLED_PCRE)
+CONFIGURE_ARGS+=--with-pcre-regex=yes
+
+PHP_HEADER_DIRS=pcrelib
+. else
+LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
+
+CONFIGURE_ARGS+=--with-pcre-regex=${LOCALBASE}
+. endif
+
+post-extract:
+ @${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4
+.endif
+
.if ${PHP_MODNAME} == "pdo_dblib"
.if defined(WITH_MSSQL)
LIB_DEPENDS+= sybdb.5:${PORTSDIR}/databases/freetds-msdblib
diff --git a/lang/php53/distinfo b/lang/php53/distinfo
index 8bf99843b2bc..ad3bf3f65ac9 100644
--- a/lang/php53/distinfo
+++ b/lang/php53/distinfo
@@ -1,9 +1,9 @@
-MD5 (php-5.2.8.tar.bz2) = 8760a833cf10433d3e72271ab0d0eccf
-SHA256 (php-5.2.8.tar.bz2) = a70600e13410213a637f1c9825e9c0d45c64de8cefb1929f8f5aa761b20b2b67
-SIZE (php-5.2.8.tar.bz2) = 9827180
-MD5 (suhosin-patch-5.2.7-0.9.6.3.patch.gz) = d455c3dd5b652046dbac2951a58f64fa
-SHA256 (suhosin-patch-5.2.7-0.9.6.3.patch.gz) = 85e6262f53014e393977d1efed2d3a7e686767a07f96b14b2c3f126f694aee46
-SIZE (suhosin-patch-5.2.7-0.9.6.3.patch.gz) = 23125
+MD5 (php-5.2.9.tar.bz2) = 280d6cda7f72a4fc6de42fda21ac2db7
+SHA256 (php-5.2.9.tar.bz2) = 30166dda7c3d8bdcb2753ab79260be25454cdf3673d681b7651f8d32006ee2a6
+SIZE (php-5.2.9.tar.bz2) = 10203122
+MD5 (suhosin-patch-5.2.9-0.9.7.patch.gz) = f80dbcd2773a98da1dab0c73c3654895
+SHA256 (suhosin-patch-5.2.9-0.9.7.patch.gz) = 6f7a86cff1cdd1007ba248292f6adfe3b7c01adfed56c2e937c87c60210bbc38
+SIZE (suhosin-patch-5.2.9-0.9.7.patch.gz) = 23026
MD5 (php-5.2.8-mail-header.patch) = 74bf3a2a123c284f908c4f5483ebe886
SHA256 (php-5.2.8-mail-header.patch) = 9bd306145153a371f619d89996cb329bdc36791b22a50daf4afe7cc69c46dccb
SIZE (php-5.2.8-mail-header.patch) = 3381
diff --git a/lang/php53/files/patch-ext_date_lib_timelib_structs.h b/lang/php53/files/patch-ext_date_lib_timelib_structs.h
deleted file mode 100644
index c85468abc7f0..000000000000
--- a/lang/php53/files/patch-ext_date_lib_timelib_structs.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- ext/date/lib/timelib_structs.h.orig Wed Dec 7 11:11:39 2005
-+++ ext/date/lib/timelib_structs.h Wed Dec 7 11:11:53 2005
-@@ -21,7 +21,7 @@
- #ifndef __TIMELIB_STRUCTS_H__
- #define __TIMELIB_STRUCTS_H__
-
--#include <timelib_config.h>
-+#include "timelib_config.h"
-
- #ifdef HAVE_SYS_TYPES_H
- #include <sys/types.h>
diff --git a/lang/php53/pkg-plist b/lang/php53/pkg-plist
index 57b49893758e..17c9fdaaf18f 100644
--- a/lang/php53/pkg-plist
+++ b/lang/php53/pkg-plist
@@ -72,13 +72,6 @@ include/php/ext/date/lib/timelib_config.h
include/php/ext/date/lib/timelib_structs.h
include/php/ext/date/php_date.h
include/php/ext/libxml/php_libxml.h
-include/php/ext/pcre/pcrelib/config.h
-include/php/ext/pcre/pcrelib/pcre.h
-include/php/ext/pcre/pcrelib/pcre_internal.h
-include/php/ext/pcre/pcrelib/pcreposix.h
-include/php/ext/pcre/pcrelib/ucp.h
-include/php/ext/pcre/pcrelib/ucptable.h
-include/php/ext/pcre/php_pcre.h
include/php/ext/standard/base64.h
include/php/ext/standard/basic_functions.h
include/php/ext/standard/crc32.h
@@ -206,8 +199,6 @@ lib/php/build/shtool
@dirrm include/php/ext/date/lib
@dirrm include/php/ext/date
@dirrm include/php/ext/libxml
-@dirrm include/php/ext/pcre/pcrelib
-@dirrm include/php/ext/pcre
@dirrm include/php/ext/standard
@dirrmtry include/php/ext
@dirrm include/php/main/streams