You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.0 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PECL_NAME:=pecl_http
  7. PECL_LONGNAME:=Extended HTTP Support
  8. PKG_VERSION:=4.2.2
  9. PKG_RELEASE:=1
  10. PKG_HASH:=c338afd29259f0093f07f4e99b80705a2d5bb046c7ab32e5938eef29bbb63a6e
  11. PKG_NAME:=php8-pecl-http
  12. PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz
  13. PKG_SOURCE_URL:=http://pecl.php.net/get/
  14. PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
  15. PKG_LICENSE:=BSD-2-Clause
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_BUILD_DEPENDS:=php8 php8-pecl-raphf
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/pecl-php8/$(PECL_NAME)-$(PKG_VERSION)
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. include ../php8/pecl.mk
  23. CONFIGURE_VARS+= \
  24. PECL_cv_HAVE_EXT_raphf=yes \
  25. PECL_cv_HAVE_LIBCURL_ARES=no \
  26. PECL_cv_HAVE_LIBCURL_OpenSSL=$(if $(CONFIG_LIBCURL_OPENSSL),yes,no) \
  27. PECL_cv_HAVE_LIBCURL_GnuTLS=$(if $(CONFIG_LIBCURL_GNUTLS),yes,no) \
  28. PECL_cv_HAVE_LIBCURL_NSS=no \
  29. PECL_cv_HAVE_LIBCURL_SecureTransport=no \
  30. PECL_cv_HAVE_LIBCURL_GSKit=no \
  31. PECL_cv_HAVE_LIBCURL_PolarSSL=no \
  32. PECL_cv_HAVE_LIBCURL_WolfSSL=$(if $(CONFIG_LIBCURL_WOLFSSL),yes,no) \
  33. PECL_cv_HAVE_LIBCURL_mbedTLS=$(if $(CONFIG_LIBCURL_MBEDTLS),yes,no) \
  34. PECL_cv_HAVE_LIBCURL_axTLS=no \
  35. PECL_cv_LIBCURL_TLSAUTH_SRP=$(if $(CONFIG_LIBCURL_TLS_SRP),yes,no) \
  36. PECL_cv_LIBCURL_SHARE_SSL=yes \
  37. PECL_cv_LIBCURL_TLS13_CIPHERS=$(if $(CONFIG_OPENSSL_WITH_TLS13),yes,no) \
  38. CONFIGURE_ARGS+= \
  39. --with-http \
  40. --without-http-shared-deps \
  41. --with-http-zlib-dir="$(STAGING_DIR)/usr" \
  42. --with-http-libcurl-dir="$(STAGING_DIR)/usr" \
  43. --with-http-libevent-dir="$(STAGING_DIR)/usr" \
  44. --with-http-libidn-dir="$(STAGING_DIR)/usr" \
  45. --with-http-libidnkit-dir=no \
  46. --with-http-libidnkit2-dir=no
  47. $(eval $(call PHP8PECLPackage,http,$(PECL_LONGNAME),+icu +libcurl +librt +libevent2 +PACKAGE_libidn:libidn +libidn2 +php8-mod-iconv +php8-mod-session +php8-pecl-raphf,30))
  48. $(eval $(call BuildPackage,$(PKG_NAME)))