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.

573 lines
16 KiB

  1. #
  2. # Copyright (C) 2006-2015 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.15
  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.bz2
  15. PKG_SOURCE_URL:=http://www.php.net/distributions/
  16. PKG_MD5SUM:=bdfa8fb1b895a25e1cc05c162f9ae5fc
  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 \
  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. TITLE+= (CLI)
  84. endef
  85. define Package/php5-cli/description
  86. $(call Package/php5/Default/description)
  87. This package contains the CLI version of the PHP5 interpreter.
  88. endef
  89. define Package/php5-cgi
  90. $(call Package/php5/Default)
  91. TITLE+= (CGI & FastCGI)
  92. endef
  93. define Package/php5-cgi/description
  94. $(call Package/php5/Default/description)
  95. This package contains the CGI version of the PHP5 interpreter.
  96. endef
  97. define Package/php5-fastcgi
  98. $(call Package/php5/Default)
  99. DEPENDS+= +php5-cgi
  100. TITLE:=FastCGI startup script
  101. endef
  102. define Package/php5-fastcgi/description
  103. As FastCGI support is now a core feature the php5-fastcgi package now depends
  104. on the php5-cgi package, containing just the startup script.
  105. endef
  106. define Package/php5-fpm
  107. $(call Package/php5/Default)
  108. DEPENDS+= +php5-cgi
  109. TITLE+= (FPM)
  110. endef
  111. define Package/php5-fpm/description
  112. $(call Package/php5/Default/description)
  113. This package contains the FastCGI Process Manager of the PHP5 interpreter.
  114. endef
  115. CONFIGURE_ARGS+= \
  116. --enable-cli \
  117. --enable-cgi \
  118. --enable-fpm \
  119. --enable-shared \
  120. --disable-static \
  121. --disable-rpath \
  122. --disable-debug \
  123. --without-pear \
  124. \
  125. --with-config-file-path=/etc \
  126. --with-config-file-scan-dir=/etc/php5 \
  127. --disable-short-tags \
  128. \
  129. --with-zlib="$(STAGING_DIR)/usr" \
  130. --with-zlib-dir="$(STAGING_DIR)/usr" \
  131. --with-pcre-regex="$(STAGING_DIR)/usr" \
  132. --disable-phar
  133. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-calendar),)
  134. CONFIGURE_ARGS+= --enable-calendar=shared
  135. else
  136. CONFIGURE_ARGS+= --disable-calendar
  137. endif
  138. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-ctype),)
  139. CONFIGURE_ARGS+= --enable-ctype=shared
  140. else
  141. CONFIGURE_ARGS+= --disable-ctype
  142. endif
  143. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-curl),)
  144. CONFIGURE_ARGS+= --with-curl=shared,"$(STAGING_DIR)/usr"
  145. else
  146. CONFIGURE_ARGS+= --without-curl
  147. endif
  148. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-fileinfo),)
  149. CONFIGURE_ARGS+= --enable-fileinfo=shared
  150. else
  151. CONFIGURE_ARGS+= --disable-fileinfo
  152. endif
  153. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-gettext),)
  154. CONFIGURE_ARGS+= --with-gettext=shared,"$(STAGING_DIR)/usr/lib/libintl-full"
  155. else
  156. CONFIGURE_ARGS+= --without-gettext
  157. endif
  158. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-dom),)
  159. CONFIGURE_ARGS+= --enable-dom=shared
  160. else
  161. CONFIGURE_ARGS+= --disable-dom
  162. endif
  163. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-exif),)
  164. CONFIGURE_ARGS+= --enable-exif=shared
  165. else
  166. CONFIGURE_ARGS+= --disable-exif
  167. endif
  168. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-ftp),)
  169. CONFIGURE_ARGS+= --enable-ftp=shared
  170. else
  171. CONFIGURE_ARGS+= --disable-ftp
  172. endif
  173. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-gd),)
  174. CONFIGURE_ARGS+= \
  175. --with-gd=shared \
  176. --without-freetype-dir \
  177. --with-jpeg-dir="$(STAGING_DIR)/usr" \
  178. --with-png-dir="$(STAGING_DIR)/usr" \
  179. --without-xpm-dir \
  180. --without-t1lib \
  181. --enable-gd-native-ttf \
  182. --disable-gd-jis-conv
  183. else
  184. CONFIGURE_ARGS+= --without-gd
  185. endif
  186. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-gmp),)
  187. CONFIGURE_ARGS+= --with-gmp=shared,"$(STAGING_DIR)/usr"
  188. else
  189. CONFIGURE_ARGS+= --without-gmp
  190. endif
  191. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-hash),)
  192. CONFIGURE_ARGS+= --enable-hash=shared
  193. else
  194. CONFIGURE_ARGS+= --disable-hash
  195. endif
  196. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-iconv),)
  197. CONFIGURE_ARGS+= --with-iconv=shared,"$(ICONV_PREFIX)"
  198. else
  199. CONFIGURE_ARGS+= --without-iconv
  200. endif
  201. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-json),)
  202. CONFIGURE_ARGS+= --enable-json=shared
  203. else
  204. CONFIGURE_ARGS+= --disable-json
  205. endif
  206. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-ldap),)
  207. CONFIGURE_ARGS+= \
  208. --with-ldap=shared,"$(STAGING_DIR)/usr" \
  209. --with-ldap-sasl="$(STAGING_DIR)/usr"
  210. else
  211. CONFIGURE_ARGS+= --without-ldap
  212. endif
  213. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mbstring),)
  214. CONFIGURE_ARGS+= --enable-mbstring=shared --enable-mbregex
  215. else
  216. CONFIGURE_ARGS+= --disable-mbstring
  217. endif
  218. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mcrypt),)
  219. CONFIGURE_ARGS+= --with-mcrypt=shared,"$(STAGING_DIR)/usr"
  220. else
  221. CONFIGURE_ARGS+= --without-mcrypt
  222. endif
  223. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mysql),)
  224. CONFIGURE_ARGS+= --with-mysql=shared,"$(STAGING_DIR)/usr"
  225. else
  226. CONFIGURE_ARGS+= --without-mysql
  227. endif
  228. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mysqli),)
  229. CONFIGURE_ARGS+= --with-mysqli=shared,"$(STAGING_DIR)/usr/bin/mysql_config"
  230. else
  231. CONFIGURE_ARGS+= --without-mysqli
  232. endif
  233. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-opcache),)
  234. CONFIGURE_ARGS+= --enable-opcache=shared
  235. else
  236. CONFIGURE_ARGS+= --disable-opcache
  237. endif
  238. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-openssl),)
  239. CONFIGURE_ARGS+= \
  240. --with-openssl=shared,"$(STAGING_DIR)/usr" \
  241. --with-kerberos=no \
  242. --with-openssl-dir="$(STAGING_DIR)/usr"
  243. else
  244. CONFIGURE_ARGS+= --without-openssl
  245. endif
  246. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-pcntl),)
  247. CONFIGURE_ARGS+= --enable-pcntl=shared
  248. else
  249. CONFIGURE_ARGS+= --disable-pcntl
  250. endif
  251. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-pdo),)
  252. CONFIGURE_ARGS+= --enable-pdo=shared
  253. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-pdo-mysql),)
  254. CONFIGURE_ARGS+= --with-pdo-mysql=shared,"$(STAGING_DIR)/usr"
  255. else
  256. CONFIGURE_ARGS+= --without-pdo-mysql
  257. endif
  258. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-pdo-pgsql),)
  259. CONFIGURE_ARGS+= --with-pdo-pgsql=shared,"$(STAGING_DIR)/usr"
  260. else
  261. CONFIGURE_ARGS+= --without-pdo-pgsql
  262. endif
  263. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-pdo-sqlite),)
  264. CONFIGURE_ARGS+= --with-pdo-sqlite=shared,"$(STAGING_DIR)/usr"
  265. else
  266. CONFIGURE_ARGS+= --without-pdo-sqlite
  267. endif
  268. else
  269. CONFIGURE_ARGS+= --disable-pdo
  270. endif
  271. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-pgsql),)
  272. CONFIGURE_ARGS+= --with-pgsql=shared,"$(STAGING_DIR)/usr"
  273. else
  274. CONFIGURE_ARGS+= --without-pgsql
  275. endif
  276. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-session),)
  277. CONFIGURE_ARGS+= --enable-session=shared
  278. else
  279. CONFIGURE_ARGS+= --disable-session
  280. endif
  281. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-shmop),)
  282. CONFIGURE_ARGS+= --enable-shmop=shared
  283. else
  284. CONFIGURE_ARGS+= --disable-shmop
  285. endif
  286. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-simplexml),)
  287. CONFIGURE_ARGS+= --enable-simplexml=shared
  288. else
  289. CONFIGURE_ARGS+= --disable-simplexml
  290. endif
  291. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-soap),)
  292. CONFIGURE_ARGS+= --enable-soap=shared
  293. else
  294. CONFIGURE_ARGS+= --disable-soap
  295. endif
  296. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sockets),)
  297. CONFIGURE_ARGS+= --enable-sockets=shared
  298. else
  299. CONFIGURE_ARGS+= --disable-sockets
  300. endif
  301. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sqlite3),)
  302. CONFIGURE_ARGS+= --with-sqlite3=shared,"$(STAGING_DIR)/usr"
  303. else
  304. CONFIGURE_ARGS+= --without-sqlite3
  305. endif
  306. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sysvmsg),)
  307. CONFIGURE_ARGS+= --enable-sysvmsg=shared
  308. else
  309. CONFIGURE_ARGS+= --disable-sysvmsg
  310. endif
  311. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sysvsem),)
  312. CONFIGURE_ARGS+= --enable-sysvsem=shared
  313. else
  314. CONFIGURE_ARGS+= --disable-sysvsem
  315. endif
  316. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sysvshm),)
  317. CONFIGURE_ARGS+= --enable-sysvshm=shared
  318. else
  319. CONFIGURE_ARGS+= --disable-sysvshm
  320. endif
  321. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-tokenizer),)
  322. CONFIGURE_ARGS+= --enable-tokenizer=shared
  323. else
  324. CONFIGURE_ARGS+= --disable-tokenizer
  325. endif
  326. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-xml),)
  327. CONFIGURE_ARGS+= --enable-xml=shared,"$(STAGING_DIR)/usr"
  328. ifneq ($(CONFIG_PHP5_LIBXML),)
  329. CONFIGURE_ARGS+= --with-libxml-dir="$(STAGING_DIR)/usr/include/libxml2"
  330. else
  331. CONFIGURE_ARGS+= --with-libexpat-dir="$(STAGING_DIR)/usr"
  332. endif
  333. else
  334. CONFIGURE_ARGS+= --disable-xml
  335. endif
  336. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-xmlreader),)
  337. CONFIGURE_ARGS+= --enable-xmlreader=shared,"$(STAGING_DIR)/usr"
  338. else
  339. CONFIGURE_ARGS+= --disable-xmlreader
  340. endif
  341. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-xmlwriter),)
  342. CONFIGURE_ARGS+= --enable-xmlwriter=shared,"$(STAGING_DIR)/usr"
  343. else
  344. CONFIGURE_ARGS+= --disable-xmlwriter
  345. endif
  346. ifneq ($(CONFIG_PACKAGE_php5-mod-zip),)
  347. CONFIGURE_ARGS+= --enable-zip=shared
  348. else
  349. CONFIGURE_ARGS+= --disable-zip
  350. endif
  351. ifneq ($(SDK)$(CONFIG_PHP5_FILTER),)
  352. CONFIGURE_ARGS+= --enable-filter
  353. else
  354. CONFIGURE_ARGS+= --disable-filter
  355. endif
  356. ifneq ($(SDK)$(CONFIG_PHP5_LIBXML),)
  357. CONFIGURE_ARGS+= --enable-libxml
  358. CONFIGURE_ARGS+= --with-libxml-dir="$(STAGING_DIR)/usr/include/libxml2"
  359. else
  360. CONFIGURE_ARGS+= --disable-libxml
  361. endif
  362. ifneq ($(CONFIG_PHP5_SYSTEMTZDATA),)
  363. CONFIGURE_ARGS+= --with-system-tzdata
  364. else
  365. CONFIGURE_ARGS+= --without-system-tzdata
  366. endif
  367. CONFIGURE_VARS+= \
  368. ac_cv_c_bigendian_php=$(if $(CONFIG_BIG_ENDIAN),yes,no) \
  369. php_cv_cc_rpath="no" \
  370. iconv_impl_name="gnu_libiconv" \
  371. ac_cv_php_xml2_config_path="$(STAGING_DIR)/host/bin/xml2-config" \
  372. define Package/php5/conffiles
  373. /etc/php.ini
  374. endef
  375. define Package/php5/install
  376. $(INSTALL_DIR) $(1)/etc
  377. $(INSTALL_DATA) ./files/php.ini $(1)/etc/
  378. endef
  379. define Package/php5-cli/install
  380. $(INSTALL_DIR) $(1)/usr/bin
  381. $(CP) $(PKG_BUILD_DIR)/sapi/cli/php $(1)/usr/bin/php-cli
  382. endef
  383. define Package/php5-cgi/install
  384. $(INSTALL_DIR) $(1)/usr/bin
  385. $(CP) $(PKG_BUILD_DIR)/sapi/cgi/php-cgi $(1)/usr/bin/php-cgi
  386. ln -sf php-cgi $(1)/usr/bin/php-fcgi
  387. endef
  388. define Package/php5-fastcgi/install
  389. $(INSTALL_DIR) $(1)/etc/config
  390. $(INSTALL_DATA) ./files/php5-fastcgi.config $(1)/etc/config/php5-fastcgi
  391. $(INSTALL_DIR) $(1)/etc/init.d
  392. $(INSTALL_BIN) ./files/php5-fastcgi.init $(1)/etc/init.d/php5-fastcgi
  393. endef
  394. define Package/php5-fpm/install
  395. $(INSTALL_DIR) $(1)/usr/bin
  396. $(INSTALL_BIN) $(PKG_BUILD_DIR)/sapi/fpm/php-fpm $(1)/usr/bin/php-fpm
  397. $(INSTALL_DIR) $(1)/etc
  398. $(INSTALL_DATA) ./files/php5-fpm.conf $(1)/etc/php5-fpm.conf
  399. $(INSTALL_DIR) $(1)/etc/config
  400. $(INSTALL_DATA) ./files/php5-fpm.config $(1)/etc/config/php5-fpm
  401. $(INSTALL_DIR) $(1)/etc/php5-fpm.d
  402. $(INSTALL_DATA) ./files/php5-fpm-www.conf $(1)/etc/php5-fpm.d/www.conf
  403. $(INSTALL_DIR) $(1)/etc/init.d
  404. $(INSTALL_BIN) ./files/php5-fpm.init $(1)/etc/init.d/php5-fpm
  405. endef
  406. define Build/Prepare
  407. $(call Build/Prepare/Default)
  408. ( cd $(PKG_BUILD_DIR); touch configure.in; ./buildconf --force )
  409. endef
  410. define Build/InstallDev
  411. mkdir -p $(PKG_BUILD_DIR)/staging/usr/bin
  412. make -C $(PKG_BUILD_DIR) install INSTALL_ROOT=$(PKG_BUILD_DIR)/staging
  413. rm -f $(PKG_BUILD_DIR)/staging/usr/bin/php
  414. $(CP) $(PKG_BUILD_DIR)/staging/* $(STAGING_DIR_HOST)
  415. sed -i -e "s#prefix='/usr'#prefix='$(STAGING_DIR_HOST)/usr'#" $(STAGING_DIR_HOST)/usr/bin/phpize
  416. sed -i -e "s#exec_prefix=\"\`eval echo /usr\`\"#exec_prefix='$(STAGING_DIR_HOST)/usr'#" $(STAGING_DIR_HOST)/usr/bin/phpize
  417. sed -i -e "s#prefix=\"/usr\"#prefix=\"$(STAGING_DIR_HOST)/usr\"#" $(STAGING_DIR_HOST)/usr/bin/php-config
  418. endef
  419. define BuildModule
  420. define Package/php5-mod-$(1)
  421. $(call Package/php5/Default)
  422. ifneq ($(3),)
  423. DEPENDS+=$(3)
  424. endif
  425. TITLE:=$(2) shared module
  426. endef
  427. define Package/php5-mod-$(1)/install
  428. $(INSTALL_DIR) $$(1)/usr/lib/php
  429. $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/php/
  430. $(INSTALL_DIR) $$(1)/etc/php5
  431. ifeq ($(4),zend)
  432. echo "zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini
  433. else
  434. echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini
  435. endif
  436. endef
  437. $$(eval $$(call BuildPackage,php5-mod-$(1)))
  438. endef
  439. $(eval $(call BuildPackage,php5))
  440. $(eval $(call BuildPackage,php5-cgi))
  441. $(eval $(call BuildPackage,php5-cli))
  442. $(eval $(call BuildPackage,php5-fastcgi))
  443. $(eval $(call BuildPackage,php5-fpm))
  444. #$(eval $(call BuildModule,NAME,TITLE[,PKG DEPENDS]))
  445. $(eval $(call BuildModule,calendar,Calendar))
  446. $(eval $(call BuildModule,ctype,Ctype))
  447. $(eval $(call BuildModule,curl,cURL,+PACKAGE_php5-mod-curl:libcurl))
  448. $(eval $(call BuildModule,dom,DOM,+@PHP5_LIBXML +PACKAGE_php5-mod-dom:libxml2))
  449. $(eval $(call BuildModule,exif,EXIF))
  450. $(eval $(call BuildModule,fileinfo,Fileinfo))
  451. $(eval $(call BuildModule,ftp,FTP,+PACKAGE_php5-mod-ftp:libopenssl))
  452. $(eval $(call BuildModule,gd,GD graphics,+PACKAGE_php5-mod-gd:libjpeg +PACKAGE_php5-mod-gd:libpng))
  453. $(eval $(call BuildModule,gettext,Gettext,+PACKAGE_php5-mod-gettext:libintl-full))
  454. $(eval $(call BuildModule,gmp,GMP,+PACKAGE_php5-mod-gmp:libgmp))
  455. $(eval $(call BuildModule,hash,Hash))
  456. $(eval $(call BuildModule,iconv,iConv,$(ICONV_DEPENDS)))
  457. $(eval $(call BuildModule,json,JSON))
  458. $(eval $(call BuildModule,ldap,LDAP,+PACKAGE_php5-mod-ldap:libopenldap +PACKAGE_php5-mod-ldap:libsasl2))
  459. $(eval $(call BuildModule,mbstring,MBString))
  460. $(eval $(call BuildModule,mcrypt,Mcrypt,+PACKAGE_php5-mod-mcrypt:libmcrypt +PACKAGE_php5-mod-mcrypt:libltdl))
  461. $(eval $(call BuildModule,mysql,MySQL,+PACKAGE_php5-mod-mysql:libmysqlclient))
  462. $(eval $(call BuildModule,mysqli,MySQL Improved Extension,+PACKAGE_php5-mod-mysqli:libmysqlclient))
  463. $(eval $(call BuildModule,opcache,OPcache,,zend))
  464. $(eval $(call BuildModule,openssl,OpenSSL,+PACKAGE_php5-mod-openssl:libopenssl))
  465. $(eval $(call BuildModule,pcntl,PCNTL))
  466. $(eval $(call BuildModule,pdo,PHP Data Objects))
  467. $(eval $(call BuildModule,pdo-mysql,PDO driver for MySQL,+php5-mod-pdo +PACKAGE_php5-mod-pdo-mysql:libmysqlclient))
  468. $(eval $(call BuildModule,pdo-pgsql,PDO driver for PostgreSQL,+php5-mod-pdo +PACKAGE_php5-mod-pdo-pgsql:libpq))
  469. $(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))
  470. $(eval $(call BuildModule,pgsql,PostgreSQL,+PACKAGE_php5-mod-pgsql:libpq))
  471. $(eval $(call BuildModule,session,Session))
  472. $(eval $(call BuildModule,shmop,Shared Memory))
  473. $(eval $(call BuildModule,simplexml,SimpleXML,+@PHP5_LIBXML +PACKAGE_php5-mod-simplexml:libxml2))
  474. $(eval $(call BuildModule,soap,SOAP,+@PHP5_LIBXML +PACKAGE_php5-mod-soap:libxml2))
  475. $(eval $(call BuildModule,sockets,Sockets))
  476. $(eval $(call BuildModule,sqlite3,SQLite3,+PACKAGE_php5-mod-sqlite3:libsqlite3))
  477. $(eval $(call BuildModule,sysvmsg,System V messages))
  478. $(eval $(call BuildModule,sysvsem,System V shared memory))
  479. $(eval $(call BuildModule,sysvshm,System V semaphore))
  480. $(eval $(call BuildModule,tokenizer,Tokenizer))
  481. $(eval $(call BuildModule,xml,XML,+PHP5_LIBXML:libxml2 +!PHP5_LIBXML:libexpat))
  482. $(eval $(call BuildModule,xmlreader,XMLReader,+@PHP5_LIBXML +PACKAGE_php5-mod-xmlreader:libxml2))
  483. $(eval $(call BuildModule,xmlwriter,XMLWriter,+@PHP5_LIBXML +PACKAGE_php5-mod-xmlwriter:libxml2))
  484. $(eval $(call BuildModule,zip,ZIP,+PACKAGE_php5-mod-zip:zlib))