summaryrefslogtreecommitdiff
path: root/www/php-http4
diff options
context:
space:
mode:
Diffstat (limited to 'www/php-http4')
-rw-r--r--www/php-http4/DESCR9
-rw-r--r--www/php-http4/Makefile40
-rw-r--r--www/php-http4/distinfo6
-rw-r--r--www/php-http4/patches/patch-autoconf_pecl_libcurl.m415
4 files changed, 70 insertions, 0 deletions
diff --git a/www/php-http4/DESCR b/www/php-http4/DESCR
new file mode 100644
index 00000000000..a5982f7f7b8
--- /dev/null
+++ b/www/php-http4/DESCR
@@ -0,0 +1,9 @@
+This HTTP extension aims to provide a convenient and powerful
+set of functionality for one of PHPs major applications.
+
+It eases handling of HTTP urls, dates, redirects, headers and
+messages, provides means for negotiation of clients preferred
+language and charset, as well as a convenient way to send any
+arbitrary data with caching and resuming capabilities.
+
+This package supports PHP 8.x.
diff --git a/www/php-http4/Makefile b/www/php-http4/Makefile
new file mode 100644
index 00000000000..f597ebd587e
--- /dev/null
+++ b/www/php-http4/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2021/12/13 15:13:17 taca Exp $
+
+MODNAME= http
+PECL_VERSION= 4.2.1
+CATEGORIES+= www
+
+PECL_DISTNAME= pecl_http-${PECL_VERSION}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://pecl.php.net/package/pecl_http
+COMMENT= PHP extension for extended HTTP support
+LICENSE= 2-clause-bsd AND isc
+
+CONFLICTS= php-http-[0-9]*
+
+#PHP_VERSIONS_ACCEPTED= 80 81
+
+USE_LANGUAGES= c c++
+USE_TOOLS+= bash
+
+CONFIG_SHELL= bash
+CONFIGURE_ARGS+= --with-http
+CONFIGURE_ARGS+= --with-http-libcurl-dir=${BUILDLINK_PREFIX.curl}
+CONFIGURE_ARGS+= --with-http-libevent-dir=${BUILDLINK_PREFIX.libevent}
+CONFIGURE_ARGS+= --with-http-libidn-dir=${BUILDLINK_PREFIX.libidn}
+CONFIGURE_ARGS+= --with-http-libicu-dir=${BUILDLINK_PREFIX.icu}
+CONFIGURE_ARGS+= --with-http-zlib-dir=${BUILDLINK_PREFIX.zlib}
+
+BUILDLINK_API_DEPENDS.libevent= libevent>=2
+
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../devel/libidn/buildlink3.mk"
+.include "../../devel/php-raphf2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../sysutils/file/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../converters/php-iconv/buildlink3.mk"
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/php-http4/distinfo b/www/php-http4/distinfo
new file mode 100644
index 00000000000..17f06f7513f
--- /dev/null
+++ b/www/php-http4/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/12/13 15:13:17 taca Exp $
+
+BLAKE2s (php-http/pecl_http-4.2.1.tgz) = 83147b5a97591048df0e70c332e2409926f24225ea89891fb740e07cf773a99f
+SHA512 (php-http/pecl_http-4.2.1.tgz) = 2ad7e57fae313a7b46ba88e528e124ac9d83804827131a6ef478ccf3cf5883dec2d928b8ceb377ee7f5947c76f24d640d77533a9946612419e526786a79877e6
+Size (php-http/pecl_http-4.2.1.tgz) = 224452 bytes
+SHA1 (patch-autoconf_pecl_libcurl.m4) = 48263c311aeccc4fd2a5b366b56e85041d659b91
diff --git a/www/php-http4/patches/patch-autoconf_pecl_libcurl.m4 b/www/php-http4/patches/patch-autoconf_pecl_libcurl.m4
new file mode 100644
index 00000000000..fec52b3042c
--- /dev/null
+++ b/www/php-http4/patches/patch-autoconf_pecl_libcurl.m4
@@ -0,0 +1,15 @@
+$NetBSD: patch-autoconf_pecl_libcurl.m4,v 1.1 2021/12/13 15:13:17 taca Exp $
+
+Fix portability.
+
+--- autoconf/pecl/libcurl.m4.orig 2021-09-13 10:46:53.000000000 +0000
++++ autoconf/pecl/libcurl.m4
+@@ -181,7 +181,7 @@ AC_DEFUN([PECL_HAVE_LIBCURL_SSL], [dnl
+ fi
+ ])
+
+- if test "$PECL_VAR([LIBCURL_SSLLIB])" == "OpenSSL"; then
++ if test "$PECL_VAR([LIBCURL_SSLLIB])" = "OpenSSL"; then
+ PECL_HAVE_CONST([curl/curl.h], [CURLOPT_TLS13_CIPHERS], int, [
+ AC_CACHE_CHECK([whether curl_easy_setopt accepts CURLOPT_TLS13_CIPHERS], PECL_CACHE_VAR([LIBCURL_TLS13_CIPHERS]), [
+ PECL_CACHE_VAR([LIBCURL_TLS13_CIPHERS])=