|
Removed
Link Here
|
| 1 |
COMMENT= The ${PHP_MODNAME} shared extension for php |
| 2 |
|
| 3 |
USES+= php:ext,noflavors |
| 4 |
PHP_MODNAME= ${PKGNAMESUFFIX:S/-//} |
| 5 |
PHP_VER= 73 |
| 6 |
IGNORE_WITH_PHP= 72 74 |
| 7 |
|
| 8 |
EXTSUBDIR= ${DISTNAME}/ext/${PHP_MODNAME} |
| 9 |
WRKSRC= ${WRKDIR}/${EXTSUBDIR} |
| 10 |
PATCHDIR= ${.CURDIR}/files |
| 11 |
PLIST= ${NONEXISTENT} |
| 12 |
|
| 13 |
EXTRACT_AFTER_ARGS?= ${EXTSUBDIR} |
| 14 |
|
| 15 |
.if ${PHP_MODNAME} == "bcmath" |
| 16 |
CONFIGURE_ARGS+=--enable-bcmath |
| 17 |
|
| 18 |
PHP_HEADER_DIRS=libbcmath/src |
| 19 |
.endif |
| 20 |
|
| 21 |
.if ${PHP_MODNAME} == "bz2" |
| 22 |
CONFIGURE_ARGS+=--with-bz2=/usr |
| 23 |
.endif |
| 24 |
|
| 25 |
.if ${PHP_MODNAME} == "calendar" |
| 26 |
CONFIGURE_ARGS+=--enable-calendar |
| 27 |
.endif |
| 28 |
|
| 29 |
.if ${PHP_MODNAME} == "ctype" |
| 30 |
CONFIGURE_ARGS+=--enable-ctype |
| 31 |
.endif |
| 32 |
|
| 33 |
.if ${PHP_MODNAME} == "curl" |
| 34 |
LIB_DEPENDS+= libcurl.so:ftp/curl |
| 35 |
|
| 36 |
CONFIGURE_ARGS+=--with-curl=${LOCALBASE} |
| 37 |
.endif |
| 38 |
|
| 39 |
.if ${PHP_MODNAME} == "dba" |
| 40 |
CONFIGURE_ARGS+=--enable-dba |
| 41 |
|
| 42 |
OPTIONS_DEFINE= CDB DB4 GDBM QDBM TOKYO INIFILE FLATFILE LMDB |
| 43 |
OPTIONS_DEFAULT=CDB INIFILE FLATFILE |
| 44 |
|
| 45 |
CDB_DESC= cdb database support |
| 46 |
DB4_DESC= Berkeley DB4 support |
| 47 |
GDBM_DESC= GDBM database support |
| 48 |
QDBM_DESC= QDBM database support |
| 49 |
TOKYO_DESC= Tokyo Cabinet database support |
| 50 |
INIFILE_DESC= INI file support |
| 51 |
FLATFILE_DESC= flatfile support |
| 52 |
LMDB_DESC= LMDB database support |
| 53 |
|
| 54 |
PHP_HEADER_DIRS= libcdb libflatfile libinifile |
| 55 |
.endif |
| 56 |
|
| 57 |
.if ${PHP_MODNAME} == "dom" |
| 58 |
CONFIGURE_ARGS+=--enable-dom \ |
| 59 |
--with-libxml-dir=${LOCALBASE} |
| 60 |
|
| 61 |
USE_GNOME= libxml2 |
| 62 |
.endif |
| 63 |
|
| 64 |
.if ${PHP_MODNAME} == "enchant" |
| 65 |
LIB_DEPENDS+= libenchant.so:textproc/enchant |
| 66 |
CONFIGURE_ARGS+=--with-enchant=${LOCALBASE} |
| 67 |
.endif |
| 68 |
|
| 69 |
.if ${PHP_MODNAME} == "exif" |
| 70 |
CONFIGURE_ARGS+=--enable-exif |
| 71 |
.endif |
| 72 |
|
| 73 |
.if ${PHP_MODNAME} == "fileinfo" |
| 74 |
CONFIGURE_ARGS+=--enable-fileinfo \ |
| 75 |
--with-pcre-dir=${LOCALBASE} |
| 76 |
|
| 77 |
PHP_HEADER_DIRS= libmagic |
| 78 |
.endif |
| 79 |
|
| 80 |
.if ${PHP_MODNAME} == "filter" |
| 81 |
CONFIGURE_ARGS+=--enable-filter \ |
| 82 |
--with-pcre-dir=${LOCALBASE} |
| 83 |
.endif |
| 84 |
|
| 85 |
.if ${PHP_MODNAME} == "ftp" |
| 86 |
CONFIGURE_ARGS+=--enable-ftp \ |
| 87 |
--with-openssl-dir=${OPENSSLBASE} |
| 88 |
|
| 89 |
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl |
| 90 |
USES+= ssl |
| 91 |
.endif |
| 92 |
|
| 93 |
.if ${PHP_MODNAME} == "gd" |
| 94 |
LIB_DEPENDS= libfreetype.so:print/freetype2 \ |
| 95 |
libpng.so:graphics/png |
| 96 |
USES+= jpeg pkgconfig |
| 97 |
|
| 98 |
CONFIGURE_ARGS+=--with-gd=${LOCALBASE} \ |
| 99 |
--with-freetype-dir=${LOCALBASE} \ |
| 100 |
--with-jpeg-dir=${LOCALBASE} \ |
| 101 |
--with-png-dir=${LOCALBASE} \ |
| 102 |
--with-zlib-dir=/usr |
| 103 |
|
| 104 |
EXTRACT_AFTER_ARGS=--no-same-owner --no-same-permissions --exclude libgd \ |
| 105 |
php-${DISTVERSION}/ext/gd |
| 106 |
|
| 107 |
OPTIONS_DEFINE=TRUETYPE JIS WEBP X11 |
| 108 |
OPTIONS_DEFAULT=TRUETYPE |
| 109 |
|
| 110 |
TRUETYPE_DESC= Enable TrueType string function |
| 111 |
JIS_DESC= Enable JIS-mapped Japanese font support |
| 112 |
WEBP_DESC= Enable WebP image format support |
| 113 |
X11_DESC= Enable XPM support |
| 114 |
|
| 115 |
.endif |
| 116 |
|
| 117 |
.if ${PHP_MODNAME} == "gettext" |
| 118 |
CONFIGURE_ARGS+=--with-gettext=${LOCALBASE} |
| 119 |
|
| 120 |
USES+= gettext |
| 121 |
.endif |
| 122 |
|
| 123 |
.if ${PHP_MODNAME} == "gmp" |
| 124 |
LIB_DEPENDS+= libgmp.so:math/gmp |
| 125 |
|
| 126 |
CONFIGURE_ARGS+=--with-gmp=${LOCALBASE} |
| 127 |
.endif |
| 128 |
|
| 129 |
.if ${PHP_MODNAME} == "hash" |
| 130 |
CONFIGURE_ARGS+=--enable-hash \ |
| 131 |
--with-mhash |
| 132 |
CFLAGS_mips64= -DHAVE_SLOW_HASH3 |
| 133 |
CFLAGS_powerpc64= -DHAVE_SLOW_HASH3 |
| 134 |
CFLAGS_powerpc= -DHAVE_SLOW_HASH3 |
| 135 |
CFLAGS_powerpcspe= -DHAVE_SLOW_HASH3 |
| 136 |
CFLAGS_sparc64= -DHAVE_SLOW_HASH3 |
| 137 |
.endif |
| 138 |
|
| 139 |
.if ${PHP_MODNAME} == "iconv" |
| 140 |
CONFIGURE_ARGS+=--with-iconv=${LOCALBASE} |
| 141 |
|
| 142 |
USES+= iconv:translit |
| 143 |
.endif |
| 144 |
|
| 145 |
.if ${PHP_MODNAME} == "imap" |
| 146 |
PHP_MOD_PRIO= 30 |
| 147 |
OPTIONS_RADIO= CLIENT |
| 148 |
OPTIONS_RADIO_CLIENT= CCLIENT PANDA |
| 149 |
OPTIONS_DEFAULT=PANDA |
| 150 |
CCLIENT_DESC= Uses the original but unmaintained cclient |
| 151 |
PANDA_DESC= Uses the forked panda-cclient instead of the original cclient |
| 152 |
|
| 153 |
CONFIGURE_ARGS+=--with-imap=${LOCALBASE} \ |
| 154 |
--with-pcre-dir=${LOCALBASE} \ |
| 155 |
--with-imap-ssl=${OPENSSLBASE} |
| 156 |
|
| 157 |
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl |
| 158 |
USES+= ssl |
| 159 |
.endif |
| 160 |
|
| 161 |
.if ${PHP_MODNAME} == "interbase" |
| 162 |
CONFIGURE_ARGS+=--with-interbase=${LOCALBASE} |
| 163 |
|
| 164 |
USES+= firebird |
| 165 |
.endif |
| 166 |
|
| 167 |
.if ${PHP_MODNAME} == "intl" |
| 168 |
CONFIGURE_ARGS+=--with-intl=${LOCALBASE} |
| 169 |
LIB_DEPENDS= libicui18n.so:devel/icu |
| 170 |
.endif |
| 171 |
|
| 172 |
.if ${PHP_MODNAME} == "json" |
| 173 |
CONFIGURE_ARGS+=--enable-json |
| 174 |
.endif |
| 175 |
|
| 176 |
.if ${PHP_MODNAME} == "ldap" |
| 177 |
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE} --with-ldap-sasl=${LOCALBASE} |
| 178 |
|
| 179 |
USE_OPENLDAP= yes |
| 180 |
.endif |
| 181 |
|
| 182 |
.if ${PHP_MODNAME} == "mbstring" |
| 183 |
|
| 184 |
CONFIGURE_ARGS+=--enable-mbstring \ |
| 185 |
--with-pcre-dir=${LOCALBASE} |
| 186 |
|
| 187 |
OPTIONS_DEFINE= REGEX |
| 188 |
OPTIONS_DEFAULT=REGEX |
| 189 |
|
| 190 |
REGEX_DESC= Enable multibyte regex support |
| 191 |
|
| 192 |
PHP_HEADER_DIRS=libmbfl libmbfl/filters libmbfl/mbfl libmbfl/nls |
| 193 |
.endif |
| 194 |
|
| 195 |
.if ${PHP_MODNAME} == "mysqli" |
| 196 |
OPTIONS_DEFINE= MYSQLND |
| 197 |
OPTIONS_DEFAULT=MYSQLND |
| 198 |
|
| 199 |
MYSQLND_DESC= Use MySQL Native Driver |
| 200 |
.endif |
| 201 |
|
| 202 |
.if ${PHP_MODNAME} == "odbc" |
| 203 |
LIB_DEPENDS+= libodbc.so:databases/unixODBC |
| 204 |
|
| 205 |
CONFIGURE_ARGS+=--enable-odbc \ |
| 206 |
--with-unixODBC=${LOCALBASE} |
| 207 |
.endif |
| 208 |
|
| 209 |
.if ${PHP_MODNAME} == "openssl" |
| 210 |
CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE} |
| 211 |
|
| 212 |
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl |
| 213 |
USES+= ssl |
| 214 |
.endif |
| 215 |
|
| 216 |
.if ${PHP_MODNAME} == "opcache" |
| 217 |
# This is needed by Zend extensions, keep before everything. |
| 218 |
PHP_MOD_PRIO= 10 |
| 219 |
CONFIGURE_ARGS+=--enable-opcache |
| 220 |
USES+= localbase |
| 221 |
.endif |
| 222 |
|
| 223 |
.if ${PHP_MODNAME} == "pcntl" |
| 224 |
CONFIGURE_ARGS+=--enable-pcntl |
| 225 |
.endif |
| 226 |
|
| 227 |
.if ${PHP_MODNAME} == "pdo" |
| 228 |
CONFIGURE_ARGS+=--enable-pdo |
| 229 |
.endif |
| 230 |
|
| 231 |
.if ${PHP_MODNAME} == "pdo_dblib" |
| 232 |
CONFIGURE_ARGS+=--with-pdo-dblib=${LOCALBASE} |
| 233 |
|
| 234 |
USE_PHP= pdo:build |
| 235 |
|
| 236 |
OPTIONS_DEFINE= MSSQL |
| 237 |
|
| 238 |
MSSQL_DESC= Enable Microsoft SQL Server support |
| 239 |
.endif |
| 240 |
|
| 241 |
.if ${PHP_MODNAME} == "pdo_firebird" |
| 242 |
CONFIGURE_ARGS+=--with-pdo-firebird=${LOCALBASE} |
| 243 |
|
| 244 |
USES+= firebird |
| 245 |
USE_PHP= pdo:build |
| 246 |
.endif |
| 247 |
|
| 248 |
.if ${PHP_MODNAME} == "pdo_odbc" |
| 249 |
LIB_DEPENDS+= libodbc.so:databases/unixODBC |
| 250 |
CONFIGURE_ARGS+=--with-pdo-odbc=unixODBC,${LOCALBASE} |
| 251 |
|
| 252 |
USE_PHP= pdo:build |
| 253 |
.endif |
| 254 |
|
| 255 |
.if ${PHP_MODNAME} == "pdo_mysql" |
| 256 |
OPTIONS_DEFINE= MYSQLND |
| 257 |
OPTIONS_DEFAULT=MYSQLND |
| 258 |
|
| 259 |
MYSQLND_DESC= Use MySQL Native Driver |
| 260 |
|
| 261 |
USE_PHP= pdo:build |
| 262 |
.endif |
| 263 |
|
| 264 |
.if ${PHP_MODNAME} == "pdo_pgsql" |
| 265 |
USES+= pgsql |
| 266 |
|
| 267 |
CONFIGURE_ARGS+=--with-pdo-pgsql=${LOCALBASE} |
| 268 |
|
| 269 |
USE_PHP= pdo:build |
| 270 |
.endif |
| 271 |
|
| 272 |
.if ${PHP_MODNAME} == "pdo_sqlite" |
| 273 |
USES+= sqlite |
| 274 |
CONFIGURE_ARGS+=--with-pdo-sqlite=${LOCALBASE} |
| 275 |
|
| 276 |
USE_PHP= pdo:build |
| 277 |
.endif |
| 278 |
|
| 279 |
.if ${PHP_MODNAME} == "pgsql" |
| 280 |
USES+= pgsql |
| 281 |
|
| 282 |
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE} |
| 283 |
.endif |
| 284 |
|
| 285 |
.if ${PHP_MODNAME} == "phar" |
| 286 |
CONFIGURE_ARGS+=--enable-phar \ |
| 287 |
--with-pcre-dir=${LOCALBASE} |
| 288 |
|
| 289 |
USE_PHP= hash:build |
| 290 |
.endif |
| 291 |
|
| 292 |
.if ${PHP_MODNAME} == "posix" |
| 293 |
CONFIGURE_ARGS+=--enable-posix |
| 294 |
.endif |
| 295 |
|
| 296 |
.if ${PHP_MODNAME} == "pspell" |
| 297 |
LIB_DEPENDS+= libaspell.so:textproc/aspell |
| 298 |
|
| 299 |
CONFIGURE_ARGS+=--with-pspell=${LOCALBASE} |
| 300 |
.endif |
| 301 |
|
| 302 |
.if ${PHP_MODNAME} == "readline" |
| 303 |
CONFIGURE_ARGS+=--with-readline=/usr |
| 304 |
USES+= readline |
| 305 |
.endif |
| 306 |
|
| 307 |
.if ${PHP_MODNAME} == "recode" |
| 308 |
LIB_DEPENDS+= librecode.so:converters/recode |
| 309 |
|
| 310 |
CONFIGURE_ARGS+=--with-recode=${LOCALBASE} |
| 311 |
.endif |
| 312 |
|
| 313 |
.if ${PHP_MODNAME} == "session" |
| 314 |
CONFIGURE_ARGS+=--enable-session |
| 315 |
PHP_MOD_PRIO= 18 |
| 316 |
.endif |
| 317 |
|
| 318 |
.if ${PHP_MODNAME} == "shmop" |
| 319 |
CONFIGURE_ARGS+=--enable-shmop |
| 320 |
.endif |
| 321 |
|
| 322 |
.if ${PHP_MODNAME} == "simplexml" |
| 323 |
CONFIGURE_ARGS+=--enable-simplexml \ |
| 324 |
--with-pcre-dir=${LOCALBASE} \ |
| 325 |
--with-libxml-dir=${LOCALBASE} |
| 326 |
|
| 327 |
USES+= pkgconfig |
| 328 |
USE_GNOME= libxml2 |
| 329 |
.endif |
| 330 |
|
| 331 |
.if ${PHP_MODNAME} == "snmp" |
| 332 |
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} \ |
| 333 |
--with-openssl-dir=${OPENSSLBASE} |
| 334 |
|
| 335 |
CONFIGURE_ENV+= ac_cv_buggy_snprint_value="no" |
| 336 |
|
| 337 |
LIB_DEPENDS+= libnetsnmp.so:net-mgmt/net-snmp |
| 338 |
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl |
| 339 |
USES+= ssl |
| 340 |
.endif |
| 341 |
|
| 342 |
.if ${PHP_MODNAME} == "soap" |
| 343 |
CONFIGURE_ARGS+=--enable-soap \ |
| 344 |
--with-libxml-dir=${LOCALBASE} |
| 345 |
|
| 346 |
USE_GNOME= libxml2 |
| 347 |
.endif |
| 348 |
|
| 349 |
.if ${PHP_MODNAME} == "sockets" |
| 350 |
CONFIGURE_ARGS+=--enable-sockets |
| 351 |
.endif |
| 352 |
|
| 353 |
.if ${PHP_MODNAME} == "sodium" |
| 354 |
CONFIGURE_ARGS+= --with-sodium=${LOCALBASE} |
| 355 |
LIB_DEPENDS+= libsodium.so:security/libsodium |
| 356 |
.endif |
| 357 |
|
| 358 |
.if ${PHP_MODNAME} == "sqlite3" |
| 359 |
USES+= sqlite |
| 360 |
CONFIGURE_ARGS+=--with-sqlite3=${LOCALBASE} |
| 361 |
.endif |
| 362 |
|
| 363 |
.if ${PHP_MODNAME} == "sysvmsg" |
| 364 |
CONFIGURE_ARGS+=--enable-sysvmsg |
| 365 |
.endif |
| 366 |
|
| 367 |
.if ${PHP_MODNAME} == "sysvsem" |
| 368 |
CONFIGURE_ARGS+=--enable-sysvsem |
| 369 |
.endif |
| 370 |
|
| 371 |
.if ${PHP_MODNAME} == "sysvshm" |
| 372 |
CONFIGURE_ARGS+=--enable-sysvshm |
| 373 |
.endif |
| 374 |
|
| 375 |
.if ${PHP_MODNAME} == "tidy" |
| 376 |
CONFIGURE_ARGS+=--with-tidy=${LOCALBASE} |
| 377 |
|
| 378 |
LIB_DEPENDS+= libtidy.so:www/tidy-lib |
| 379 |
.endif |
| 380 |
|
| 381 |
.if ${PHP_MODNAME} == "tokenizer" |
| 382 |
CONFIGURE_ARGS+=--enable-tokenizer |
| 383 |
.endif |
| 384 |
|
| 385 |
.if ${PHP_MODNAME} == "wddx" |
| 386 |
CONFIGURE_ARGS+=--enable-wddx \ |
| 387 |
--with-libxml-dir=${LOCALBASE} |
| 388 |
|
| 389 |
USE_GNOME= libxml2 |
| 390 |
|
| 391 |
USE_PHP= xml:build session:build |
| 392 |
.endif |
| 393 |
|
| 394 |
.if ${PHP_MODNAME} == "xml" |
| 395 |
CONFIGURE_ARGS+=--enable-xml \ |
| 396 |
--with-libxml-dir=${LOCALBASE} |
| 397 |
|
| 398 |
USE_GNOME= libxml2 |
| 399 |
.endif |
| 400 |
|
| 401 |
.if ${PHP_MODNAME} == "xmlreader" |
| 402 |
CONFIGURE_ARGS+=--enable-xmlreader \ |
| 403 |
--with-libxml-dir=${LOCALBASE} |
| 404 |
|
| 405 |
USE_GNOME= libxml2 |
| 406 |
|
| 407 |
USE_PHP= dom:build |
| 408 |
.endif |
| 409 |
|
| 410 |
.if ${PHP_MODNAME} == "xmlrpc" |
| 411 |
CONFIGURE_ARGS+=--with-xmlrpc \ |
| 412 |
--with-libxml-dir=${LOCALBASE} \ |
| 413 |
--with-iconv-dir=${LOCALBASE} |
| 414 |
|
| 415 |
USES+= iconv:translit |
| 416 |
USE_GNOME= libxml2 |
| 417 |
|
| 418 |
PHP_HEADER_DIRS=libxmlrpc |
| 419 |
|
| 420 |
USE_PHP= xml:build |
| 421 |
.endif |
| 422 |
|
| 423 |
.if ${PHP_MODNAME} == "xmlwriter" |
| 424 |
CONFIGURE_ARGS+=--enable-xmlwriter \ |
| 425 |
--with-libxml-dir=${LOCALBASE} |
| 426 |
|
| 427 |
USE_GNOME= libxml2 |
| 428 |
.endif |
| 429 |
|
| 430 |
.if ${PHP_MODNAME} == "xsl" |
| 431 |
CONFIGURE_ARGS+=--with-xsl=${LOCALBASE} |
| 432 |
|
| 433 |
USE_GNOME= libxslt |
| 434 |
USE_PHP= dom:build xml:build |
| 435 |
.endif |
| 436 |
|
| 437 |
.if ${PHP_MODNAME} == "zip" |
| 438 |
LIB_DEPENDS+= libzip.so:archivers/libzip |
| 439 |
|
| 440 |
CONFIGURE_ARGS+=--enable-zip \ |
| 441 |
--with-zlib-dir=/usr \ |
| 442 |
--with-pcre-dir=${LOCALBASE} \ |
| 443 |
--with-libzip=${LOCALBASE} |
| 444 |
.endif |
| 445 |
|
| 446 |
.if ${PHP_MODNAME} == "zlib" |
| 447 |
CONFIGURE_ARGS+=--with-zlib=/usr |
| 448 |
.endif |
| 449 |
|
| 450 |
.include <bsd.port.options.mk> |
| 451 |
|
| 452 |
.if ${PHP_MODNAME} == "dba" |
| 453 |
. if empty(PORT_OPTIONS:MCDB) |
| 454 |
CONFIGURE_ARGS+=--without-cdb |
| 455 |
. endif |
| 456 |
. if ${PORT_OPTIONS:MDB4} |
| 457 |
CONFIGURE_ARGS+=--with-db4=${LOCALBASE} |
| 458 |
|
| 459 |
USES+= bdb |
| 460 |
WITH_BDB_HIGHEST= yes |
| 461 |
. endif |
| 462 |
. if ${PORT_OPTIONS:MGDBM} |
| 463 |
LIB_DEPENDS+= libgdbm.so:databases/gdbm |
| 464 |
|
| 465 |
CONFIGURE_ARGS+=--with-gdbm=${LOCALBASE} |
| 466 |
. endif |
| 467 |
. if ${PORT_OPTIONS:MQDBM} |
| 468 |
LIB_DEPENDS+= libqdbm.so:databases/qdbm |
| 469 |
|
| 470 |
CONFIGURE_ARGS+=--with-qdbm=${LOCALBASE} |
| 471 |
. endif |
| 472 |
. if ${PORT_OPTIONS:MTOKYO} |
| 473 |
LIB_DEPENDS+= libtokyocabinet.so:databases/tokyocabinet |
| 474 |
|
| 475 |
CONFIGURE_ARGS+=--with-tcadb=${LOCALBASE} |
| 476 |
. endif |
| 477 |
. if empty(PORT_OPTIONS:MINIFILE) |
| 478 |
CONFIGURE_ARGS+=--disable-inifile |
| 479 |
. endif |
| 480 |
. if empty(PORT_OPTIONS:MFLATFILE) |
| 481 |
CONFIGURE_ARGS+=--disable-flatfile |
| 482 |
. endif |
| 483 |
|
| 484 |
. if ${PORT_OPTIONS:MLMDB} |
| 485 |
LIB_DEPENDS+= liblmdb.so:databases/lmdb |
| 486 |
CONFIGURE_ARGS+= --with-lmdb=${LOCALBASE} |
| 487 |
.endif |
| 488 |
.endif |
| 489 |
|
| 490 |
.if ${PHP_MODNAME} == "mysqli" |
| 491 |
. if ${PORT_OPTIONS:MMYSQLND} |
| 492 |
CONFIGURE_ARGS+=--with-mysqli=mysqlnd |
| 493 |
. else |
| 494 |
CONFIGURE_ARGS+=--with-mysqli=${LOCALBASE}/bin/mysql_config |
| 495 |
USES+= mysql |
| 496 |
. endif |
| 497 |
.endif |
| 498 |
|
| 499 |
.if ${PHP_MODNAME} == "pdo_mysql" |
| 500 |
. if ${PORT_OPTIONS:MMYSQLND} |
| 501 |
CONFIGURE_ARGS+=--with-pdo-mysql=mysqlnd |
| 502 |
. else |
| 503 |
CONFIGURE_ARGS+=--with-pdo-mysql=${LOCALBASE} \ |
| 504 |
--with-zlib-dir=/usr |
| 505 |
USES+= mysql |
| 506 |
. endif |
| 507 |
.endif |
| 508 |
|
| 509 |
.if ${PHP_MODNAME} == "gd" |
| 510 |
. if ${PORT_OPTIONS:MTRUETYPE} |
| 511 |
CONFIGURE_ARGS+=--enable-gd-native-ttf |
| 512 |
. endif |
| 513 |
. if ${PORT_OPTIONS:MJIS} |
| 514 |
CONFIGURE_ARGS+=--enable-gd-jis-conv |
| 515 |
. endif |
| 516 |
. if ${PORT_OPTIONS:MWEBP} |
| 517 |
LIB_DEPENDS+= libwebp.so:graphics/webp |
| 518 |
|
| 519 |
CONFIGURE_ARGS+=--with-webp-dir=${LOCALBASE} |
| 520 |
. endif |
| 521 |
. if ${PORT_OPTIONS:MX11} |
| 522 |
USES+= xorg |
| 523 |
USE_XORG= xpm |
| 524 |
|
| 525 |
CONFIGURE_ARGS+=--with-xpm-dir=${LOCALBASE} |
| 526 |
. endif |
| 527 |
.endif |
| 528 |
|
| 529 |
.include <bsd.port.pre.mk> |
| 530 |
|
| 531 |
.if ${PHP_MODNAME} == "imap" |
| 532 |
. if ${PORT_OPTIONS:MPANDA} |
| 533 |
LIB_DEPENDS+= libc-client4.so.10:mail/panda-cclient |
| 534 |
. else |
| 535 |
LIB_DEPENDS+= libc-client4.so.9:mail/cclient |
| 536 |
. endif |
| 537 |
.endif |
| 538 |
|
| 539 |
.if ${PHP_MODNAME} == "mbstring" |
| 540 |
. if ${PORT_OPTIONS:MREGEX} |
| 541 |
LIB_DEPENDS+= libonig.so:devel/oniguruma |
| 542 |
CONFIGURE_ARGS+=--with-onig=${LOCALBASE} |
| 543 |
. else |
| 544 |
CONFIGURE_ARGS+=--disable-mbregex |
| 545 |
. endif |
| 546 |
.endif |
| 547 |
|
| 548 |
.if ${PHP_MODNAME} == "openssl" || ${PHP_MODNAME} == "sqlite3" |
| 549 |
post-extract: |
| 550 |
@${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4 |
| 551 |
.endif |
| 552 |
|
| 553 |
.if ${PHP_MODNAME} == "pdo_dblib" |
| 554 |
. if ${PORT_OPTIONS:MMSSQL} |
| 555 |
LIB_DEPENDS+= libsybdb.so:databases/freetds |
| 556 |
. else |
| 557 |
LIB_DEPENDS+= libct.so:databases/freetds |
| 558 |
. endif |
| 559 |
.endif |
| 560 |
|
| 561 |
.if ${PHP_MODNAME} == "xml" |
| 562 |
post-extract: |
| 563 |
@${MKDIR} ${WRKSRC}/ext/xml |
| 564 |
@${CP} ${WRKSRC}/expat_compat.h ${WRKSRC}/ext/xml |
| 565 |
.endif |
| 566 |
|
| 567 |
.if ${PHP_MODNAME} == "zlib" |
| 568 |
post-extract: |
| 569 |
@${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4 |
| 570 |
.endif |