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.

49 lines
1.1 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. define Package/php8-pecl/Default
  6. SUBMENU:=PHP8
  7. SECTION:=lang
  8. CATEGORY:=Languages
  9. URL:=http://pecl.php.net/
  10. DEPENDS:=php8
  11. endef
  12. define Build/Prepare
  13. $(Build/Prepare/Default)
  14. ( cd $(PKG_BUILD_DIR); $(STAGING_DIR)/usr/bin/phpize8 )
  15. endef
  16. CONFIGURE_VARS+= \
  17. ac_cv_c_bigendian_php=$(if $(CONFIG_BIG_ENDIAN),yes,no)
  18. CONFIGURE_ARGS+= \
  19. --with-php-config=$(STAGING_DIR)/usr/bin/php8-config
  20. define PHP8PECLPackage
  21. define Package/php8-pecl-$(1)
  22. $(call Package/php8-pecl/Default)
  23. TITLE:=$(2)
  24. ifneq ($(3),)
  25. DEPENDS+=$(3)
  26. endif
  27. VARIANT:=php8
  28. endef
  29. define Package/php8-pecl-$(1)/install
  30. $(INSTALL_DIR) $$(1)/usr/lib/php8
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/php8/
  32. $(INSTALL_DIR) $$(1)/etc/php8
  33. ifeq ($(5),zend)
  34. echo "zend_extension=/usr/lib/php8/$(subst -,_,$(1)).so" > $$(1)/etc/php8/$(if $(4),$(4),20)_$(subst -,_,$(1)).ini
  35. else
  36. echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php8/$(if $(4),$(4),20)_$(subst -,_,$(1)).ini
  37. endif
  38. endef
  39. endef