View | Details | Raw Unified | Return to bug 59418
Collapse All | Expand All

(-)php4/Makefile (-9 / +34 lines)
Lines 21-27 Link Here
21
21
22
PORTNAME=	php4
22
PORTNAME=	php4
23
PORTVERSION=	4.3.4
23
PORTVERSION=	4.3.4
24
PORTREVISION=	1
24
PORTREVISION=	2
25
CATEGORIES?=	lang devel www
25
CATEGORIES?=	lang devel www
26
MASTER_SITES=	http://www.php.net/distributions/:release \
26
MASTER_SITES=	http://www.php.net/distributions/:release \
27
		http://it.php.net/distributions/:release \
27
		http://it.php.net/distributions/:release \
Lines 87-92 Link Here
87
EXT_DIR=	20020429
87
EXT_DIR=	20020429
88
SAPI_FILE=	"@comment "
88
SAPI_FILE=	"@comment "
89
89
90
.if defined(WITH_DEBUG)
91
CONFIGURE_ARGS+=--enable-debug
92
EXT_DIR:=	${EXT_DIR}-debug
93
.endif
94
90
CONFLICTS=	php4-cli-4* mod_php4-4* php4-cgi-4*
95
CONFLICTS=	php4-cli-4* mod_php4-4* php4-cgi-4*
91
.if defined(WITHOUT_APACHE)
96
.if defined(WITHOUT_APACHE)
92
.if defined(WITHOUT_CLI)
97
.if defined(WITHOUT_CLI)
Lines 125-131 Link Here
125
.endif
130
.endif
126
131
127
ALL_OPTIONS=	BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DB4 DBASE DBX \
132
ALL_OPTIONS=	BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DB4 DBASE DBX \
128
		DEBUG DOMXML DOMXSLT EXIF FILEPRO FRIBIDI FTP GD GDBM GETTEXT \
133
		DOMXML DOMXSLT EXIF FILEPRO FRIBIDI FTP GD GDBM GETTEXT \
129
		GMP HYPERWAVE ICONV IMAP INTERBASE INIFILE MBSTRING MCAL MCVE \
134
		GMP HYPERWAVE ICONV IMAP INTERBASE INIFILE MBSTRING MCAL MCVE \
130
		MCRYPT MHASH MIME MING MNOGOSEARCH MYSQL NCURSES OPENLDAP \
135
		MCRYPT MHASH MIME MING MNOGOSEARCH MYSQL NCURSES OPENLDAP \
131
		OPENSSL ORACLE OVERLOAD PCNTL PCRE PDFLIB POSIX POSTGRESQL \
136
		OPENSSL ORACLE OVERLOAD PCNTL PCRE PDFLIB POSIX POSTGRESQL \
Lines 251-261 Link Here
251
CONFIGURE_ARGS+=--enable-dbx
256
CONFIGURE_ARGS+=--enable-dbx
252
.endif
257
.endif
253
258
254
.if defined(WITH_DEBUG)
255
CONFIGURE_ARGS+=--enable-debug
256
EXT_DIR:=${EXT_DIR}-debug
257
.endif
258
259
.if defined(WITH_DOMXML)
259
.if defined(WITH_DOMXML)
260
LIB_DEPENDS+=	xml2.5:${PORTSDIR}/textproc/libxml2
260
LIB_DEPENDS+=	xml2.5:${PORTSDIR}/textproc/libxml2
261
CONFIGURE_ARGS+=--with-dom=${LOCALBASE}
261
CONFIGURE_ARGS+=--with-dom=${LOCALBASE}
Lines 427-433 Link Here
427
.endif
427
.endif
428
428
429
.if defined(WITH_POSTGRESQL)
429
.if defined(WITH_POSTGRESQL)
430
LIB_DEPENDS+=	pq.3:${PORTSDIR}/databases/postgresql7
430
LIB_DEPENDS+=	pq.3:${PORTSDIR}/databases/postgresql7-client
431
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
431
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
432
.endif
432
.endif
433
433
Lines 626-638 Link Here
626
	@${ECHO_CMD} ""
626
	@${ECHO_CMD} ""
