* Add a needed BUILD_DEPENDENCY on icu package, when PHP8_INTL is
defined.
* Make PHP8_DOM selecting PHP8_LIBXML instead of depending on it.
* PHP8_INTL does not depend on PHP8_GETTEXT, it builds also
without gettext.
* Always show option for choosing PHP8_FULLUCIDATA
* For php8-cgi, php-cli, etc, a libstdcpp dependency is only gained
when PHP8_INTL is selected, therefore update those conditional depends.
As some combinations of these changes can change the binaries output,
PKG_RELEASE has been bumped.
Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
config PHP8_DOM
bool "PHP8 DOM support"
- depends on PHP8_LIBXML
+ select PHP8_LIBXML
default y
help
Without php8-mod-dom, this option does not provide a PHP8
config PHP8_INTL
bool "Enable Internationalization"
- depends on PHP8_GETTEXT
default y
help
Note that this option depends in ICU library which is built without data
config PHP8_FULLICUDATA
bool "Add dependency to full ICU Data"
- depends on PHP8_INTL
default n
endmenu
PKG_NAME:=php
PKG_VERSION:=8.4.16
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
PKG_LICENSE:=PHP-3.01
CONFIG_PHP8_LIBXML \
CONFIG_PHP8_SYSTEMTZDATA
+PKG_BUILD_DEPENDS:= PHP8_INTL:icu
+
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
define Package/php8-cli
$(call Package/php8/Default)
- DEPENDS+= +PHP8_GETTEXT:libstdcpp +riscv64:libatomic
+ DEPENDS+= +PHP8_INTL:libstdcpp +riscv64:libatomic
TITLE+= (CLI)
endef
define Package/php8-cgi
$(call Package/php8/Default)
- DEPENDS+= +PHP8_GETTEXT:libstdcpp +riscv64:libatomic
+ DEPENDS+= +PHP8_INTL:libstdcpp +riscv64:libatomic
TITLE+= (CGI & FastCGI)
endef
define Package/php8-fpm
$(call Package/php8/Default)
- DEPENDS+= +PHP8_GETTEXT:libstdcpp +riscv64:libatomic
+ DEPENDS+= +PHP8_INTL:libstdcpp +riscv64:libatomic
TITLE+= (FPM)
endef