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.

574 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.9
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  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:=561f37377833772ace776143c5687884
  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. MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
  49. DEPENDS:=php5
  50. endef
  51. define Package/php5/Default/description
  52. PHP is a widely-used general-purpose scripting language that is especially
  53. suited for Web development and can be embedded into HTML.
  54. endef
  55. define Package/php5/config
  56. config PHP5_FILTER
  57. bool "PHP5 Filter support"
  58. depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
  59. config PHP5_LIBXML
  60. bool "PHP5 LIBXML support"
  61. depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
  62. config PHP5_SYSTEMTZDATA
  63. bool "Use system timezone data instead of php's built-in database"
  64. depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
  65. select PACKAGE_zoneinfo-core
  66. default y
  67. help
  68. Enabling this feature automatically selects the zoneinfo-core package
  69. which contains data for UTC timezone. To use other timezones you have
  70. to install the corresponding zoneinfo-... package(s).
  71. endef
  72. define Package/php5
  73. $(call Package/php5/Default)
  74. DEPENDS:=+libpcre +zlib \
  75. +PHP5_LIBXML:libxml2
  76. endef
  77. define Package/php5/description
  78. $(call Package/php5/Default/description)
  79. This package contains only the PHP config file. You must actually choose
  80. your PHP flavour (cli, cgi or fastcgi).
  81. endef
  82. define Package/php5-cli
  83. $(call Package/php5/Default)
  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. TITLE+= (CGI & FastCGI)
  93. endef
  94. define Package/php5-cgi/description
  95. $(call Package/php5/Default/description)
  96. This package contains the CGI version of the PHP5 interpreter.
  97. endef
  98. define Package/php5-fastcgi
  99. $(call Package/php5/Default)
  100. DEPENDS+= +php5-cgi
  101. TITLE:=FastCGI startup script
  102. endef
  103. define Package/php5-fastcgi/description
  104. As FastCGI support is now a core feature the php5-fastcgi package now depends
  105. on the php5-cgi package, containing just the startup script.
  106. endef
  107. define Package/php5-fpm
  108. $(call Package/php5/Default)
  109. DEPENDS+= +php5-cgi
  110. TITLE+= (FPM)
  111. endef
  112. define Package/php5-fpm/description
  113. $(call Package/php5/Default/description)
  114. This package contains the FastCGI Process Manager of the PHP5 interpreter.
  115. endef
  116. CONFIGURE_ARGS+= \
  117. --enable-cli \
  118. --enable-cgi \
  119. --enable-fpm \
  120. --enable-shared \
  121. --disable-static \
  122. --disable-rpath \
  123. --disable-debug \
  124. --without-pear \
  125. \
  126. --with-config-file-path=/etc \
  127. --with-config-file-scan-dir=/etc/php5 \
  128. --disable-short-tags \
  129. \
  130. --with-zlib="$(STAGING_DIR)/usr" \
  131. --with-zlib-dir="$(STAGING_DIR)/usr" \
  132. --with-pcre-regex="$(STAGING_DIR)/usr" \
  133. --disable-phar
  134. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-calendar),)
  135. CONFIGURE_ARGS+= --enable-calendar=shared
  136. else
  137. CONFIGURE_ARGS+= --disable-calendar
  138. endif
  139. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-ctype),)
  140. CONFIGURE_ARGS+= --enable-ctype=shared
  141. else
  142. CONFIGURE_ARGS+= --disable-ctype
  143. endif
  144. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-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_php5-mod-fileinfo),)
  150. CONFIGURE_ARGS+= --enable-fileinfo=shared
  151. else
  152. CONFIGURE_ARGS+= --disable-fileinfo
  153. endif
  154. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-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_php5-mod-dom),)
  160. CONFIGURE_ARGS+= --enable-dom=shared
  161. else
  162. CONFIGURE_ARGS+= --disable-dom
  163. endif
  164. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-exif),)
  165. CONFIGURE_ARGS+= --enable-exif=shared
  166. else
  167. CONFIGURE_ARGS+= --disable-exif
  168. endif
  169. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-ftp),)
  170. CONFIGURE_ARGS+= --enable-ftp=shared
  171. else
  172. CONFIGURE_ARGS+= --disable-ftp
  173. endif
  174. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-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_php5-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_php5-mod-hash),)
  193. CONFIGURE_ARGS+= --enable-hash=shared
  194. else
  195. CONFIGURE_ARGS+= --disable-hash
  196. endif
  197. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-iconv),)
  198. CONFIGURE_ARGS+= --with-iconv=shared,"$(ICONV_PREFIX)"
  199. else
  200. CONFIGURE_ARGS+= --without-iconv
  201. endif
  202. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-json),)
  203. CONFIGURE_ARGS+= --enable-json=shared
  204. else
  205. CONFIGURE_ARGS+= --disable-json
  206. endif
  207. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-ldap),)
  208. CONFIGURE_ARGS+= \
  209. --with-ldap=shared,"$(STAGING_DIR)/usr" \
  210. --with-ldap-sasl="$(STAGING_DIR)/usr"
  211. else
  212. CONFIGURE_ARGS+= --without-ldap
  213. endif
  214. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mbstring),)
  215. CONFIGURE_ARGS+= --enable-mbstring=shared --enable-mbregex
  216. else
  217. CONFIGURE_ARGS+= --disable-mbstring
  218. endif
  219. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mcrypt),)
  220. CONFIGURE_ARGS+= --with-mcrypt=shared,"$(STAGING_DIR)/usr"
  221. else
  222. CONFIGURE_ARGS+= --without-mcrypt
  223. endif
  224. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mysql),)
  225. CONFIGURE_ARGS+= --with-mysql=shared,"$(STAGING_DIR)/usr"
  226. else
  227. CONFIGURE_ARGS+= --without-mysql
  228. endif
  229. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-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_php5-mod-opcache),)
  235. CONFIGURE_ARGS+= --enable-opcache=shared
  236. else
  237. CONFIGURE_ARGS+= --disable-opcache
  238. endif
  239. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-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_php5-mod-pcntl),)
  248. CONFIGURE_ARGS+= --enable-pcntl=shared
  249. else
  250. CONFIGURE_ARGS+= --disable-pcntl
  251. endif
  252. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-pdo),)
  253. CONFIGURE_ARGS+= --enable-pdo=shared
  254. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-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_php5-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_php5-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_php5-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_php5-mod-session),)
  278. CONFIGURE_ARGS+= --enable-session=shared
  279. else
  280. CONFIGURE_ARGS+= --disable-session
  281. endif
  282. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-shmop),)
  283. CONFIGURE_ARGS+= --enable-shmop=shared
  284. else
  285. CONFIGURE_ARGS+= --disable-shmop
  286. endif
  287. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-simplexml),)
  288. CONFIGURE_ARGS+= --enable-simplexml=shared
  289. else
  290. CONFIGURE_ARGS+= --disable-simplexml
  291. endif
  292. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-soap),)
  293. CONFIGURE_ARGS+= --enable-soap=shared
  294. else
  295. CONFIGURE_ARGS+= --disable-soap
  296. endif
  297. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sockets),)
  298. CONFIGURE_ARGS+= --enable-sockets=shared
  299. else
  300. CONFIGURE_ARGS+= --disable-sockets
  301. endif
  302. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sqlite3),)
  303. CONFIGURE_ARGS+= --with-sqlite3=shared,"$(STAGING_DIR)/usr"
  304. else
  305. CONFIGURE_ARGS+= --without-sqlite3
  306. endif
  307. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sysvmsg),)
  308. CONFIGURE_ARGS+= --enable-sysvmsg=shared
  309. else
  310. CONFIGURE_ARGS+= --disable-sysvmsg
  311. endif
  312. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sysvsem),)
  313. CONFIGURE_ARGS+= --enable-sysvsem=shared
  314. else
  315. CONFIGURE_ARGS+= --disable-sysvsem
  316. endif
  317. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sysvshm),)
  318. CONFIGURE_ARGS+= --enable-sysvshm=shared
  319. else
  320. CONFIGURE_ARGS+= --disable-sysvshm
  321. endif
  322. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-tokenizer),)
  323. CONFIGURE_ARGS+= --enable-tokenizer=shared
  324. else
  325. CONFIGURE_ARGS+= --disable-tokenizer
  326. endif
  327. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-xml),)
  328. CONFIGURE_ARGS+= --enable-xml=shared,"$(STAGING_DIR)/usr"
  329. ifneq ($(CONFIG_PHP5_LIBXML),)
  330. CONFIGURE_ARGS+= --with-libxml-dir="$(STAGING_DIR)/usr/include/libxml2"
  331. else
  332. CONFIGURE_ARGS+= --with-libexpat-dir="$(STAGING_DIR)/usr"
  333. endif
  334. else
  335. CONFIGURE_ARGS+= --disable-xml
  336. endif
  337. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-xmlreader),)
  338. CONFIGURE_ARGS+= --enable-xmlreader=shared,"$(STAGING_DIR)/usr"
  339. else
  340. CONFIGURE_ARGS+= --disable-xmlreader
  341. endif
  342. ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-xmlwriter),)
  343. CONFIGURE_ARGS+= --enable-xmlwriter=shared,"$(STAGING_DIR)/usr"
  344. else
  345. CONFIGURE_ARGS+= --disable-xmlwriter
  346. endif
  347. ifneq ($(CONFIG_PACKAGE_php5-mod-zip),)
  348. CONFIGURE_ARGS+= --enable-zip=shared
  349. else
  350. CONFIGURE_ARGS+= --disable-zip
  351. endif
  352. ifneq ($(SDK)$(CONFIG_PHP5_FILTER),)
  353. CONFIGURE_ARGS+= --enable-filter
  354. else
  355. CONFIGURE_ARGS+= --disable-filter
  356. endif
  357. ifneq ($(SDK)$(CONFIG_PHP5_LIBXML),)
  358. CONFIGURE_ARGS+= --enable-libxml
  359. CONFIGURE_ARGS+= --with-libxml-dir="$(STAGING_DIR)/usr/include/libxml2"
  360. else
  361. CONFIGURE_ARGS+= --disable-libxml
  362. endif
  363. ifneq ($(CONFIG_PHP5_SYSTEMTZDATA),)
  364. CONFIGURE_ARGS+= --with-system-tzdata
  365. else
  366. CONFIGURE_ARGS+= --without-system-tzdata
  367. endif
  368. CONFIGURE_VARS+= \
  369. ac_cv_c_bigendian_php=$(if $(CONFIG_BIG_ENDIAN),yes,no) \
  370. php_cv_cc_rpath="no" \
  371. iconv_impl_name="gnu_libiconv" \
  372. ac_cv_php_xml2_config_path="$(STAGING_DIR)/host/bin/xml2-config" \
  373. define Package/php5/conffiles
  374. /etc/php.ini
  375. endef
  376. define Package/php5/install
  377. $(INSTALL_DIR) $(1)/etc
  378. $(INSTALL_DATA) ./files/php.ini $(1)/etc/
  379. endef
  380. define Package/php5-cli/install
  381. $(INSTALL_DIR) $(1)/usr/bin
  382. $(CP) $(PKG_BUILD_DIR)/sapi/cli/php $(1)/usr/bin/php-cli
  383. endef
  384. define Package/php5-cgi/install
  385. $(INSTALL_DIR) $(1)/usr/bin
  386. $(CP) $(PKG_BUILD_DIR)/sapi/cgi/php-cgi $(1)/usr/bin/php-cgi
  387. ln -sf php-cgi $(1)/usr/bin/php-fcgi
  388. endef
  389. define Package/php5-fastcgi/install
  390. $(INSTALL_DIR) $(1)/etc/config
  391. $(INSTALL_DATA) ./files/php5-fastcgi.config $(1)/etc/config/php5-fastcgi
  392. $(INSTALL_DIR) $(1)/etc/init.d
  393. $(INSTALL_BIN) ./files/php5-fastcgi.init $(1)/etc/init.d/php5-fastcgi
  394. endef
  395. define Package/php5-fpm/install
  396. $(INSTALL_DIR) $(1)/usr/bin
  397. $(INSTALL_BIN) $(PKG_BUILD_DIR)/sapi/fpm/php-fpm $(1)/usr/bin/php-fpm
  398. $(INSTALL_DIR) $(1)/etc
  399. $(INSTALL_DATA) ./files/php5-fpm.conf $(1)/etc/php5-fpm.conf
  400. $(INSTALL_DIR) $(1)/etc/config
  401. $(INSTALL_DATA) ./files/php5-fpm.config $(1)/etc/config/php5-fpm
  402. $(INSTALL_DIR) $(1)/etc/php5-fpm.d
  403. $(INSTALL_DATA) ./files/php5-fpm-www.conf $(1)/etc/php5-fpm.d/www.conf
  404. $(INSTALL_DIR) $(1)/etc/init.d
  405. $(INSTALL_BIN) ./files/php5-fpm.init $(1)/etc/init.d/php5-fpm
  406. endef
  407. define Build/Prepare
  408. $(call Build/Prepare/Default)
  409. ( cd $(PKG_BUILD_DIR); touch configure.in; ./buildconf --force )
  410. endef
  411. define Build/InstallDev
  412. mkdir -p $(PKG_BUILD_DIR)/staging/usr/bin
  413. make -C $(PKG_BUILD_DIR) install INSTALL_ROOT=$(PKG_BUILD_DIR)/staging
  414. rm -f $(PKG_BUILD_DIR)/staging/usr/bin/php
  415. $(CP) $(PKG_BUILD_DIR)/staging/* $(STAGING_DIR_HOST)
  416. sed -i -e "s#prefix='/usr'#prefix='$(STAGING_DIR_HOST)/usr'#" $(STAGING_DIR_HOST)/usr/bin/phpize
  417. sed -i -e "s#exec_prefix=\"\`eval echo /usr\`\"#exec_prefix='$(STAGING_DIR_HOST)/usr'#" $(STAGING_DIR_HOST)/usr/bin/phpize
  418. sed -i -e "s#prefix=\"/usr\"#prefix=\"$(STAGING_DIR_HOST)/usr\"#" $(STAGING_DIR_HOST)/usr/bin/php-config
  419. endef
  420. define BuildModule
  421. define Package/php5-mod-$(1)
  422. $(call Package/php5/Default)
  423. ifneq ($(3),)
  424. DEPENDS+=$(3)
  425. endif
  426. TITLE:=$(2) shared module
  427. endef
  428. define Package/php5-mod-$(1)/install
  429. $(INSTALL_DIR) $$(1)/usr/lib/php
  430. $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/php/
  431. $(INSTALL_DIR) $$(1)/etc/php5
  432. ifeq ($(4),zend)
  433. echo "zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini
  434. else
  435. echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini
  436. endif
  437. endef
  438. $$(eval $$(call BuildPackage,php5-mod-$(1)))
  439. endef
  440. $(eval $(call BuildPackage,php5))
  441. $(eval $(call BuildPackage,php5-cgi))
  442. $(eval $(call BuildPackage,php5-cli))
  443. $(eval $(call BuildPackage,php5-fastcgi))
  444. $(eval $(call BuildPackage,php5-fpm))
  445. #$(eval $(call BuildModule,NAME,TITLE[,PKG DEPENDS]))
  446. $(eval $(call BuildModule,calendar,Calendar))
  447. $(eval $(call BuildModule,ctype,Ctype))
  448. $(eval $(call BuildModule,curl,cURL,+PACKAGE_php5-mod-curl:libcurl))
  449. $(eval $(call BuildModule,dom,DOM,+@PHP5_LIBXML +PACKAGE_php5-mod-dom:libxml2))
  450. $(eval $(call BuildModule,exif,EXIF))
  451. $(eval $(call BuildModule,fileinfo,Fileinfo))
  452. $(eval $(call BuildModule,ftp,FTP,+PACKAGE_php5-mod-ftp:libopenssl))
  453. $(eval $(call BuildModule,gd,GD graphics,+PACKAGE_php5-mod-gd:libjpeg +PACKAGE_php5-mod-gd:libpng))
  454. $(eval $(call BuildModule,gettext,Gettext,+PACKAGE_php5-mod-gettext:libintl-full))
  455. $(eval $(call BuildModule,gmp,GMP,+PACKAGE_php5-mod-gmp:libgmp))
  456. $(eval $(call BuildModule,hash,Hash))
  457. $(eval $(call BuildModule,iconv,iConv,$(ICONV_DEPENDS)))
  458. $(eval $(call BuildModule,json,JSON))
  459. $(eval $(call BuildModule,ldap,LDAP,+PACKAGE_php5-mod-ldap:libopenldap +PACKAGE_php5-mod-ldap:libsasl2))
  460. $(eval $(call BuildModule,mbstring,MBString))
  461. $(eval $(call BuildModule,mcrypt,Mcrypt,+PACKAGE_php5-mod-mcrypt:libmcrypt +PACKAGE_php5-mod-mcrypt:libltdl))
  462. $(eval $(call BuildModule,mysql,MySQL,+PACKAGE_php5-mod-mysql:libmysqlclient))
  463. $(eval $(call BuildModule,mysqli,MySQL Improved Extension,+PACKAGE_php5-mod-mysqli:libmysqlclient))
  464. $(eval $(call BuildModule,opcache,OPcache,,zend))
  465. $(eval $(call BuildModule,openssl,OpenSSL,+PACKAGE_php5-mod-openssl:libopenssl))
  466. $(eval $(call BuildModule,pcntl,PCNTL))
  467. $(eval $(call BuildModule,pdo,PHP Data Objects))
  468. $(eval $(call BuildModule,pdo-mysql,PDO driver for MySQL,+php5-mod-pdo +PACKAGE_php5-mod-pdo-mysql:libmysqlclient))
  469. $(eval $(call BuildModule,pdo-pgsql,PDO driver for PostgreSQL,+php5-mod-pdo +PACKAGE_php5-mod-pdo-pgsql:libpq))
  470. $(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))
  471. $(eval $(call BuildModule,pgsql,PostgreSQL,+PACKAGE_php5-mod-pgsql:libpq))
  472. $(eval $(call BuildModule,session,Session))
  473. $(eval $(call BuildModule,shmop,Shared Memory))
  474. $(eval $(call BuildModule,simplexml,SimpleXML,+@PHP5_LIBXML +PACKAGE_php5-mod-simplexml:libxml2))
  475. $(eval $(call BuildModule,soap,SOAP,+@PHP5_LIBXML +PACKAGE_php5-mod-soap:libxml2))
  476. $(eval $(call BuildModule,sockets,Sockets))
  477. $(eval $(call BuildModule,sqlite3,SQLite3,+PACKAGE_php5-mod-sqlite3:libsqlite3))
  478. $(eval $(call BuildModule,sysvmsg,System V messages))
  479. $(eval $(call BuildModule,sysvsem,System V shared memory))
  480. $(eval $(call BuildModule,sysvshm,System V semaphore))
  481. $(eval $(call BuildModule,tokenizer,Tokenizer))
  482. $(eval $(call BuildModule,xml,XML,+PHP5_LIBXML:libxml2 +!PHP5_LIBXML:libexpat))
  483. $(eval $(call BuildModule,xmlreader,XMLReader,+@PHP5_LIBXML +PACKAGE_php5-mod-xmlreader:libxml2))
  484. $(eval $(call BuildModule,xmlwriter,XMLWriter,+@PHP5_LIBXML +PACKAGE_php5-mod-xmlwriter:libxml2))
  485. $(eval $(call BuildModule,zip,ZIP,+PACKAGE_php5-mod-zip:zlib))