Browse Source

Merge pull request #6928 from Rixerx/master

php7: add bcmath module
lilik-openwrt-22.03
Michael Heimpold 6 years ago
committed by GitHub
parent
commit
d6a4595d4c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      lang/php7/Makefile

+ 8
- 0
lang/php7/Makefile View File

@ -23,6 +23,7 @@ PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0 PKG_USE_MIPS16:=0
PHP7_MODULES = \ PHP7_MODULES = \
bcmath \
calendar ctype curl \ calendar ctype curl \
fileinfo \ fileinfo \
dom \ dom \
@ -172,6 +173,12 @@ CONFIGURE_ARGS+= \
--with-zlib="$(STAGING_DIR)/usr" \ --with-zlib="$(STAGING_DIR)/usr" \
--with-zlib-dir="$(STAGING_DIR)/usr" --with-zlib-dir="$(STAGING_DIR)/usr"
ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-bcmath),)
CONFIGURE_ARGS+= --enable-bcmath=shared
else
CONFIGURE_ARGS+= --disable-bcmath
endif
ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-calendar),) ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-calendar),)
CONFIGURE_ARGS+= --enable-calendar=shared CONFIGURE_ARGS+= --enable-calendar=shared
else else
@ -590,6 +597,7 @@ $(eval $(call BuildPackage,php7-fastcgi))
$(eval $(call BuildPackage,php7-fpm)) $(eval $(call BuildPackage,php7-fpm))
#$(eval $(call BuildModule,NAME,TITLE[,PKG DEPENDS])) #$(eval $(call BuildModule,NAME,TITLE[,PKG DEPENDS]))
$(eval $(call BuildModule,bcmath,Bcmath))
$(eval $(call BuildModule,calendar,Calendar)) $(eval $(call BuildModule,calendar,Calendar))
$(eval $(call BuildModule,ctype,Ctype)) $(eval $(call BuildModule,ctype,Ctype))
$(eval $(call BuildModule,curl,cURL,+PACKAGE_php7-mod-curl:libcurl)) $(eval $(call BuildModule,curl,cURL,+PACKAGE_php7-mod-curl:libcurl))


Loading…
Cancel
Save