627
.endif
627
.endif
628
628
629
.if !defined(WITHOUT_CLI)
630
post-build:
629
post-build:
630
	@${ECHO_CMD} "PHP_VER=4" > ${WRKDIR}/php.conf
631
	@${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf
632
	@${ECHO_CMD} "PHP_EXT_DIR=${EXT_DIR}" >> ${WRKDIR}/php.conf
633
	@${ECHO_CMD} "PHP_PORT=${.CURDIR}" >> ${WRKDIR}/php.conf
634
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_PEAR)
635
	@${ECHO_CMD} "PHP_PEAR=yes" >> ${WRKDIR}/php.conf
636
.else
637
	@${ECHO_CMD} "PHP_PEAR=no" >> ${WRKDIR}/php.conf
638
.endif
639
.if !defined(WITHOUT_APACHE) && !defined(WITHOUT_CLI)
640
	@${ECHO_CMD} "PHP_SAPI=full" >> ${WRKDIR}/php.conf
641
.else
642
.if defined(WITHOUT_APACHE) && !defined(WITHOUT_CLI)
643
	@${ECHO_CMD} "PHP_SAPI=cli" >> ${WRKDIR}/php.conf
644
.endif
645
.if !defined(WITHOUT_APACHE) && defined(WITHOUT_CLI)
646
	@${ECHO_CMD} "PHP_SAPI=mod" >> ${WRKDIR}/php.conf
647
.endif
648
.if defined(WITHOUT_APACHE) && defined(WITHOUT_CLI)
649
	@${ECHO_CMD} "PHP_SAPI=cgi" >> ${WRKDIR}/php.conf
650
.endif
651
.endif
652
.if !defined(WITHOUT_CLI)
631
	@${ECHO_CMD} "You may run the tests from the PHP test framework, typing 'make test' now."
653
	@${ECHO_CMD} "You may run the tests from the PHP test framework, typing 'make test' now."
632
	@${ECHO_CMD} "(It is safe to ignore errors about timestamp-related tests,"
654
	@${ECHO_CMD} "(It is safe to ignore errors about timestamp-related tests,"
633
	@${ECHO_CMD} "since they are due to the different FreeBSD mktime() implementation)."
655
	@${ECHO_CMD} "since they are due to the different FreeBSD mktime() implementation)."
634
	@${ECHO_CMD} ""
656
	@${ECHO_CMD} ""
657
.endif
635
658
659
.if !defined(WITHOUT_CLI)
636
test: all
660
test: all
637
	@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
661
	@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
638
		${MAKEFILE} ${MAKE_ARGS} ${.TARGET})
662
		${MAKEFILE} ${MAKE_ARGS} ${.TARGET})
Lines 644-649 Link Here
644
.endif
668
.endif
645
	@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc
669
	@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc
646
	@${INSTALL_DATA} ${WRKSRC}/php.ini-recommended ${PREFIX}/etc
670
	@${INSTALL_DATA} ${WRKSRC}/php.ini-recommended ${PREFIX}/etc
671
	@${INSTALL_DATA} ${WRKDIR}/php.conf ${PREFIX}/etc
647
	@${TOUCH} ${PREFIX}/lib/php/${EXT_DIR}/.php
672
	@${TOUCH} ${PREFIX}/lib/php/${EXT_DIR}/.php
648
.if !defined(WITHOUT_APACHE)
673
.if !defined(WITHOUT_APACHE)
649
	@${ECHO_CMD} "*****************************************************************************"
674
	@${ECHO_CMD} "*****************************************************************************"
