Lines 1-27
Link Here
|
1 |
# New ports collection makefile for: php4 |
1 |
# New ports collection makefile for: php5 |
2 |
# Date created: Tue Feb 18 11:17:13 CET 2003 |
2 |
# Date created: Tue Feb 18 11:17:13 CET 2003 |
3 |
# Whom: Alex Dupre <sysadmin@alexdupre.com> |
3 |
# Whom: Alex Dupre <sysadmin@alexdupre.com> |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/lang/php4/Makefile,v 1.19 2003/07/04 02:26:08 nork Exp $ |
5 |
# $FreeBSD: ports/lang/php5/Makefile,v 1.19 2003/07/04 02:26:08 nork Exp $ |
6 |
# |
6 |
# |
7 |
# There are many ways to select which extensions you want to enable, either |
7 |
# There are many ways to select which extensions you want to enable, either |
8 |
# in interactive mode or in batch mode. |
8 |
# in interactive mode or in batch mode. |
9 |
# |
9 |
# |
10 |
# By default, the enabled extensions are: CTYPE, MYSQL, OVERLOAD, PCRE, POSIX, |
10 |
# By default, the enabled extensions are: CTYPE, DOM, PCRE, POSIX, SESSION, |
11 |
# SESSION, TOKENIZER, XML and ZLIB. This behaviour can be changed overriding |
11 |
# SIMPLEXML, SQLITE, TOKENIZER and XML. This behaviour can be changed |
12 |
# the PHP4_OPTIONS variable (e.g. PHP4_OPTIONS="EXT1 EXT2 EXT3"). |
12 |
# overriding the PHP5_OPTIONS variable (e.g. PHP5_OPTIONS="EXT1 EXT2 EXT3"). |
13 |
# |
13 |
# |
14 |
# Another way is to use the WITH_<EXT> and WITHOUT_<EXT> knobs, for additional |
14 |
# Another way is to use the WITH_<EXT> and WITHOUT_<EXT> knobs, for additional |
15 |
# and default extensions respectively (implies batch mode). |
15 |
# and default extensions respectively (implies batch mode). |
16 |
# |
16 |
# |
17 |
# The last way reads an "extension" file, located in ~/php4_options (the |
17 |
# The last way reads an "extension" file, located in ~/php5_options (the |
18 |
# location is overridable by the PHP4_OPTFILE variable). You may find an |
18 |
# location is overridable by the PHP5_OPTFILE variable). You may find an |
19 |
# example in scripts/php4_options (interactive mode only). |
19 |
# example in scripts/php5_options (interactive mode only). |
20 |
# |
20 |
# |
21 |
|
21 |
|
22 |
PORTNAME= php4 |
22 |
PORTNAME= php5 |
23 |
PORTVERSION= 4.3.3.r1 |
23 |
PORTVERSION= 5.0.0.a1 |
24 |
PORTREVISION= 1 |
24 |
PORTREVISION= 0 |
25 |
CATEGORIES?= lang devel www |
25 |
CATEGORIES?= lang devel www |
26 |
MASTER_SITES= http://www.php.net/distributions/ \ |
26 |
MASTER_SITES= http://www.php.net/distributions/ \ |
27 |
http://it.php.net/distributions/ \ |
27 |
http://it.php.net/distributions/ \ |
Lines 31-36
Link Here
|
31 |
http://fr.php.net/distributions/ \ |
31 |
http://fr.php.net/distributions/ \ |
32 |
http://es.php.net/distributions/ \ |
32 |
http://es.php.net/distributions/ \ |
33 |
http://se.php.net/distributions/ \ |
33 |
http://se.php.net/distributions/ \ |
|
|
34 |
http://www.sm.FreeBSD.org/~alex/ \ |
34 |
http://downloads.php.net/jani/ |
35 |
http://downloads.php.net/jani/ |
35 |
.if defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE) |
36 |
.if defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE) |
36 |
PKGNAMEPREFIX= mod_ |
37 |
PKGNAMEPREFIX= mod_ |
Lines 43-49
Link Here
|
43 |
.endif |
44 |
.endif |
44 |
.endif |
45 |
.endif |
45 |
.endif |
46 |
.endif |
46 |
DISTNAME= php-${PORTVERSION:S/.r/RC/} |
47 |
DISTNAME= php-${PORTVERSION:S/.a/a/} |
47 |
|
48 |
|
48 |
MAINTAINER?= sysadmin@alexdupre.com |
49 |
MAINTAINER?= sysadmin@alexdupre.com |
49 |
COMMENT= PHP Scripting Language (Apache Module and CLI) |
50 |
COMMENT= PHP Scripting Language (Apache Module and CLI) |
Lines 68-74
Link Here
|
68 |
CONFIGURE_ARGS= --enable-versioning \ |
69 |
CONFIGURE_ARGS= --enable-versioning \ |
69 |
--enable-memory-limit \ |
70 |
--enable-memory-limit \ |
70 |
--with-layout=GNU \ |
71 |
--with-layout=GNU \ |
71 |
--with-zlib-dir=/usr \ |
|
|
72 |
--disable-all |
72 |
--disable-all |
73 |
|
73 |
|
74 |
.if !defined(WITH_REGEX_TYPE) || ${WITH_REGEX_TYPE} == "php" |
74 |
.if !defined(WITH_REGEX_TYPE) || ${WITH_REGEX_TYPE} == "php" |
Lines 86-103
Link Here
|
86 |
EXT_DIR= 20020429 |
86 |
EXT_DIR= 20020429 |
87 |
SAPI_FILE= "@comment " |
87 |
SAPI_FILE= "@comment " |
88 |
|
88 |
|
89 |
CONFLICTS= php4-cli-4* mod_php4-4* php4-cgi-4* |
89 |
CONFLICTS= php5-cli-5* mod_php5-5* php5-cgi-5* |
90 |
.if defined(WITHOUT_APACHE) |
90 |
.if defined(WITHOUT_APACHE) |
91 |
.if defined(WITHOUT_CLI) |
91 |
.if defined(WITHOUT_CLI) |
92 |
CONFLICTS= php4-4* php4-cli-4* mod_php4-4* |
92 |
CONFLICTS= php5-5* php5-cli-5* mod_php5-5* |
93 |
.else |
93 |
.else |
94 |
CONFLICTS= php4-4* php4-cgi-4* mod_php4-4* |
94 |
CONFLICTS= php5-5* php5-cgi-5* mod_php5-5* |
95 |
.endif |
95 |
.endif |
96 |
.else |
96 |
.else |
97 |
.if defined(WITHOUT_CLI) |
97 |
.if defined(WITHOUT_CLI) |
98 |
CONFLICTS= php4-4* php4-cli-4* php4-cgi-4* |
98 |
CONFLICTS= php5-5* php5-cli-5* php5-cgi-5* |
99 |
.endif |
99 |
.endif |
100 |
.endif |
100 |
.endif |
|
|
101 |
CONFLICTS+= php4-4* php4-cli-4* mod_php4-4* php4-cgi-4* |
101 |
|
102 |
|
102 |
.if defined(WITHOUT_APACHE) |
103 |
.if defined(WITHOUT_APACHE) |
103 |
CONFIGURE_ARGS+=--enable-discard-path |
104 |
CONFIGURE_ARGS+=--enable-discard-path |
Lines 109-114
Link Here
|
109 |
CONFIGURE_ARGS+=--disable-cli |
110 |
CONFIGURE_ARGS+=--disable-cli |
110 |
PLIST_SUB+= CLI="@comment " |
111 |
PLIST_SUB+= CLI="@comment " |
111 |
.else |
112 |
.else |
|
|
113 |
.if !defined(WITHOUT_PEAR) |
114 |
CONFIGURE_ARGS+=--with-pear |
115 |
PLIST_SUB+= PEAR="" |
116 |
.else |
117 |
PLIST_SUB+= PEAR="@comment " |
118 |
.endif |
112 |
MAN1= php.1 |
119 |
MAN1= php.1 |
113 |
PLIST_SUB+= CLI="" |
120 |
PLIST_SUB+= CLI="" |
114 |
.endif |
121 |
.endif |
Lines 116-128
Link Here
|
116 |
SAPI_FILE= "bin/php" |
123 |
SAPI_FILE= "bin/php" |
117 |
.endif |
124 |
.endif |
118 |
|
125 |
|
119 |
ALL_OPTIONS= BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DBASE DBX DOMXML \ |
126 |
ALL_OPTIONS= BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DBASE DBX DOM EXIF \ |
120 |
DOMXSLT EXIF FILEPRO FRIBIDI FTP GD GDBM GETTEXT GMP HYPERWAVE \ |
127 |
FILEPRO FTP GD GDBM GETTEXT GMP ICONV IMAP INTERBASE INIFILE \ |
121 |
ICONV IMAP INTERBASE INIFILE MBSTRING MCAL MCVE MCRYPT MHASH \ |
128 |
MBSTRING MCAL MCVE MCRYPT MHASH MIME MING MYSQL NCURSES \ |
122 |
MIME MING MYSQL NCURSES OPENLDAP OPENSSL ORACLE OVERLOAD PCNTL \ |
129 |
OPENLDAP OPENSSL ORACLE PCNTL PCRE PDFLIB POSIX POSTGRESQL \ |
123 |
PCRE PDFLIB POSIX POSTGRESQL PSPELL READLINE RECODE SESSION \ |
130 |
PSPELL READLINE RECODE SESSION SHMOP SIMPLEXML SNMP SOCKETS \ |
124 |
SHMOP SNMP SOCKETS SYBASEDB SYBASECT SYSVSEM SYSVSHM TOKENIZER \ |
131 |
SQLITE SYBASEDB SYBASECT SYSVSEM SYSVSHM TOKENIZER UNIXODBC \ |
125 |
UNIXODBC WDDX XML XMLRPC XSLT YAZ YP ZIP ZLIB |
132 |
WDDX XML XMLRPC XSL YAZ YP ZLIB |
126 |
|
133 |
|
127 |
.for opt in ${ALL_OPTIONS} |
134 |
.for opt in ${ALL_OPTIONS} |
128 |
.if defined(WITH_${opt}) || defined(WITHOUT_${opt}) |
135 |
.if defined(WITH_${opt}) || defined(WITHOUT_${opt}) |
Lines 134-141
Link Here
|
134 |
IS_INTERACTIVE= yes |
141 |
IS_INTERACTIVE= yes |
135 |
.endif |
142 |
.endif |
136 |
|
143 |
|
137 |
PBDIR= ${PREFIX}/share/pear/boot |
|
|
138 |
|
139 |
.include <bsd.port.pre.mk> |
144 |
.include <bsd.port.pre.mk> |
140 |
|
145 |
|
141 |
.if ${OSVERSION} < 400014 || defined(WITHOUT_IPV6) |
146 |
.if ${OSVERSION} < 400014 || defined(WITHOUT_IPV6) |
Lines 152-162
Link Here
|
152 |
.if defined(WITH_APACHE2) |
157 |
.if defined(WITH_APACHE2) |
153 |
APACHE_PORT?= ${PORTSDIR}/www/apache2 |
158 |
APACHE_PORT?= ${PORTSDIR}/www/apache2 |
154 |
CONFIGURE_ARGS+=--with-apxs2=${APXS} |
159 |
CONFIGURE_ARGS+=--with-apxs2=${APXS} |
155 |
SAPI_FILE= libexec/apache2/libphp4.so |
160 |
SAPI_FILE= libexec/apache2/libphp5.so |
156 |
.else |
161 |
.else |
157 |
APACHE_PORT?= ${PORTSDIR}/www/apache13 |
162 |
APACHE_PORT?= ${PORTSDIR}/www/apache13 |
158 |
CONFIGURE_ARGS+=--with-apxs=${APXS} |
163 |
CONFIGURE_ARGS+=--with-apxs=${APXS} |
159 |
SAPI_FILE= libexec/apache/libphp4.so |
164 |
SAPI_FILE= libexec/apache/libphp5.so |
160 |
.endif |
165 |
.endif |
161 |
|
166 |
|
162 |
BUILD_DEPENDS+= ${APXS}:${APACHE_PORT} |
167 |
BUILD_DEPENDS+= ${APXS}:${APACHE_PORT} |
Lines 171-186
Link Here
|
171 |
EXT_DIR=${EXT_DIR} |
176 |
EXT_DIR=${EXT_DIR} |
172 |
|
177 |
|
173 |
WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work |
178 |
WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work |
174 |
PHP4_OPTFILE?= ${HOME}/php4_options |
179 |
PHP5_OPTFILE?= ${HOME}/php5_options |
175 |
|
180 |
|
176 |
PHP4_OPTIONS?= CTYPE MYSQL OVERLOAD PCRE POSIX SESSION TOKENIZER XML ZLIB |
181 |
PHP5_OPTIONS?= CTYPE DOM PCRE POSIX SESSION SIMPLEXML SQLITE TOKENIZER XML |
177 |
|
182 |
|
178 |
.for opt in ${ALL_OPTIONS} |
183 |
.for opt in ${ALL_OPTIONS} |
179 |
.if defined(WITH_${opt}) |
184 |
.if defined(WITH_${opt}) |
180 |
SEL_OPTIONS+= ${opt} |
185 |
SEL_OPTIONS+= ${opt} |
181 |
.endif |
186 |
.endif |
182 |
.endfor |
187 |
.endfor |
183 |
.for opt in ${PHP4_OPTIONS} |
188 |
.for opt in ${PHP5_OPTIONS} |
184 |
.if !defined(WITHOUT_${opt}) |
189 |
.if !defined(WITHOUT_${opt}) |
185 |
SEL_OPTIONS+= ${opt} |
190 |
SEL_OPTIONS+= ${opt} |
186 |
.endif |
191 |
.endif |
Lines 188-200
Link Here
|
188 |
.endfor |
193 |
.endfor |
189 |
|
194 |
|
190 |
SCRIPTS_ENV+= SEL_OPTIONS="${SEL_OPTIONS}" \ |
195 |
SCRIPTS_ENV+= SEL_OPTIONS="${SEL_OPTIONS}" \ |
191 |
OPTION_FILE="${PHP4_OPTFILE}" \ |
196 |
OPTION_FILE="${PHP5_OPTFILE}" \ |
192 |
WRKDIR="${WRKDIR}" \ |
197 |
WRKDIR="${WRKDIR}" \ |
193 |
CAT="${CAT}" \ |
198 |
CAT="${CAT}" \ |
194 |
SED="${SED}" |
199 |
SED="${SED}" |
195 |
|
200 |
|
196 |
.ifmake describe |
201 |
.ifmake describe |
197 |
WITH_MYSQL= yes |
|
|
198 |
WITH_XML= yes |
202 |
WITH_XML= yes |
199 |
.endif |
203 |
.endif |
200 |
|
204 |
|
Lines 206-229
Link Here
|
206 |
WITH_DBA= yes |
210 |
WITH_DBA= yes |
207 |
.endif |
211 |
.endif |
208 |
|
212 |
|
209 |
.if defined(WITH_DOMXSLT) |
213 |
.if defined(WITH_XSL) |
210 |
WITH_DOMXML= yes |
214 |
WITH_DOM= yes |
211 |
.endif |
215 |
.endif |
212 |
|
216 |
|
213 |
.if defined(WITH_XMLRPC) || defined(WITH_XSLT) |
217 |
.if defined(WITH_XMLRPC) |
214 |
WITH_ICONV_DEP= yes |
218 |
WITH_ICONV_DEP= yes |
215 |
.endif |
219 |
.endif |
216 |
|
220 |
|
217 |
.if defined(WITH_SNMP) |
221 |
.if defined(WITH_SNMP) |
218 |
WITH_OPENSSL= yes |
222 |
WITH_OPENSSL_DEP= yes |
219 |
.endif |
223 |
.endif |
220 |
|
224 |
|
221 |
.if defined(WITH_XMLRPC) || defined(WITH_XSLT) |
225 |
.if defined(WITH_DOM) || defined(WITH_SIMPLEXML) |
222 |
WITH_XML_DEP= yes |
226 |
WITH_XML_DEP= yes |
223 |
.endif |
227 |
.endif |
224 |
|
228 |
|
225 |
.if defined(WITH_WDDX) |
229 |
.if defined(WITH_GD) || defined(WITH_MYSQL) || defined(WITH_PDFLIB) |
226 |
WITH_XML= yes |
230 |
WITH_ZLIB_DEP= yes |
227 |
.endif |
231 |
.endif |
228 |
|
232 |
|
229 |
.if defined(WITH_BCMATH) |
233 |
.if defined(WITH_BCMATH) |
Lines 275-288
Link Here
|
275 |
CONFIGURE_ARGS+=--enable-dbx |
279 |
CONFIGURE_ARGS+=--enable-dbx |
276 |
.endif |
280 |
.endif |
277 |
|
281 |
|
278 |
.if defined(WITH_DOMXML) |
282 |
.if defined(WITH_DOM) |
279 |
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 |
283 |
CONFIGURE_ARGS+=--enable-dom |
280 |
CONFIGURE_ARGS+=--with-dom=${LOCALBASE} |
|
|
281 |
.endif |
282 |
|
283 |
.if defined(WITH_DOMXSLT) |
284 |
LIB_DEPENDS+= xslt.1:${PORTSDIR}/textproc/libxslt |
285 |
CONFIGURE_ARGS+=--with-dom-xslt=${LOCALBASE} --with-dom-exslt=${LOCALBASE} |
286 |
.endif |
284 |
.endif |
287 |
|
285 |
|
288 |
.if defined(WITH_EXIF) |
286 |
.if defined(WITH_EXIF) |
Lines 293-303
Link Here
|
293 |
CONFIGURE_ARGS+=--enable-filepro |
291 |
CONFIGURE_ARGS+=--enable-filepro |
294 |
.endif |
292 |
.endif |
295 |
|
293 |
|
296 |
.if defined(WITH_FRIBIDI) |
|
|
297 |
LIB_DEPENDS+= fribidi.0:${PORTSDIR}/converters/fribidi |
298 |
CONFIGURE_ARGS+=--with-fribidi=${LOCALBASE} |
299 |
.endif |
300 |
|
301 |
.if defined(WITH_FTP) |
294 |
.if defined(WITH_FTP) |
302 |
CONFIGURE_ARGS+=--enable-ftp |
295 |
CONFIGURE_ARGS+=--enable-ftp |
303 |
.endif |
296 |
.endif |
Lines 336-345
Link Here
|
336 |
CONFIGURE_ARGS+=--with-gmp=${LOCALBASE} |
329 |
CONFIGURE_ARGS+=--with-gmp=${LOCALBASE} |
337 |
.endif |
330 |
.endif |
338 |
|
331 |
|
339 |
.if defined(WITH_HYPERWAVE) |
|
|
340 |
CONFIGURE_ARGS+=--with-hyperwave |
341 |
.endif |
342 |
|
343 |
.if defined(WITH_ICONV) || defined(WITH_ICONV_DEP) |
332 |
.if defined(WITH_ICONV) || defined(WITH_ICONV_DEP) |
344 |
LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv |
333 |
LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv |
345 |
.endif |
334 |
.endif |
Lines 376-382
Link Here
|
376 |
.endif |
365 |
.endif |
377 |
|
366 |
|
378 |
.if defined(WITH_MBSTRING) |
367 |
.if defined(WITH_MBSTRING) |
379 |
CONFIGURE_ARGS+=--enable-mbstring --enable-mbregex |
368 |
CONFIGURE_ARGS+=--enable-mbstring |
380 |
.endif |
369 |
.endif |
381 |
|
370 |
|
382 |
.if defined(WITH_MCAL) |
371 |
.if defined(WITH_MCAL) |
Lines 459-474
Link Here
|
459 |
CONFIGURE_ARGS+=--with-oracle=${LOCALBASE}/oracle7 |
448 |
CONFIGURE_ARGS+=--with-oracle=${LOCALBASE}/oracle7 |
460 |
.endif |
449 |
.endif |
461 |
|
450 |
|
462 |
.if defined(WITH_OVERLOAD) |
|
|
463 |
CONFIGURE_ARGS+=--enable-overload |
464 |
.endif |
465 |
|
466 |
.if defined(WITH_PCNTL) |
451 |
.if defined(WITH_PCNTL) |
467 |
CONFIGURE_ARGS+=--enable-pcntl |
452 |
CONFIGURE_ARGS+=--enable-pcntl |
468 |
.endif |
453 |
.endif |
469 |
|
454 |
|
470 |
.if defined(WITH_PCRE) |
455 |
.if defined(WITH_PCRE) |
471 |
CONFIGURE_ARGS+=--with-pcre-regex=yes |
456 |
CONFIGURE_ARGS+=--with-pcre-regex |
472 |
.endif |
457 |
.endif |
473 |
|
458 |
|
474 |
.if defined(WITH_PDFLIB) |
459 |
.if defined(WITH_PDFLIB) |
Lines 507-525
Link Here
|
507 |
CONFIGURE_ARGS+=--enable-shmop |
492 |
CONFIGURE_ARGS+=--enable-shmop |
508 |
.endif |
493 |
.endif |
509 |
|
494 |
|
|
|
495 |
.if defined(WITH_SIMPLEXML) |
496 |
CONFIGURE_ARGS+=--enable-simplexml |
497 |
.endif |
498 |
|
510 |
.if defined(WITH_SNMP) |
499 |
.if defined(WITH_SNMP) |
511 |
.if exists(${LOCALBASE}/lib/libsnmp.so.4) |
500 |
.if exists(${LOCALBASE}/lib/libsnmp.so.4) |
512 |
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net/net-snmp4 |
501 |
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net/net-snmp4 |
513 |
.else |
502 |
.else |
514 |
LIB_DEPENDS+= netsnmp.5:${PORTSDIR}/net/net-snmp |
503 |
LIB_DEPENDS+= netsnmp.5:${PORTSDIR}/net/net-snmp |
515 |
.endif |
504 |
.endif |
516 |
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} --enable-ucd-snmp-hack |
505 |
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} --with-openssl-dir=${OPENSSLBASE} --enable-ucd-snmp-hack |
517 |
.endif |
506 |
.endif |
518 |
|
507 |
|
519 |
.if defined(WITH_SOCKETS) |
508 |
.if defined(WITH_SOCKETS) |
520 |
CONFIGURE_ARGS+=--enable-sockets |
509 |
CONFIGURE_ARGS+=--enable-sockets |
521 |
.endif |
510 |
.endif |
522 |
|
511 |
|
|
|
512 |
.if defined(WITH_SQLITE) |
513 |
CONFIGURE_ARGS+=--with-sqlite |
514 |
.endif |
515 |
|
523 |
.if defined(WITH_SYBASEDB) |
516 |
.if defined(WITH_SYBASEDB) |
524 |
LIB_DEPENDS+= sybdb.3:${PORTSDIR}/databases/freetds |
517 |
LIB_DEPENDS+= sybdb.3:${PORTSDIR}/databases/freetds |
525 |
CONFIGURE_ARGS+=--with-sybase=${LOCALBASE} |
518 |
CONFIGURE_ARGS+=--with-sybase=${LOCALBASE} |
Lines 552-571
Link Here
|
552 |
.endif |
545 |
.endif |
553 |
|
546 |
|
554 |
.if defined(WITH_XML) || defined(WITH_XML_DEP) |
547 |
.if defined(WITH_XML) || defined(WITH_XML_DEP) |
555 |
LIB_DEPENDS+= expat.4:${PORTSDIR}/textproc/expat2 |
548 |
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 |
|
|
549 |
CONFIGURE_ARGS+=--with-libxml-dir=${LOCALBASE} |
556 |
.endif |
550 |
.endif |
557 |
|
551 |
|
558 |
.if defined(WITH_XML) |
552 |
.if defined(WITH_XML) |
559 |
CONFIGURE_ARGS+=--enable-xml --with-expat-dir=${LOCALBASE} |
553 |
CONFIGURE_ARGS+=--enable-xml |
560 |
.endif |
554 |
.endif |
561 |
|
555 |
|
562 |
.if defined(WITH_XMLRPC) |
556 |
.if defined(WITH_XMLRPC) |
563 |
CONFIGURE_ARGS+=--with-xmlrpc |
557 |
LIB_DEPENDS+= expat.4:${PORTSDIR}/textproc/expat2 |
|
|
558 |
CONFIGURE_ARGS+=--with-xmlrpc --with-expat-dir=${LOCALBASE} --with-iconv-dir=${LOCALBASE} |
564 |
.endif |
559 |
.endif |
565 |
|
560 |
|
566 |
.if defined(WITH_XSLT) |
561 |
.if defined(WITH_XSL) |
567 |
LIB_DEPENDS+= sablot.70:${PORTSDIR}/textproc/sablotron |
562 |
LIB_DEPENDS+= xslt.1:${PORTSDIR}/textproc/libxslt |
568 |
CONFIGURE_ARGS+=--enable-xslt --with-xslt-sablot=${LOCALBASE} |
563 |
CONFIGURE_ARGS+=--with-xsl=${LOCALBASE} |
569 |
.endif |
564 |
.endif |
570 |
|
565 |
|
571 |
.if defined(WITH_YAZ) |
566 |
.if defined(WITH_YAZ) |
Lines 577-589
Link Here
|
577 |
CONFIGURE_ARGS+=--enable-yp |
572 |
CONFIGURE_ARGS+=--enable-yp |
578 |
.endif |
573 |
.endif |
579 |
|
574 |
|
580 |
.if defined(WITH_ZIP) |
575 |
.if defined(WITH_ZLIB) || defined(WITH_ZLIB_DEP) |
581 |
LIB_DEPENDS+= zzip-0.10:${PORTSDIR}/devel/zziplib |
576 |
CONFIGURE_ARGS+=--with-zlib-dir=/usr |
582 |
CONFIGURE_ARGS+=--with-zip=${LOCALBASE} |
|
|
583 |
.endif |
577 |
.endif |
584 |
|
578 |
|
585 |
.if defined(WITH_ZLIB) |
579 |
.if defined(WITH_ZLIB) |
586 |
CONFIGURE_ARGS+=--with-zlib=yes |
580 |
CONFIGURE_ARGS+=--with-zlib |
587 |
.endif |
581 |
.endif |
588 |
|
582 |
|
589 |
pre-patch: |
583 |
pre-patch: |
Lines 615-627
Link Here
|
615 |
@${ECHO_CMD} "To enable LZW-compressed GIF support in GD define the WITH_LZW knob." |
609 |
@${ECHO_CMD} "To enable LZW-compressed GIF support in GD define the WITH_LZW knob." |
616 |
@${ECHO_CMD} "" |
610 |
@${ECHO_CMD} "" |
617 |
.endif |
611 |
.endif |
|
|
612 |
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_PEAR) && (!defined(WITH_PCRE) || !defined(WITH_XML)) |
613 |
@${ECHO_CMD} "PEAR requires PCRE and XML extensions." |
614 |
@${ECHO_CMD} "Define the WITHOUT_PEAR knob or enable these extensions." |
615 |
@${FALSE} |
616 |
.endif |
618 |
.if !defined(WITHOUT_APACHE) && !defined(WITHOUT_CLI) |
617 |
.if !defined(WITHOUT_APACHE) && !defined(WITHOUT_CLI) |
619 |
@${ECHO_CMD} "You are building the Apache Module and the Command Line Interpreter of PHP." |
618 |
@${ECHO_CMD} "You are building the Apache Module and the Command Line Interpreter of PHP." |
620 |
@${ECHO_CMD} "" |
619 |
@${ECHO_CMD} "" |
621 |
@${ECHO_CMD} "Use port:" |
620 |
@${ECHO_CMD} "Use port:" |
622 |
@${ECHO_CMD} " lang/php4-cli for Command Line Interpreter only" |
621 |
@${ECHO_CMD} " lang/php5-cli for Command Line Interpreter only" |
623 |
@${ECHO_CMD} " www/php4-cgi for Common Gateway Interface only" |
622 |
@${ECHO_CMD} " www/php5-cgi for Common Gateway Interface only" |
624 |
@${ECHO_CMD} " www/mod_php4 for Apache Module only" |
623 |
@${ECHO_CMD} " www/mod_php5 for Apache Module only" |
625 |
@${ECHO_CMD} "" |
624 |
@${ECHO_CMD} "" |
626 |
.endif |
625 |
.endif |
627 |
|
626 |
|
Lines 638-649
Link Here
|
638 |
.endif |
637 |
.endif |
639 |
|
638 |
|
640 |
post-install: |
639 |
post-install: |
641 |
.if !defined(WITHOUT_CLI) |
640 |
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_PEAR) |
642 |
@${INSTALL_SCRIPT} ${WRKSRC}/pear/scripts/pear ${PREFIX}/bin |
641 |
@${INSTALL_SCRIPT} ${WRKSRC}/pear/scripts/pear ${PREFIX}/bin |
643 |
.endif |
642 |
.endif |
644 |
@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc |
643 |
@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc |
645 |
@${INSTALL_DATA} ${WRKSRC}/php.ini-recommended ${PREFIX}/etc |
644 |
@${INSTALL_DATA} ${WRKSRC}/php.ini-recommended ${PREFIX}/etc |
646 |
@${TOUCH} ${PREFIX}/lib/php/${EXT_DIR}/.php |
645 |
@${TOUCH} ${PREFIX}/lib/php/${EXT_DIR}/.php |
|
|
646 |
@${TOUCH} ${PREFIX}/include/php/ext/xml/expat/.php |
647 |
.if !defined(WITHOUT_APACHE) |
647 |
.if !defined(WITHOUT_APACHE) |
648 |
@${ECHO_CMD} "*****************************************************************************" |
648 |
@${ECHO_CMD} "*****************************************************************************" |
649 |
@${ECHO_CMD} "" |
649 |
@${ECHO_CMD} "" |