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.

593 lines
17 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=php
  7. PKG_VERSION:=7.0.11
  8. PKG_RELEASE:=1
  9. PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
  10. PKG_LICENSE:=PHPv3.01
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=http://www.php.net/distributions/
  14. PKG_MD5SUM:=9a6013a5e9f258bbfb62ae5ac66b72da
  15. PKG_FIXUP:=libtool autoreconf
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_USE_MIPS16:=0
  18. PHP7_MODULES = \
  19. calendar ctype curl \
  20. fileinfo \
  21. dom \
  22. exif \
  23. ftp \
  24. gettext gd gmp \
  25. hash \
  26. iconv intl \
  27. json \
  28. ldap \
  29. mbstring mcrypt mysqli \
  30. opcache openssl \
  31. pcntl pdo pdo-mysql pdo-pgsql pdo-sqlite pgsql phar \
  32. session shmop simplexml soap sockets sqlite3 sysvmsg sysvsem sysvshm \
  33. tokenizer \
  34. xml xmlreader xmlwriter zip \
  35. PKG_CONFIG_DEPENDS:= \
  36. $(patsubst %,CONFIG_PACKAGE_php7-mod-%,$(PHP7_MODULES)) \
  37. CONFIG_PHP7_FILTER CONFIG_PHP7_LIBXML CONFIG_PHP7_SYSTEMTZDATA
  38. include $(INCLUDE_DIR)/package.mk
  39. include $(INCLUDE_DIR)/nls.mk
  40. define Package/php7/Default
  41. SUBMENU:=PHP
  42. SECTION:=lang
  43. CATEGORY:=Languages
  44. TITLE:=PHP7 Hypertext preprocessor
  45. URL:=http://www.php.net/
  46. DEPENDS:=php7
  47. endef
  48. define Package/php7/Default/description
  49. PHP is a widely-used general-purpose scripting language that is especially
  50. suited for Web development and can be embedded into HTML.
  51. endef
  52. define Package/php7/config
  53. config PHP7_FILTER
  54. bool "PHP7 Filter support"
  55. depends on PACKAGE_php7-cli || PACKAGE_php7-cgi
  56. config PHP7_LIBXML
  57. bool "PHP7 LIBXML support"
  58. depends on PACKAGE_php7-cli || PACKAGE_php7-cgi
  59. config PHP7_SYSTEMTZDATA
  60. bool "Use system timezone data instead of php's built-in database"
  61. depends on PACKAGE_php7-cli || PACKAGE_php7-cgi
  62. select PACKAGE_zoneinfo-core
  63. default y
  64. help
  65. Enabling this feature automatically selects the zoneinfo-core package
  66. which contains data for UTC timezone. To use other timezones you have
  67. to install the corresponding zoneinfo-... package(s).
  68. endef
  69. define Package/php7
  70. $(call Package/php7/Default)
  71. DEPENDS:=+libpcre +zlib \
  72. +PHP7_LIBXML:libxml2
  73. endef
  74. define Package/php7/description
  75. $(call Package/php7/Default/description)
  76. This package contains only the PHP config file. You must actually choose
  77. your PHP flavour (cli, cgi or fastcgi).
  78. Please note, that installing php5 and php7 in parallel on the same target
  79. is not supported in OpenWrt/LEDE.
  80. endef
  81. define Package/php7-cli
  82. $(call Package/php7/Default)
  83. DEPENDS+= +PACKAGE_php7-mod-intl:libstdcpp
  84. TITLE+= (CLI)
  85. endef
  86. define Package/php7-cli/description
  87. $(call Package/php7/Default/description)
  88. This package contains the CLI version of the PHP7 interpreter.
  89. endef
  90. define Package/php7-cgi
  91. $(call Package/php7/Default)
  92. DEPENDS+= +PACKAGE_php7-mod-intl:libstdcpp
  93. TITLE+= (CGI & FastCGI)
  94. endef
  95. define Package/php7-cgi/description
  96. $(call Package/php7/Default/description)
  97. This package contains the CGI version of the PHP7 interpreter.
  98. endef
  99. define Package/php7-fastcgi
  100. $(call Package/php7/Default)
  101. DEPENDS+= +php7-cgi
  102. TITLE:=FastCGI startup script
  103. endef
  104. define Package/php7-fastcgi/description
  105. As FastCGI support is now a core feature the php7-fastcgi package now depends
  106. on the php7-cgi package, containing just the startup script.
  107. endef
  108. define Package/php7-fpm
  109. $(call Package/php7/Default)
  110. DEPENDS+= +php7-cgi
  111. TITLE+= (FPM)
  112. endef
  113. define Package/php7-fpm/description
  114. $(call Package/php7/Default/description)
  115. This package contains the FastCGI Process Manager of the PHP7 interpreter.
  116. endef
  117. CONFIGURE_ARGS+= \
  118. --enable-cli \
  119. --enable-cgi \
  120. --enable-fpm \
  121. --enable-shared \
  122. --disable-static \
  123. --disable-rpath \
  124. --disable-debug \
  125. --disable-phpdbg \
  126. --without-pear \
  127. \
  128. --with-config-file-path=/etc \
  129. --with-config-file-scan-dir=/etc/php7 \
  130. --disable-short-tags \
  131. \
  132. --with-zlib="$(STAGING_DIR)/usr" \
  133. --with-zlib-dir="$(STAGING_DIR)/usr"
  134. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-calendar),)
  135. CONFIGURE_ARGS+= --enable-calendar=shared
  136. else
  137. CONFIGURE_ARGS+= --disable-calendar
  138. endif
  139. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-ctype),)
  140. CONFIGURE_ARGS+= --enable-ctype=shared
  141. else
  142. CONFIGURE_ARGS+= --disable-ctype
  143. endif
  144. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-curl),)
  145. CONFIGURE_ARGS+= --with-curl=shared,"$(STAGING_DIR)/usr"
  146. else
  147. CONFIGURE_ARGS+= --without-curl
  148. endif
  149. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-fileinfo),)
  150. CONFIGURE_ARGS+= --enable-fileinfo=shared
  151. else
  152. CONFIGURE_ARGS+= --disable-fileinfo
  153. endif
  154. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-gettext),)
  155. CONFIGURE_ARGS+= --with-gettext=shared,"$(STAGING_DIR)/usr/lib/libintl-full"
  156. else
  157. CONFIGURE_ARGS+= --without-gettext
  158. endif
  159. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-dom),)
  160. CONFIGURE_ARGS+= --enable-dom=shared
  161. else
  162. CONFIGURE_ARGS+= --disable-dom
  163. endif
  164. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-exif),)
  165. CONFIGURE_ARGS+= --enable-exif=shared
  166. else
  167. CONFIGURE_ARGS+= --disable-exif
  168. endif
  169. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-ftp),)
  170. CONFIGURE_ARGS+= --enable-ftp=shared
  171. else
  172. CONFIGURE_ARGS+= --disable-ftp
  173. endif
  174. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-gd),)
  175. CONFIGURE_ARGS+= \
  176. --with-gd=shared \
  177. --without-freetype-dir \
  178. --with-jpeg-dir="$(STAGING_DIR)/usr" \
  179. --with-png-dir="$(STAGING_DIR)/usr" \
  180. --without-xpm-dir \
  181. --without-t1lib \
  182. --enable-gd-native-ttf \
  183. --disable-gd-jis-conv
  184. else
  185. CONFIGURE_ARGS+= --without-gd
  186. endif
  187. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-gmp),)
  188. CONFIGURE_ARGS+= --with-gmp=shared,"$(STAGING_DIR)/usr"
  189. else
  190. CONFIGURE_ARGS+= --without-gmp
  191. endif
  192. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-hash),)
  193. CONFIGURE_ARGS+= --enable-hash=shared
  194. else
  195. CONFIGURE_ARGS+= --disable-hash
  196. endif
  197. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-iconv),)
  198. CONFIGURE_ARGS+= --with-iconv=shared,"$(ICONV_PREFIX)"
  199. else
  200. CONFIGURE_ARGS+= --without-iconv
  201. endif
  202. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-intl),)
  203. CONFIGURE_ARGS+= --enable-intl=shared
  204. else
  205. CONFIGURE_ARGS+= --disable-intl
  206. endif
  207. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-json),)
  208. CONFIGURE_ARGS+= --enable-json=shared
  209. else
  210. CONFIGURE_ARGS+= --disable-json
  211. endif
  212. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-ldap),)
  213. CONFIGURE_ARGS+= \
  214. --with-ldap=shared,"$(STAGING_DIR)/usr" \
  215. --with-ldap-sasl="$(STAGING_DIR)/usr"
  216. else
  217. CONFIGURE_ARGS+= --without-ldap
  218. endif
  219. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-mbstring),)
  220. CONFIGURE_ARGS+= --enable-mbstring=shared --enable-mbregex
  221. else
  222. CONFIGURE_ARGS+= --disable-mbstring
  223. endif
  224. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-mcrypt),)
  225. CONFIGURE_ARGS+= --with-mcrypt=shared,"$(STAGING_DIR)/usr"
  226. else
  227. CONFIGURE_ARGS+= --without-mcrypt
  228. endif
  229. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-mysqli),)
  230. CONFIGURE_ARGS+= --with-mysqli=shared,"$(STAGING_DIR)/usr/bin/mysql_config"
  231. else
  232. CONFIGURE_ARGS+= --without-mysqli
  233. endif
  234. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-opcache),)
  235. CONFIGURE_ARGS+= --enable-opcache=shared
  236. else
  237. CONFIGURE_ARGS+= --disable-opcache
  238. endif
  239. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-openssl),)
  240. CONFIGURE_ARGS+= \
  241. --with-openssl=shared,"$(STAGING_DIR)/usr" \
  242. --with-kerberos=no \
  243. --with-openssl-dir="$(STAGING_DIR)/usr"
  244. else
  245. CONFIGURE_ARGS+= --without-openssl
  246. endif
  247. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-pcntl),)
  248. CONFIGURE_ARGS+= --enable-pcntl=shared
  249. else
  250. CONFIGURE_ARGS+= --disable-pcntl
  251. endif
  252. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-pdo),)
  253. CONFIGURE_ARGS+= --enable-pdo=shared
  254. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-pdo-mysql),)
  255. CONFIGURE_ARGS+= --with-pdo-mysql=shared,"$(STAGING_DIR)/usr"
  256. else
  257. CONFIGURE_ARGS+= --without-pdo-mysql
  258. endif
  259. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-pdo-pgsql),)
  260. CONFIGURE_ARGS+= --with-pdo-pgsql=shared,"$(STAGING_DIR)/usr"
  261. else
  262. CONFIGURE_ARGS+= --without-pdo-pgsql
  263. endif
  264. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-pdo-sqlite),)
  265. CONFIGURE_ARGS+= --with-pdo-sqlite=shared,"$(STAGING_DIR)/usr"
  266. else
  267. CONFIGURE_ARGS+= --without-pdo-sqlite
  268. endif
  269. else
  270. CONFIGURE_ARGS+= --disable-pdo
  271. endif
  272. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-pgsql),)
  273. CONFIGURE_ARGS+= --with-pgsql=shared,"$(STAGING_DIR)/usr"
  274. else
  275. CONFIGURE_ARGS+= --without-pgsql
  276. endif
  277. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-phar),)
  278. CONFIGURE_ARGS+= --enable-phar=shared
  279. else
  280. CONFIGURE_ARGS+= --disable-phar
  281. endif
  282. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-session),)
  283. CONFIGURE_ARGS+= --enable-session=shared
  284. else
  285. CONFIGURE_ARGS+= --disable-session
  286. endif
  287. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-shmop),)
  288. CONFIGURE_ARGS+= --enable-shmop=shared
  289. else
  290. CONFIGURE_ARGS+= --disable-shmop
  291. endif
  292. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-simplexml),)
  293. CONFIGURE_ARGS+= --enable-simplexml=shared
  294. else
  295. CONFIGURE_ARGS+= --disable-simplexml
  296. endif
  297. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-soap),)
  298. CONFIGURE_ARGS+= --enable-soap=shared
  299. else
  300. CONFIGURE_ARGS+= --disable-soap
  301. endif
  302. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-sockets),)
  303. CONFIGURE_ARGS+= --enable-sockets=shared
  304. else
  305. CONFIGURE_ARGS+= --disable-sockets
  306. endif
  307. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-sqlite3),)
  308. CONFIGURE_ARGS+= --with-sqlite3=shared,"$(STAGING_DIR)/usr"
  309. else
  310. CONFIGURE_ARGS+= --without-sqlite3
  311. endif
  312. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-sysvmsg),)
  313. CONFIGURE_ARGS+= --enable-sysvmsg=shared
  314. else
  315. CONFIGURE_ARGS+= --disable-sysvmsg
  316. endif
  317. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-sysvsem),)
  318. CONFIGURE_ARGS+= --enable-sysvsem=shared
  319. else
  320. CONFIGURE_ARGS+= --disable-sysvsem
  321. endif
  322. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-sysvshm),)
  323. CONFIGURE_ARGS+= --enable-sysvshm=shared
  324. else
  325. CONFIGURE_ARGS+= --disable-sysvshm
  326. endif
  327. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-tokenizer),)
  328. CONFIGURE_ARGS+= --enable-tokenizer=shared
  329. else
  330. CONFIGURE_ARGS+= --disable-tokenizer
  331. endif
  332. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-xml),)
  333. CONFIGURE_ARGS+= --enable-xml=shared,"$(STAGING_DIR)/usr"
  334. ifneq ($(CONFIG_PHP7_LIBXML),)
  335. CONFIGURE_ARGS+= --with-libxml-dir="$(STAGING_DIR)/usr/include/libxml2"
  336. else
  337. CONFIGURE_ARGS+= --with-libexpat-dir="$(STAGING_DIR)/usr"
  338. endif
  339. else
  340. CONFIGURE_ARGS+= --disable-xml
  341. endif
  342. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-xmlreader),)
  343. CONFIGURE_ARGS+= --enable-xmlreader=shared,"$(STAGING_DIR)/usr"
  344. else
  345. CONFIGURE_ARGS+= --disable-xmlreader
  346. endif
  347. ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-xmlwriter),)
  348. CONFIGURE_ARGS+= --enable-xmlwriter=shared,"$(STAGING_DIR)/usr"
  349. else
  350. CONFIGURE_ARGS+= --disable-xmlwriter
  351. endif
  352. ifneq ($(CONFIG_PACKAGE_php7-mod-zip),)
  353. CONFIGURE_ARGS+= --enable-zip=shared
  354. else
  355. CONFIGURE_ARGS+= --disable-zip
  356. endif
  357. ifneq ($(SDK)$(CONFIG_PHP7_FILTER),)
  358. CONFIGURE_ARGS+= --enable-filter
  359. else
  360. CONFIGURE_ARGS+= --disable-filter
  361. endif
  362. ifneq ($(SDK)$(CONFIG_PHP7_LIBXML),)
  363. CONFIGURE_ARGS+= --enable-libxml
  364. CONFIGURE_ARGS+= --with-libxml-dir="$(STAGING_DIR)/usr/include/libxml2"
  365. else
  366. CONFIGURE_ARGS+= --disable-libxml
  367. endif
  368. #ifneq ($(CONFIG_PHP7_SYSTEMTZDATA),)
  369. # CONFIGURE_ARGS+= --with-system-tzdata
  370. #else
  371. # CONFIGURE_ARGS+= --without-system-tzdata
  372. #endif
  373. CONFIGURE_VARS+= \
  374. ac_cv_c_bigendian_php=$(if $(CONFIG_BIG_ENDIAN),yes,no) \
  375. php_cv_cc_rpath="no" \
  376. iconv_impl_name="gnu_libiconv" \
  377. ac_cv_php_xml2_config_path="$(STAGING_DIR)/host/bin/xml2-config" \
  378. define Package/php7/conffiles
  379. /etc/php.ini
  380. endef
  381. define Package/php7/install
  382. $(INSTALL_DIR) $(1)/etc
  383. $(INSTALL_DATA) ./files/php.ini $(1)/etc/
  384. endef
  385. define Package/php7-cli/install
  386. $(INSTALL_DIR) $(1)/usr/bin
  387. $(CP) $(PKG_BUILD_DIR)/sapi/cli/php $(1)/usr/bin/php-cli
  388. endef
  389. define Package/php7-cgi/install
  390. $(INSTALL_DIR) $(1)/usr/bin
  391. $(CP) $(PKG_BUILD_DIR)/sapi/cgi/php-cgi $(1)/usr/bin/php-cgi
  392. ln -sf php-cgi $(1)/usr/bin/php-fcgi
  393. endef
  394. define Package/php7-fastcgi/install
  395. $(INSTALL_DIR) $(1)/etc/config
  396. $(INSTALL_DATA) ./files/php7-fastcgi.config $(1)/etc/config/php7-fastcgi
  397. $(INSTALL_DIR) $(1)/etc/init.d
  398. $(INSTALL_BIN) ./files/php7-fastcgi.init $(1)/etc/init.d/php7-fastcgi
  399. endef
  400. define Package/php7-fpm/install
  401. $(INSTALL_DIR) $(1)/usr/bin
  402. $(INSTALL_BIN) $(PKG_BUILD_DIR)/sapi/fpm/php-fpm $(1)/usr/bin/php-fpm
  403. $(INSTALL_DIR) $(1)/etc
  404. $(INSTALL_DATA) ./files/php7-fpm.conf $(1)/etc/php7-fpm.conf
  405. $(INSTALL_DIR) $(1)/etc/config
  406. $(INSTALL_DATA) ./files/php7-fpm.config $(1)/etc/config/php7-fpm
  407. $(INSTALL_DIR) $(1)/etc/php7-fpm.d
  408. $(INSTALL_DATA) ./files/php7-fpm-www.conf $(1)/etc/php7-fpm.d/www.conf
  409. $(INSTALL_DIR) $(1)/etc/init.d
  410. $(INSTALL_BIN) ./files/php7-fpm.init $(1)/etc/init.d/php7-fpm
  411. endef
  412. define Build/Prepare
  413. $(call Build/Prepare/Default)
  414. ( cd $(PKG_BUILD_DIR); touch configure.in; ./buildconf --force )
  415. endef
  416. define Build/InstallDev
  417. rm -rf $(PKG_BUILD_DIR)/staging
  418. make -C $(PKG_BUILD_DIR) install INSTALL_ROOT=$(PKG_BUILD_DIR)/staging
  419. rm -rf $(PKG_BUILD_DIR)/staging/usr/{share,man,sbin}
  420. rm -f $(PKG_BUILD_DIR)/staging/usr/bin/{php,php-cgi,php-cli}
  421. mv $(PKG_BUILD_DIR)/staging/usr/bin/phpize $(PKG_BUILD_DIR)/staging/usr/bin/phpize7
  422. mv $(PKG_BUILD_DIR)/staging/usr/bin/php-config $(PKG_BUILD_DIR)/staging/usr/bin/php7-config
  423. mv $(PKG_BUILD_DIR)/staging/usr/include/php $(PKG_BUILD_DIR)/staging/usr/include/php7
  424. mv $(PKG_BUILD_DIR)/staging/usr/lib/php $(PKG_BUILD_DIR)/staging/usr/lib/php7
  425. $(CP) $(PKG_BUILD_DIR)/staging/usr $(STAGING_DIR)/
  426. sed -i -e "s#prefix='/usr'#prefix='$(STAGING_DIR)/usr'#" $(STAGING_DIR)/usr/bin/phpize7
  427. sed -i -e "s#exec_prefix=\"\`eval echo /usr\`\"#exec_prefix='$(STAGING_DIR)/usr'#" $(STAGING_DIR)/usr/bin/phpize7
  428. sed -i -e "s#/include\`/php\"#/include\`/php7\"#" $(STAGING_DIR)/usr/bin/phpize7
  429. sed -i -e "s#/lib/php\`/build\"#/lib/php7\`/build\"#" $(STAGING_DIR)/usr/bin/phpize7
  430. sed -i -e "s#prefix=\"/usr\"#prefix=\"$(STAGING_DIR)/usr\"#" $(STAGING_DIR)/usr/bin/php7-config
  431. sed -i -e "s#/include/php\"#/include/php7\"#" $(STAGING_DIR)/usr/bin/php7-config
  432. endef
  433. define BuildModule
  434. define Package/php7-mod-$(1)
  435. $(call Package/php7/Default)
  436. ifneq ($(3),)
  437. DEPENDS+=$(3)
  438. endif
  439. TITLE:=$(2) shared module
  440. endef
  441. define Package/php7-mod-$(1)/install
  442. $(INSTALL_DIR) $$(1)/usr/lib/php
  443. $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/php/
  444. $(INSTALL_DIR) $$(1)/etc/php7
  445. ifeq ($(5),zend)
  446. echo "zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc/php7/$(if $(4),$(4),20)_$(subst -,_,$(1)).ini
  447. else
  448. echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php7/$(if $(4),$(4),20)_$(subst -,_,$(1)).ini
  449. endif
  450. endef
  451. $$(eval $$(call BuildPackage,php7-mod-$(1)))
  452. endef
  453. $(eval $(call BuildPackage,php7))
  454. $(eval $(call BuildPackage,php7-cgi))
  455. $(eval $(call BuildPackage,php7-cli))
  456. $(eval $(call BuildPackage,php7-fastcgi))
  457. $(eval $(call BuildPackage,php7-fpm))
  458. #$(eval $(call BuildModule,NAME,TITLE[,PKG DEPENDS]))
  459. $(eval $(call BuildModule,calendar,Calendar))
  460. $(eval $(call BuildModule,ctype,Ctype))
  461. $(eval $(call BuildModule,curl,cURL,+PACKAGE_php7-mod-curl:libcurl))
  462. $(eval $(call BuildModule,dom,DOM,+@PHP7_LIBXML +PACKAGE_php7-mod-dom:libxml2))
  463. $(eval $(call BuildModule,exif,EXIF))
  464. $(eval $(call BuildModule,fileinfo,Fileinfo))
  465. $(eval $(call BuildModule,ftp,FTP,+PACKAGE_php7-mod-ftp:libopenssl))
  466. $(eval $(call BuildModule,gd,GD graphics,+PACKAGE_php7-mod-gd:libjpeg +PACKAGE_php7-mod-gd:libpng))
  467. $(eval $(call BuildModule,gettext,Gettext,+PACKAGE_php7-mod-gettext:libintl-full))
  468. $(eval $(call BuildModule,gmp,GMP,+PACKAGE_php7-mod-gmp:libgmp))
  469. $(eval $(call BuildModule,hash,Hash))
  470. $(eval $(call BuildModule,iconv,iConv,$(ICONV_DEPENDS)))
  471. $(eval $(call BuildModule,intl,Internationalization Functions,+PACKAGE_php7-mod-intl:icu))
  472. $(eval $(call BuildModule,json,JSON))
  473. $(eval $(call BuildModule,ldap,LDAP,+PACKAGE_php7-mod-ldap:libopenldap +PACKAGE_php7-mod-ldap:libsasl2))
  474. $(eval $(call BuildModule,mbstring,MBString))
  475. $(eval $(call BuildModule,mcrypt,Mcrypt,+PACKAGE_php7-mod-mcrypt:libmcrypt +PACKAGE_php7-mod-mcrypt:libltdl))
  476. $(eval $(call BuildModule,mysqli,MySQL Improved Extension,+PACKAGE_php7-mod-mysqli:libmysqlclient))
  477. $(eval $(call BuildModule,opcache,OPcache,,,zend))
  478. $(eval $(call BuildModule,openssl,OpenSSL,+PACKAGE_php7-mod-openssl:libopenssl))
  479. $(eval $(call BuildModule,pcntl,PCNTL))
  480. $(eval $(call BuildModule,pdo,PHP Data Objects))
  481. $(eval $(call BuildModule,pdo-mysql,PDO driver for MySQL,+php7-mod-pdo +PACKAGE_php7-mod-pdo-mysql:libmysqlclient))
  482. $(eval $(call BuildModule,pdo-pgsql,PDO driver for PostgreSQL,+php7-mod-pdo +PACKAGE_php7-mod-pdo-pgsql:libpq))
  483. $(eval $(call BuildModule,pdo-sqlite,PDO driver for SQLite 3.x,+php7-mod-pdo +PACKAGE_php7-mod-pdo-sqlite:libsqlite3 +PACKAGE_php7-mod-pdo-sqlite:librt))
  484. $(eval $(call BuildModule,pgsql,PostgreSQL,+PACKAGE_php7-mod-pgsql:libpq))
  485. $(eval $(call BuildModule,phar,Phar Archives,+php7-mod-hash))
  486. $(eval $(call BuildModule,session,Session))
  487. $(eval $(call BuildModule,shmop,Shared Memory))
  488. $(eval $(call BuildModule,simplexml,SimpleXML,+@PHP7_LIBXML +PACKAGE_php7-mod-simplexml:libxml2))
  489. $(eval $(call BuildModule,soap,SOAP,+@PHP7_LIBXML +PACKAGE_php7-mod-soap:libxml2))
  490. $(eval $(call BuildModule,sockets,Sockets))
  491. $(eval $(call BuildModule,sqlite3,SQLite3,+PACKAGE_php7-mod-sqlite3:libsqlite3))
  492. $(eval $(call BuildModule,sysvmsg,System V messages))
  493. $(eval $(call BuildModule,sysvsem,System V shared memory))
  494. $(eval $(call BuildModule,sysvshm,System V semaphore))
  495. $(eval $(call BuildModule,tokenizer,Tokenizer))
  496. $(eval $(call BuildModule,xml,XML,+PHP7_LIBXML:libxml2 +!PHP7_LIBXML:libexpat))
  497. $(eval $(call BuildModule,xmlreader,XMLReader,+@PHP7_LIBXML +PACKAGE_php7-mod-xmlreader:libxml2))
  498. $(eval $(call BuildModule,xmlwriter,XMLWriter,+@PHP7_LIBXML +PACKAGE_php7-mod-xmlwriter:libxml2))
  499. $(eval $(call BuildModule,zip,ZIP,+PACKAGE_php7-mod-zip:zlib))