(-)php4/bsd.php.mk (-58 / +96 lines)
Lines 2-91 Link Here
2
#
2
#
3
# The user/port can now set this options in the makefiles.
3
# The user/port can now set this options in the makefiles.
4
#
4
#
5
# USE_PHPIZE=yes   - Use to build a php extension.
5
# USE_PHPIZE=yes    - Use to build a PHP extension.
6
# WANT_PHP_CLI=yes - Want the CLI version of PHP.
6
# WANT_PHP_CLI=yes  - Want the CLI version of PHP.
7
# WANT_PHP_CGI=yes - Want the CGI version of PHP.
7
# WANT_PHP_CGI=yes  - Want the CGI version of PHP.
8
# WANT_PHP_MOD=yes - Want the Apache Module for PHP.
8
# WANT_PHP_MOD=yes  - Want the Apache Module for PHP.
9
# WANT_PHP_WEB=yes - Want the Apache Module or the CGI version of PHP.
9
# WANT_PHP_WEB=yes  - Want the Apache Module or the CGI version of PHP.
10
# WANT_PHP_PEAR=yes - Want the PEAR framework.
10
#
11
#
11
# You may combine multiple WANT_PHP_* knobs.
12
# You may combine multiple WANT_PHP_* knobs.
12
# Don't specify any WANT_PHP_* knob if your port will work with every PHP SAPI.
13
# Don't specify any WANT_PHP_* knob if your port will work with every PHP SAPI.
13
#
14
#
14
15
15
.if exists(${LOCALBASE}/bin/php) && exists(${LOCALBASE}/bin/pear)
16
.if exists(${LOCALBASE}/etc/php.conf)
16
HAVE_PHP_CLI=	yes
17
.include "${LOCALBASE}/etc/php.conf"
17
HAVE_PHP=	yes
18
PHP_PORT=	${PORTSDIR}/lang/php4-cli
19
.endif
20
.if exists(${LOCALBASE}/bin/php) && !exists(${LOCALBASE}/bin/pear)
21
HAVE_PHP_CGI=	yes
22
HAVE_PHP=	yes
23
PHP_PORT=	${PORTSDIR}/www/php4-cgi
24
.endif
25
.if exists(${LOCALBASE}/libexec/apache/libphp4.so) || exists(${LOCALBASE}/libexec/apache2/libphp4.so)
26
HAVE_PHP_MOD=	yes
27
HAVE_PHP=	yes
28
PHP_PORT=	${PORTSDIR}/www/mod_php4
29
.endif
30
.if defined(HAVE_PHP_CLI) && defined(HAVE_PHP_MOD)
31
PHP_PORT=	${PORTSDIR}/lang/php4
32
.endif
33
34
.if defined(WANT_PHP_CGI) && (defined(WANT_PHP_CLI) || defined(WANT_PHP_MOD))
35
.BEGIN:
36
	@${ECHO_CMD} "The CGI version of PHP avoids the installation of other SAPIs."
37
	@${ECHO_CMD} "Do not use WANT_PHP_CGI with other WANT_PHP_* knobs."
38
	@${FALSE}
39
.endif
18
.endif
40
19
41
.if defined(WANT_PHP_CLI) && !defined(WANT_PHP_MOD)
20
PHP_VER?=	4
42
.if defined(HAVE_PHP) && !defined(HAVE_PHP_CLI)
21
.if !defined(WITH_DEBUG)
43
.BEGIN:
22
PHP_EXT_DIR?=	20020429
44
	@${ECHO_CMD} "This port requires the CLI version of PHP, but you have already"
45
	@${ECHO_CMD} "installed a conflicting PHP port without CLI."
46
	@${FALSE}
47
.else
23
.else
48
PHP_PORT?=	${PORTSDIR}/lang/php4-cli
24
PHP_EXT_DIR?=	20020429-debug
49
.endif
25
.endif
26
.if !defined(WITHOUT_PEAR)
27
PHP_PEAR?=	yes
28
.else
29
PHP_PEAR?=	no
30
.endif
31
PHP_SAPI?=	""
32
33
.if defined(BROKEN_WITH_PHP)
34
.       for VER in ${BROKEN_WITH_PHP}
35
.               if (${PHP_VER} == "${VER}")
36
BROKEN=         "Doesn't work with PHP version : ${PHP_VER} (Doesn't support PHP ${BROKEN_WITH_PHP})"
37
.               endif
38
.       endfor
50
.endif
39
.endif
51
40
52
.if defined(WANT_PHP_WEB)
41
.if defined(WANT_PHP_WEB)
53
.if defined(HAVE_PHP) && !defined(HAVE_PHP_CGI) && !defined(HAVE_PHP_MOD)
42
.	if defined(WANT_PHP_CGI) || defined(WANT_PHP_MOD)
43
.BEGIN:
44
		@${ECHO_CMD} "If you define WANT_PHP_WEB you cannot set also WANT_PHP_CGI"
