|
Lines 40-51
Link Here
|
| 40 |
.if ${PHP_MODNAME} == "dba" |
40 |
.if ${PHP_MODNAME} == "dba" |
| 41 |
CONFIGURE_ARGS+=--enable-dba |
41 |
CONFIGURE_ARGS+=--enable-dba |
| 42 |
|
42 |
|
| 43 |
OPTIONS= CDB "cdb database support" on \ |
43 |
OPTIONS_DEFINE= CDB DB4 GDBM QDBM INIFILE FLATFILE |
| 44 |
DB4 "Berkeley DB4 support" off \ |
44 |
OPTIONS_DEFAULT=CDB INIFILE FLATFILE |
| 45 |
GDBM "GDBM database support" off \ |
45 |
|
| 46 |
QDBM "QDBM database support" off \ |
46 |
CDB_DESC= cdb database support |
| 47 |
INIFILE "INI file support" on \ |
47 |
DB4_DESC= Berkeley DB4 support |
| 48 |
FLATFILE "flatfile support" on |
48 |
GDBM_DESC= GDBM database support |
|
|
49 |
QDBM_DESC= QDBM database support |
| 50 |
INIFILE_DESC= INI file support |
| 51 |
FLATFILE_DESC= flatfile support |
| 49 |
|
52 |
|
| 50 |
PHP_HEADER_DIRS= libcdb libflatfile libinifile |
53 |
PHP_HEADER_DIRS= libcdb libflatfile libinifile |
| 51 |
.endif |
54 |
.endif |
|
Lines 98-106
Link Here
|
| 98 |
CONFIGURE_ARGS+=--with-xpm-dir=${LOCALBASE} |
101 |
CONFIGURE_ARGS+=--with-xpm-dir=${LOCALBASE} |
| 99 |
. endif |
102 |
. endif |
| 100 |
|
103 |
|
| 101 |
OPTIONS= T1LIB "Include T1lib support" on \ |
104 |
OPTIONS_DEFINE= T1LIB TRUETYPE JIS |
| 102 |
TRUETYPE "Enable TrueType string function" on \ |
105 |
OPTIONS_DEFAULT=T1LIB TRUETYPE |
| 103 |
JIS "Enable JIS-mapped Japanese font support" off |
106 |
|
|
|
107 |
T1LIB_DESC= Include T1lib support |
| 108 |
TRUETYPE_DESC= Enable TrueType string function |
| 109 |
JIS_DESC= Enable JIS-mapped Japanese font support |
| 104 |
|
110 |
|
| 105 |
PHP_HEADER_DIRS=libgd |
111 |
PHP_HEADER_DIRS=libgd |
| 106 |
.endif |
112 |
.endif |
|
Lines 166-172
Link Here
|
| 166 |
CONFIGURE_ARGS+=--enable-mbstring \ |
172 |
CONFIGURE_ARGS+=--enable-mbstring \ |
| 167 |
--with-pcre-dir=${LOCALBASE} |
173 |
--with-pcre-dir=${LOCALBASE} |
| 168 |
|
174 |
|
| 169 |
OPTIONS= REGEX "Enable multibyte regex support" on |
175 |
OPTIONS_DEFINE= REGEX |
|
|
176 |
OPTIONS_DEFAULT=REGEX |
| 177 |
|
| 178 |
REGEX_DESC= Enable multibyte regex support |
| 170 |
|
179 |
|
| 171 |
PHP_HEADER_DIRS=libmbfl libmbfl/filters libmbfl/mbfl libmbfl/nls |
180 |
PHP_HEADER_DIRS=libmbfl libmbfl/filters libmbfl/mbfl libmbfl/nls |
| 172 |
.endif |
181 |
.endif |
|
Lines 186-202
Link Here
|
| 186 |
.endif |
195 |
.endif |
| 187 |
|
196 |
|
| 188 |
.if ${PHP_MODNAME} == "mysql" |
197 |
.if ${PHP_MODNAME} == "mysql" |
| 189 |
OPTIONS= MYSQLND "Use MySQL Native Driver" on |
198 |
OPTIONS_DEFINE= MYSQLND |
|
|
199 |
OPTIONS_DEFAULT=MYSQLND |
| 200 |
|
| 201 |
MYSQLND_DESC= Use MySQL Native Driver" |
| 190 |
.endif |
202 |
.endif |
| 191 |
|
203 |
|
| 192 |
.if ${PHP_MODNAME} == "mysqli" |
204 |
.if ${PHP_MODNAME} == "mysqli" |
| 193 |
OPTIONS= MYSQLND "Use MySQL Native Driver" on |
205 |
OPTIONS_DEFINE= MYSQLND |
|
|
206 |
OPTIONS_DEFAULT=MYSQLND |
| 207 |
|
| 208 |
MYSQLND_DESC= Use MySQL Native Driver" |
| 194 |
.endif |
209 |
.endif |
| 195 |
|
210 |
|
| 196 |
.if ${PHP_MODNAME} == "odbc" |
211 |
.if ${PHP_MODNAME} == "odbc" |
| 197 |
CONFIGURE_ARGS+=--enable-odbc |
212 |
CONFIGURE_ARGS+=--enable-odbc |
| 198 |
|
213 |
|
| 199 |
OPTIONS= IODBC "Use the iODBC driver instead of unixODBC" off |
214 |
OPTIONS_DEFINE= IODBC |
|
|
215 |
|
| 216 |
IODBC_DESC= Use the iODBC driver instead of unixODBC |
| 200 |
.endif |
217 |
.endif |
| 201 |
|
218 |
|
| 202 |
.if ${PHP_MODNAME} == "openssl" |
219 |
.if ${PHP_MODNAME} == "openssl" |
|
Lines 220-226
Link Here
|
| 220 |
USE_PHP= pdo |
237 |
USE_PHP= pdo |
| 221 |
USE_PHP_BUILD= yes |
238 |
USE_PHP_BUILD= yes |
| 222 |
|
239 |
|
| 223 |
OPTIONS= MSSQL "Enable Microsoft SQL Server support" off |
240 |
OPTIONS_DEFINE= MSSQL |
|
|
241 |
|
| 242 |
MSSQL_DESC= Enable Microsoft SQL Server support |
| 224 |
.endif |
243 |
.endif |
| 225 |
|
244 |
|
| 226 |
.if ${PHP_MODNAME} == "pdo_firebird" |
245 |
.if ${PHP_MODNAME} == "pdo_firebird" |
|
Lines 233-246
Link Here
|
| 233 |
.endif |
252 |
.endif |
| 234 |
|
253 |
|
| 235 |
.if ${PHP_MODNAME} == "pdo_mysql" |
254 |
.if ${PHP_MODNAME} == "pdo_mysql" |
| 236 |
OPTIONS= MYSQLND "Use MySQL Native Driver" on |
255 |
OPTIONS_DEFINE= MYSQLND |
|
|
256 |
OPTIONS_DEFAULT=MYSQLND |
| 257 |
|
| 258 |
MYSQLND_DESC= Use MySQL Native Driver" |
| 237 |
|
259 |
|
| 238 |
USE_PHP= pdo |
260 |
USE_PHP= pdo |
| 239 |
USE_PHP_BUILD= yes |
261 |
USE_PHP_BUILD= yes |
| 240 |
.endif |
262 |
.endif |
| 241 |
|
263 |
|
| 242 |
.if ${PHP_MODNAME} == "pdo_odbc" |
264 |
.if ${PHP_MODNAME} == "pdo_odbc" |
| 243 |
OPTIONS= IODBC "Use the iODBC driver instead of unixODBC" off |
265 |
OPTIONS_DEFINE= IODBC |
|
|
266 |
|
| 267 |
IODBC_DESC= Use the iODBC driver instead of unixODBC |
| 244 |
|
268 |
|
| 245 |
USE_PHP= pdo |
269 |
USE_PHP= pdo |
| 246 |
USE_PHP_BUILD= yes |
270 |
USE_PHP_BUILD= yes |
|
Lines 347-353
Link Here
|
| 347 |
USE_PHP_BUILD= yes |
371 |
USE_PHP_BUILD= yes |
| 348 |
PHP_HEADER_DIRS=libsqlite/src |
372 |
PHP_HEADER_DIRS=libsqlite/src |
| 349 |
|
373 |
|
| 350 |
OPTIONS= UTF8 "Enable UTF-8 support" off |
374 |
OPTIONS_DEFINE= UTF8 |
|
|
375 |
|
| 376 |
UTF8_DESC= Enable UTF-8 support |
| 351 |
.endif |
377 |
.endif |
| 352 |
|
378 |
|
| 353 |
.if ${PHP_MODNAME} == "sqlite3" |
379 |
.if ${PHP_MODNAME} == "sqlite3" |
|
Lines 452-509
Link Here
|
| 452 |
.include <bsd.port.pre.mk> |
478 |
.include <bsd.port.pre.mk> |
| 453 |
|
479 |
|
| 454 |
.if ${PHP_MODNAME} == "dba" |
480 |
.if ${PHP_MODNAME} == "dba" |
| 455 |
. if defined(WITHOUT_CDB) |
481 |
. if empty(PORT_OPTIONS:MCDB) |
| 456 |
CONFIGURE_ARGS+=--without-cdb |
482 |
CONFIGURE_ARGS+=--without-cdb |
| 457 |
. endif |
483 |
. endif |
| 458 |
. if defined(WITH_DB4) |
484 |
. if ${PORT_OPTIONS:MDB4} |
| 459 |
CONFIGURE_ARGS+=--with-db4=${LOCALBASE} |
485 |
CONFIGURE_ARGS+=--with-db4=${LOCALBASE} |
| 460 |
|
486 |
|
| 461 |
USE_BDB= 40+ |
487 |
USE_BDB= 40+ |
| 462 |
WITH_BDB_HIGHEST= yes |
488 |
WITH_BDB_HIGHEST= yes |
| 463 |
. endif |
489 |
. endif |
| 464 |
. if defined(WITH_GDBM) |
490 |
. if ${PORT_OPTIONS:MGDBM} |
| 465 |
LIB_DEPENDS+= gdbm.4:${PORTSDIR}/databases/gdbm |
491 |
LIB_DEPENDS+= gdbm.4:${PORTSDIR}/databases/gdbm |
| 466 |
|
492 |
|
| 467 |
CONFIGURE_ARGS+=--with-gdbm=${LOCALBASE} |
493 |
CONFIGURE_ARGS+=--with-gdbm=${LOCALBASE} |
| 468 |
. endif |
494 |
. endif |
| 469 |
. if defined(WITH_QDBM) |
495 |
. if ${PORT_OPTIONS:MQDBM} |
| 470 |
LIB_DEPENDS+= qdbm.14:${PORTSDIR}/databases/qdbm |
496 |
LIB_DEPENDS+= qdbm.14:${PORTSDIR}/databases/qdbm |
| 471 |
|
497 |
|
| 472 |
CONFIGURE_ARGS+=--with-qdbm=${LOCALBASE} |
498 |
CONFIGURE_ARGS+=--with-qdbm=${LOCALBASE} |
| 473 |
. endif |
499 |
. endif |
| 474 |
. if defined(WITHOUT_INIFILE) |
500 |
. if empty(PORT_OPTIONS:MINIFILE) |
| 475 |
CONFIGURE_ARGS+=--disable-inifile |
501 |
CONFIGURE_ARGS+=--disable-inifile |
| 476 |
. endif |
502 |
. endif |
| 477 |
. if defined(WITHOUT_FLATFILE) |
503 |
. if empty(PORT_OPTIONS:MFLATFILE) |
| 478 |
CONFIGURE_ARGS+=--disable-flatfile |
504 |
CONFIGURE_ARGS+=--disable-flatfile |
| 479 |
. endif |
505 |
. endif |
| 480 |
.endif |
506 |
.endif |
| 481 |
|
507 |
|
| 482 |
.if ${PHP_MODNAME} == "gd" |
508 |
.if ${PHP_MODNAME} == "gd" |
| 483 |
. if !defined(WITHOUT_T1LIB) |
509 |
. if ${PORT_OPTIONS:MT1LIB} |
| 484 |
LIB_DEPENDS+= t1.5:${PORTSDIR}/devel/t1lib |
510 |
LIB_DEPENDS+= t1.5:${PORTSDIR}/devel/t1lib |
| 485 |
|
511 |
|
| 486 |
CONFIGURE_ARGS+=--with-t1lib=${LOCALBASE} |
512 |
CONFIGURE_ARGS+=--with-t1lib=${LOCALBASE} |
| 487 |
. endif |
513 |
. endif |
| 488 |
. if !defined(WITHOUT_TRUETYPE) |
514 |
. if ${PORT_OPTIONS:MTRUETYPE} |
| 489 |
CONFIGURE_ARGS+=--enable-gd-native-ttf |
515 |
CONFIGURE_ARGS+=--enable-gd-native-ttf |
| 490 |
. endif |
516 |
. endif |
| 491 |
. if defined(WITH_JIS) |
517 |
. if ${PORT_OPTIONS:MJIS} |
| 492 |
CONFIGURE_ARGS+=--enable-gd-jis-conv |
518 |
CONFIGURE_ARGS+=--enable-gd-jis-conv |
| 493 |
. endif |
519 |
. endif |
| 494 |
.endif |
520 |
.endif |
| 495 |
|
521 |
|
| 496 |
.if ${PHP_MODNAME} == "mbstring" |
522 |
.if ${PHP_MODNAME} == "mbstring" |
| 497 |
. if defined(WITHOUT_REGEX) |
523 |
. if ${PORT_OPTIONS:MREGEX} |
| 498 |
CONFIGURE_ARGS+=--disable-mbregex |
|
|
| 499 |
. else |
| 500 |
LIB_DEPENDS+= onig.1:${PORTSDIR}/devel/oniguruma4 |
524 |
LIB_DEPENDS+= onig.1:${PORTSDIR}/devel/oniguruma4 |
| 501 |
CONFIGURE_ARGS+=--with-onig=${LOCALBASE} |
525 |
CONFIGURE_ARGS+=--with-onig=${LOCALBASE} |
|
|
526 |
. else |
| 527 |
CONFIGURE_ARGS+=--disable-mbregex |
| 502 |
. endif |
528 |
. endif |
| 503 |
.endif |
529 |
.endif |
| 504 |
|
530 |
|
| 505 |
.if ${PHP_MODNAME} == "mysql" |
531 |
.if ${PHP_MODNAME} == "mysql" |
| 506 |
. if defined(WITH_MYSQLND) |
532 |
. if ${PORT_OPTIONS:MMYSQLND} |
| 507 |
CONFIGURE_ARGS+=--with-mysql=mysqlnd |
533 |
CONFIGURE_ARGS+=--with-mysql=mysqlnd |
| 508 |
. else |
534 |
. else |
| 509 |
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} \ |
535 |
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} \ |
|
Lines 514-520
Link Here
|
| 514 |
.endif |
540 |
.endif |
| 515 |
|
541 |
|
| 516 |
.if ${PHP_MODNAME} == "mysqli" |
542 |
.if ${PHP_MODNAME} == "mysqli" |
| 517 |
. if defined(WITH_MYSQLND) |
543 |
. if ${PORT_OPTIONS:MMYSQLND} |
| 518 |
CONFIGURE_ARGS+=--with-mysqli=mysqlnd |
544 |
CONFIGURE_ARGS+=--with-mysqli=mysqlnd |
| 519 |
. else |
545 |
. else |
| 520 |
CONFIGURE_ARGS+=--with-mysqli=${LOCALBASE}/bin/mysql_config |
546 |
CONFIGURE_ARGS+=--with-mysqli=${LOCALBASE}/bin/mysql_config |
|
Lines 529-535
Link Here
|
| 529 |
.endif |
555 |
.endif |
| 530 |
|
556 |
|
| 531 |
.if ${PHP_MODNAME} == "odbc" |
557 |
.if ${PHP_MODNAME} == "odbc" |
| 532 |
.if defined(WITH_IODBC) |
558 |
.if ${PORT_OPTIONS:MIODBC} |
| 533 |
LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc |
559 |
LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc |
| 534 |
|
560 |
|
| 535 |
CONFIGURE_ARGS+=--with-iodbc=${LOCALBASE} |
561 |
CONFIGURE_ARGS+=--with-iodbc=${LOCALBASE} |
|
Lines 541-547
Link Here
|
| 541 |
.endif |
567 |
.endif |
| 542 |
|
568 |
|
| 543 |
.if ${PHP_MODNAME} == "pdo_dblib" |
569 |
.if ${PHP_MODNAME} == "pdo_dblib" |
| 544 |
.if defined(WITH_MSSQL) |
570 |
.if ${PORT_OPTIONS:MMSSQL} |
| 545 |
LIB_DEPENDS+= sybdb.5:${PORTSDIR}/databases/freetds-msdblib |
571 |
LIB_DEPENDS+= sybdb.5:${PORTSDIR}/databases/freetds-msdblib |
| 546 |
.else |
572 |
.else |
| 547 |
LIB_DEPENDS+= ct.4:${PORTSDIR}/databases/freetds |
573 |
LIB_DEPENDS+= ct.4:${PORTSDIR}/databases/freetds |
|
Lines 549-555
Link Here
|
| 549 |
.endif |
575 |
.endif |
| 550 |
|
576 |
|
| 551 |
.if ${PHP_MODNAME} == "pdo_odbc" |
577 |
.if ${PHP_MODNAME} == "pdo_odbc" |
| 552 |
.if defined(WITH_IODBC) |
578 |
.if ${PORT_OPTIONS:MIODBC} |
| 553 |
LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc |
579 |
LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc |
| 554 |
|
580 |
|
| 555 |
CONFIGURE_ARGS+=--with-pdo-odbc=iODBC,${LOCALBASE} |
581 |
CONFIGURE_ARGS+=--with-pdo-odbc=iODBC,${LOCALBASE} |
|
Lines 561-567
Link Here
|
| 561 |
.endif |
587 |
.endif |
| 562 |
|
588 |
|
| 563 |
.if ${PHP_MODNAME} == "pdo_mysql" |
589 |
.if ${PHP_MODNAME} == "pdo_mysql" |
| 564 |
. if defined(WITH_MYSQLND) |
590 |
. if ${PORT_OPTIONS:MMYSQLND} |
| 565 |
CONFIGURE_ARGS+=--with-pdo-mysql=mysqlnd |
591 |
CONFIGURE_ARGS+=--with-pdo-mysql=mysqlnd |
| 566 |
|
592 |
|
| 567 |
USE_PHP+= mysql |
593 |
USE_PHP+= mysql |
|
Lines 574-580
Link Here
|
| 574 |
.endif |
600 |
.endif |
| 575 |
|
601 |
|
| 576 |
.if ${PHP_MODNAME} == "sqlite" |
602 |
.if ${PHP_MODNAME} == "sqlite" |
| 577 |
. if defined(WITH_UTF8) |
603 |
. if ${PORT_OPTIONS:MUTF8} |
| 578 |
CONFIGURE_ARGS+=--enable-sqlite-utf8 |
604 |
CONFIGURE_ARGS+=--enable-sqlite-utf8 |
| 579 |
. endif |
605 |
. endif |
| 580 |
.endif |
606 |
.endif |