php7: add bcmath module
authorKrystian Kozak <redacted>
Sun, 2 Sep 2018 12:19:27 +0000 (14:19 +0200)
committerKrystian Kozak <redacted>
Sun, 2 Sep 2018 12:19:27 +0000 (14:19 +0200)
Added bcmath module, which is required for some packages. For example it
is required for zabbix-server frontend

Compile tested: Yes, brcm2708
Run tested: Yes, brcm2708

Signed-off-by: Krystian Kozak <redacted>
lang/php7/Makefile

index 19b3bdafd5e6ad544dc21a226aa9dd9e06c67a6f..e7332616c8666b960cb2b5b57943fc1987bb0952 100644 (file)
@@ -23,6 +23,7 @@ PKG_BUILD_PARALLEL:=1
 PKG_USE_MIPS16:=0
 
 PHP7_MODULES = \
+       bcmath \
        calendar ctype curl \
        fileinfo \
        dom \
@@ -172,6 +173,12 @@ CONFIGURE_ARGS+= \
        --with-zlib="$(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),)
   CONFIGURE_ARGS+= --enable-calendar=shared
 else
@@ -590,6 +597,7 @@ $(eval $(call BuildPackage,php7-fastcgi))
 $(eval $(call BuildPackage,php7-fpm))
 
 #$(eval $(call BuildModule,NAME,TITLE[,PKG DEPENDS]))
+$(eval $(call BuildModule,bcmath,Bcmath))
 $(eval $(call BuildModule,calendar,Calendar))
 $(eval $(call BuildModule,ctype,Ctype))
 $(eval $(call BuildModule,curl,cURL,+PACKAGE_php7-mod-curl:libcurl))
git clone https://git.99rst.org/PROJECT