45
		@${ECHO_CMD} "or WANT_PHP_MOD. Use only one of them."
46
		@${FALSE}
47
.	else
48
.	if defined(PHP_VERSION) && ${PHP_SAPI} == "cli"
54
.BEGIN:
49
.BEGIN:
55
        @${ECHO_CMD} "This port requires the Apache Module or the CGI version of PHP, but you have"
50
		@${ECHO_CMD} "This port requires the Apache Module or the CGI version of PHP, but you have"
56
        @${ECHO_CMD} "already installed a conflicting PHP port without them."
51
		@${ECHO_CMD} "already installed a conflicting PHP port without them."
57
        @${FALSE}
52
		@${FALSE}
53
.	else
54
.	if defined(WANT_PHP_CLI) || defined(WANT_PHP_PEAR)
55
PHP_PORT?=	${PORTSDIR}/lang/php${PHP_VER}
56
.	else
57
PHP_PORT?=	${PORTSDIR}/www/mod_php${PHP_VER}
58
PHP_PEAR?=	no
59
.	endif
60
.	endif
61
.	endif
58
.else
62
.else
59
PHP_PORT?=	${PORTSDIR}/www/mod_php4
60
.endif
61
.endif
62
63
63
.if defined(WANT_PHP_CGI)
64
.if defined(WANT_PHP_CGI)
64
.if defined(HAVE_PHP) && !defined(HAVE_PHP_CGI)
65
.	if defined(WANT_PHP_CLI) || defined(WANT_PHP_MOD)
66
.BEGIN:
67
		@${ECHO_CMD} "The CGI version of PHP avoids the installation of other SAPIs."
68
		@${ECHO_CMD} "Do not use WANT_PHP_CGI with other WANT_PHP_* knobs."
69
		@${FALSE}
70
.	else
71
.	if defined(PHP_VERSION) && ${PHP_SAPI} != "cgi"
65
.BEGIN:
72
.BEGIN:
66
	@${ECHO_CMD} "This port requires the CGI version of PHP, but you have already"
73
		@${ECHO_CMD} "This port requires the CGI version of PHP, but you have already"
67
	@${ECHO_CMD} "installed a conflicting PHP port without CGI."
74
		@${ECHO_CMD} "installed a conflicting PHP port without CGI."
68
	@${FALSE}
75
		@${FALSE}
76
.	else
77
PHP_PORT?=	${PORTSDIR}/www/php${PHP_VER}-cgi
78
PHP_PEAR?=	no
79
.	endif
80
.	endif
81
.else
82
83
.if defined(WANT_PHP_CLI) && !defined(WANT_PHP_MOD)
84
.	if defined(PHP_VERSION) && ${PHP_SAPI} != "full" && ${PHP_SAPI} != "cli"
85
.BEGIN:
86
		@${ECHO_CMD} "This port requires the CLI version of PHP, but you have already"
87
		@${ECHO_CMD} "installed a conflicting PHP port without CLI."
88
		@${FALSE}
89
.	else
90
PHP_PORT?=	${PORTSDIR}/lang/php${PHP_VER}-cli
91
.	endif
69
.else
92
.else
70
PHP_PORT?=	${PORTSDIR}/www/php4-cgi
71
.endif
72
.endif
73
93
74
.if defined(WANT_PHP_MOD) && !defined(WANT_PHP_CLI)
94
.if !defined(WANT_PHP_CLI) && defined(WANT_PHP_MOD)
75
.if defined(HAVE_PHP) && !defined(HAVE_PHP_MOD)
95
.	if defined(PHP_VERSION) && (${PHP_SAPI} != "full" && ${PHP_SAPI} != "mod")
76
.BEGIN:
96
.BEGIN:
77
	@${ECHO_CMD} "This port requires the Apache Module for PHP, but you have already"
97
		@${ECHO_CMD} "This port requires the Apache Module for PHP, but you have already"
