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.

582 lines
17 KiB

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