aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/pecl-pecl_http/Makefile11
-rw-r--r--www/pecl-pecl_http/distinfo6
-rw-r--r--www/pecl-pecl_http/files/patch-php_http.h15
3 files changed, 26 insertions, 6 deletions
diff --git a/www/pecl-pecl_http/Makefile b/www/pecl-pecl_http/Makefile
index 109c9ea99559..bbe7b2d5dd1d 100644
--- a/www/pecl-pecl_http/Makefile
+++ b/www/pecl-pecl_http/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= pecl_http
-DISTVERSION= 1.0.0RC4
+DISTVERSION= 1.0.0
CATEGORIES= www pear
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
@@ -26,7 +26,7 @@ PHP_MODNAME= http
CONFIGURE_ARGS= --enable-http
OPTIONS= CURL "Enable cURL HTTP requests" on \
- MAGIC_MIME "Enable response content type guessing" off \
+ MAGIC_MIME "Enable response content type guessing" on \
ZLIB_COMPRESSION "Enable support for encoded message bodies" off
.include <bsd.port.pre.mk>
@@ -39,8 +39,13 @@ CONFIGURE_ARGS+=--without-http-curl-requests
.endif
.if defined(WITH_MAGIC_MIME)
+. if ${OSVERSION} < 502128
LIB_DEPENDS+= magic.1:${PORTSDIR}/sysutils/file
-CONFIGURE_ARGS+=--with-http-magic-mime=${LOCALBASE}
+MAGICBASE= ${LOCALBASE}
+. else
+MAGICBASE= /usr
+. endif
+CONFIGURE_ARGS+=--with-http-magic-mime=${MAGICBASE}
.else
CONFIGURE_ARGS+=--without-http-magic-mime
.endif
diff --git a/www/pecl-pecl_http/distinfo b/www/pecl-pecl_http/distinfo
index a89997b9f390..61b331f30662 100644
--- a/www/pecl-pecl_http/distinfo
+++ b/www/pecl-pecl_http/distinfo
@@ -1,3 +1,3 @@
-MD5 (PECL/pecl_http-1.0.0RC4.tgz) = a0e7d18bf9250b8bb5326cbe513d0be5
-SHA256 (PECL/pecl_http-1.0.0RC4.tgz) = f074e97517f97bf12fafab96b8bb92b1f88e32d29306d91b3591a24b78ed0404
-SIZE (PECL/pecl_http-1.0.0RC4.tgz) = 181374
+MD5 (PECL/pecl_http-1.0.0.tgz) = f21c770c8608329256f9c712a9e21319
+SHA256 (PECL/pecl_http-1.0.0.tgz) = e0717ce977164cf37fd9e8d81616546be3f21a3103464208b1e1375fa8abbc93
+SIZE (PECL/pecl_http-1.0.0.tgz) = 185967
diff --git a/www/pecl-pecl_http/files/patch-php_http.h b/www/pecl-pecl_http/files/patch-php_http.h
new file mode 100644
index 000000000000..9d5347d334c7
--- /dev/null
+++ b/www/pecl-pecl_http/files/patch-php_http.h
@@ -0,0 +1,15 @@
+--- php_http.h.orig Fri Jun 9 02:10:44 2006
++++ php_http.h Sun Jun 11 17:06:51 2006
+@@ -144,7 +144,11 @@
+ # define HTTP_G (&http_globals)
+ #endif
+
+-#define HTTP_HAVE_EXT(EXT) ((defined(HAVE_##EXT) || defined(HAVE_PHP_##EXT) || defined(HAVE_##EXT##_EXT)) && (HTTP_SHARED_DEPS || !defined(COMPILE_DL_##EXT)))
++#if defined(__GNUC__) && (__GNUC__ < 3)
++# define HTTP_HAVE_EXT(EXT) 0
++#else
++# define HTTP_HAVE_EXT(EXT) ((defined(HAVE_##EXT) || defined(HAVE_PHP_##EXT) || defined(HAVE_##EXT##_EXT)) && (HTTP_SHARED_DEPS || !defined(COMPILE_DL_##EXT)))
++#endif
+
+ PHP_FUNCTION(http_test);
+ PHP_FUNCTION(http_date);