From: Florian Eckert Date: Thu, 18 Dec 2025 12:11:23 +0000 (+0100) Subject: php8: add php8 depends and move compile option to Config.in X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=74a3da92b2ae9dd1bde96f29d020b8c13a8cee5e;p=openwrt-packages.git php8: add php8 depends and move compile option to Config.in The php8 Makefile is already quite large. To improve readability, move config section to a separate 'Config.in' file. To ensure that the PHP8 option is only saved in '.config' if PHP8 has been selected for building. A depends on 'PACKAGE_php8' is added to the configuration option in the 'Config.in' file. Signed-off-by: Florian Eckert --- diff --git a/lang/php8/Config.in b/lang/php8/Config.in new file mode 100644 index 000000000..5859b056e --- /dev/null +++ b/lang/php8/Config.in @@ -0,0 +1,36 @@ +menu "Configuration" + depends on PACKAGE_php8 + +config PHP8_LIBXML + bool "PHP8 LIBXML support" + default y + +config PHP8_DOM + bool "PHP8 DOM support" + depends on PHP8_LIBXML + default y + +config PHP8_SYSTEMTZDATA + bool "Use system timezone data instead of php's built-in database" + depends on PACKAGE_php8-cli || PACKAGE_php8-cgi || PACKAGE_apache-mod-php8 + default y + help + Enabling this feature automatically selects the zoneinfo-core package + which contains data for UTC timezone. To use other timezones you have + to install the corresponding zoneinfo-... package(s). + +config PHP8_GETTEXT + bool "Enable gettext" + default y + +config PHP8_INTL + bool "Enable Internationalization" + depends on PHP8_GETTEXT + default y + +config PHP8_FULLICUDATA + bool "Add dependency to full ICU Data" + depends on PHP8_INTL + default n + +endmenu diff --git a/lang/php8/Makefile b/lang/php8/Makefile index 70c45f93e..ac5b9ab73 100644 --- a/lang/php8/Makefile +++ b/lang/php8/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=php PKG_VERSION:=8.4.16 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_MAINTAINER:=Michael Heimpold PKG_LICENSE:=PHP-3.01 @@ -61,38 +61,7 @@ define Package/php8/Default/description endef define Package/php8/config - config PHP8_LIBXML - bool "PHP8 LIBXML support" - default y - - config PHP8_DOM - bool "PHP8 DOM support" - depends on PHP8_LIBXML - default y - - config PHP8_SYSTEMTZDATA - bool "Use system timezone data instead of php's built-in database" - depends on PACKAGE_php8-cli || PACKAGE_php8-cgi || PACKAGE_apache-mod-php8 - default y - help - Enabling this feature automatically selects the zoneinfo-core package - which contains data for UTC timezone. To use other timezones you have - to install the corresponding zoneinfo-... package(s). - - config PHP8_GETTEXT - bool "Enable gettext" - default y - - config PHP8_INTL - bool "Enable Internationalization" - depends on PHP8_GETTEXT - default y - - config PHP8_FULLICUDATA - bool "Add dependency to full ICU Data" - depends on PHP8_INTL - default n - + source "$(SOURCE)/Config.in" endef define Package/php8