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