aboutsummaryrefslogtreecommitdiff
path: root/lang/php53
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2004-10-11 19:48:33 +0000
committerAlex Dupre <ale@FreeBSD.org>2004-10-11 19:48:33 +0000
commit0a6d8fdafa99b3a2eb43ca56ea9fe190543add45 (patch)
treef02acd79bcd86a687fe284eeb7728e132e1d313b /lang/php53
parentaf7695c0ae2d258a39df4c9406ef2847bc6cb1ef (diff)
downloadports-0a6d8fdafa99b3a2eb43ca56ea9fe190543add45.tar.gz
ports-0a6d8fdafa99b3a2eb43ca56ea9fe190543add45.zip
Notes
Diffstat (limited to 'lang/php53')
-rw-r--r--lang/php53/Makefile11
-rw-r--r--lang/php53/Makefile.ext3
-rw-r--r--lang/php53/distinfo4
-rw-r--r--lang/php53/files/patch-configure38
4 files changed, 47 insertions, 9 deletions
diff --git a/lang/php53/Makefile b/lang/php53/Makefile
index 200cb723b10a..c53f32b7a13b 100644
--- a/lang/php53/Makefile
+++ b/lang/php53/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= php5
-PORTVERSION= 5.0.1
+PORTVERSION= 5.0.2
PORTREVISION?= 0
CATEGORIES?= lang devel www
MASTER_SITES= ${MASTER_SITE_PHP:S,$,:release,} \
@@ -111,12 +111,8 @@ SAPI_FILE= bin/php
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 500016
-WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//}
-WITH_PTHREAD_CFLAGS?= ${PTHREAD_CFLAGS}
-CONFIGURE_ENV= ac_cv_pthreads_lib=${WITH_PTHREAD_LIBS} \
- ac_cv_pthreads_cflags=${WITH_PTHREAD_CFLAGS}
-.endif
+CONFIGURE_ENV= ac_cv_pthreads_lib=${PTHREAD_LIBS} \
+ ac_cv_pthreads_cflags=${PTHREAD_CFLAGS}
.if defined(WITH_APACHE)
.if exists(${LOCALBASE}/include/apache2/httpd.h)
@@ -172,6 +168,7 @@ PHP_PORT= ${.CURDIR:S|^${_PORTSDIR}||:S|^/||}
post-patch:
@${TOUCH} ${WRKSRC}/ext/php_config.h
@${REINPLACE_CMD} "s|^\(extension_dir\)|; \1|" ${WRKSRC}/php.ini-*
+ @${REINPLACE_CMD} "s|<crypt.h>|<unistd.h>|g" ${WRKSRC}/configure
.if ${PHP_SAPI} == "full"
pre-configure:
diff --git a/lang/php53/Makefile.ext b/lang/php53/Makefile.ext
index 2dac9b267630..5cab0e1de822 100644
--- a/lang/php53/Makefile.ext
+++ b/lang/php53/Makefile.ext
@@ -69,6 +69,9 @@ CONFIGURE_ARGS+=--enable-dom \
--with-libxml-dir=${LOCALBASE}
USE_GNOME= libxml2
+
+USE_PHP= simplexml
+USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "exif"
diff --git a/lang/php53/distinfo b/lang/php53/distinfo
index 52176fd735bb..72641fbb1bd2 100644
--- a/lang/php53/distinfo
+++ b/lang/php53/distinfo
@@ -1,2 +1,2 @@
-MD5 (php-5.0.1.tar.bz2) = b12042826ddba29fba3ae5a2eac3c391
-SIZE (php-5.0.1.tar.bz2) = 4569781
+MD5 (php-5.0.2.tar.bz2) = 579f82f3d6a61b669183b2ebce357a1e
+SIZE (php-5.0.2.tar.bz2) = 4577974
diff --git a/lang/php53/files/patch-configure b/lang/php53/files/patch-configure
new file mode 100644
index 000000000000..a56d0519cb51
--- /dev/null
+++ b/lang/php53/files/patch-configure
@@ -0,0 +1,38 @@
+--- configure.orig Mon Oct 11 15:51:58 2004
++++ configure Mon Oct 11 15:52:26 2004
+@@ -2649,7 +2649,7 @@
+ save_LIBS=$LIBS
+
+ 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
+@@ -10613,7 +10613,7 @@
+ if test "$enable_maintainer_zts" = "yes"; then
+
+ 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
+@@ -10630,8 +10630,6 @@
+ case $host_alias in
+ *solaris*)
+ PTHREAD_FLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT";;
+- *freebsd*)
+- PTHREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE";;
+ *linux*)
+ PTHREAD_FLAGS=-D_REENTRANT;;
+ *aix*)
+@@ -88453,7 +88451,7 @@
+ save_LIBS=$LIBS
+
+ 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