78
	@${ECHO_CMD} "installed a conflicting PHP port without the Apache Module."
98
		@${ECHO_CMD} "installed a conflicting PHP port without the Apache Module."
79
	@${FALSE}
99
		@${FALSE}
100
.	else
101
.	if defined(WANT_PHP_PEAR)
102
PHP_PORT?=	${PORTSDIR}/lang/php${PHP_VER}
103
.	else
104
PHP_PORT?=	${PORTSDIR}/www/mod_php${PHP_VER}
105
PHP_PEAR?=	no
106
.	endif
107
.	endif
80
.else
108
.else
81
PHP_PORT?=	${PORTSDIR}/www/mod_php4
109
110
PHP_PORT?=	${PORTSDIR}/lang/php${PHP_VER}
111
82
.endif
112
.endif
113
114
.endif
115
116
.endif
117
118
.endif
119
120
.if defined(WANT_PHP_PEAR) && ${PHP_PEAR} == "no"
121
BROKEN=	"This port requires the PEAR framework, but you have already" \
122
	"installed a PHP port without PEAR"
83
.endif
123
.endif
84
124
85
PHP_PORT?=	${PORTSDIR}/lang/php4
86
RUN_DEPENDS+=	${LOCALBASE}/include/php/main/php.h:${PHP_PORT}
125
RUN_DEPENDS+=	${LOCALBASE}/include/php/main/php.h:${PHP_PORT}
87
126
88
PHP_EXT_DIR?=	20020429
89
PLIST_SUB+=	PHP_EXT_DIR=${PHP_EXT_DIR}
127
PLIST_SUB+=	PHP_EXT_DIR=${PHP_EXT_DIR}
90
128
91
.if defined(USE_PHPIZE)
129
.if defined(USE_PHPIZE)
(-)php4/pkg-plist (+1 lines)
Lines 3-8 Link Here
3
bin/php-config
3
bin/php-config
4
bin/phpextdist
4
bin/phpextdist
5
bin/phpize
5
bin/phpize
6
etc/php.conf
6
etc/php.ini-dist
7
etc/php.ini-dist
7
etc/php.ini-recommended
8
etc/php.ini-recommended
8
include/php/TSRM/TSRM.h
9
include/php/TSRM/TSRM.h
(-)php4/scripts/configure.php (-1 lines)
Lines 28-34 Link Here
28
DB4		"Berkeley DB4 support" ${WITH_DB4:-OFF} \
28
DB4		"Berkeley DB4 support" ${WITH_DB4:-OFF} \
29
DBASE		"dBase library support" ${WITH_DBASE:-OFF} \
29
DBASE		"dBase library support" ${WITH_DBASE:-OFF} \
30
DBX		"dbx support" ${WITH_DBX:-OFF} \
30
DBX		"dbx support" ${WITH_DBX:-OFF} \
31
DEBUG		"debug support" ${WITH_DEBUG:-OFF} \
32
DOMXML		"DOM support" ${WITH_DOMXML:-OFF} \
31
DOMXML		"DOM support" ${WITH_DOMXML:-OFF} \
33
DOMXSLT		"DOM XSLT and EXSLT support (implies DOMXML)" ${WITH_DOMXSLT:-OFF} \
32
DOMXSLT		"DOM XSLT and EXSLT support (implies DOMXML)" ${WITH_DOMXSLT:-OFF} \
34
EXIF		"EXIF support" ${WITH_EXIF:-OFF} \
33
EXIF		"EXIF support" ${WITH_EXIF:-OFF} \
(-)php4/scripts/php4_options (-1 lines)
Lines 8-14 Link Here
8
WITH_DB4=OFF
8
WITH_DB4=OFF
9
WITH_DBASE=OFF
9
WITH_DBASE=OFF
10
WITH_DBX=OFF
10
WITH_DBX=OFF
11
WITH_DEBUG=OFF
12
WITH_DOMXML=OFF
11
WITH_DOMXML=OFF
13
WITH_DOMXSLT=OFF
12
WITH_DOMXSLT=OFF
14
WITH_EXIF=OFF
13
WITH_EXIF=OFF

Return to bug 59418