1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Document DEFAULT_PHP_VER and BROKEN_WITH_PHP

- Set them acccordingly in PHP extensions ports

(Now I really need some rest, see you tomorrow)
This commit is contained in:
Alex Dupre 2004-07-19 23:25:22 +00:00
parent 0d70de7bee
commit ae5859d055
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=114254
6 changed files with 23 additions and 1 deletions

View File

@ -17,6 +17,8 @@
#
# The port can set these options in its Makefile before bsd.ports.pre.mk:
#
# DEFAULT_PHP_VER=N - Use PHP version N if PHP is not yet installed.
# BROKEN_WITH_PHP=N - The port doesn't work with PHP version N.
# USE_PHPIZE=yes - Use to build a PHP extension.
# USE_PHPEXT=yes - Use to build, install and register a PHP extension.
# USE_PHP_BUILD=yes - Set PHP also as a build dependency.
@ -37,9 +39,15 @@ PHP_Include_MAINTAINER= ale@FreeBSD.org
.include "${LOCALBASE}/etc/php.conf"
.endif
PHP_VER?= 4
DEFAULT_PHP_VER?= 4
PHP_VER?= ${DEFAULT_PHP_VER}
.if !defined(PHP_EXT_DIR)
.if ${PHP_VER} == 4
PHP_EXT_DIR= 20020429
.else
PHP_EXT_DIR= 20040412
.endif
.if exists(${LOCALBASE}/include/apache2/httpd.h)
APACHE_MPM!= ${APXS} -q MPM_NAME
.if ${APACHE_MPM} == "worker"

View File

@ -18,6 +18,10 @@ COMMENT= A "meta-port" to install PHP extensions
NO_BUILD= # none
USE_PHP= yes
DEFAULT_PHP_VER=4
BROKEN_WITH_PHP=5
OPTIONS= BCMATH "bc style precision math functions" off \
BZ2 "bzip2 library support" off \
CALENDAR "calendar conversion support" off \

View File

@ -3,6 +3,8 @@ COMMENT= The ${PHP_MODNAME} shared extension for php
USE_PHP= yes
USE_PHPEXT= yes
PHP_MODNAME= ${PKGNAMESUFFIX:S/-//}
DEFAULT_PHP_VER=4
BROKEN_WITH_PHP=5
WRKSRC= ${WRKDIR}/php-${PORTVERSION:S/.r/RC/}/ext/${PHP_MODNAME}
PATCHDIR= ${.CURDIR}/files

View File

@ -18,6 +18,10 @@ COMMENT= A "meta-port" to install PHP extensions
NO_BUILD= # none
USE_PHP= yes
DEFAULT_PHP_VER=5
BROKEN_WITH_PHP=4
OPTIONS= BCMATH "bc style precision math functions" off \
BZ2 "bzip2 library support" off \
CALENDAR "calendar conversion support" off \

View File

@ -3,6 +3,8 @@ COMMENT= The ${PHP_MODNAME} shared extension for php
USE_PHP= yes
USE_PHPEXT= yes
PHP_MODNAME= ${PKGNAMESUFFIX:S/-//}
DEFAULT_PHP_VER=5
BROKEN_WITH_PHP=4
WRKSRC= ${WRKDIR}/php-${PORTVERSION:S/.r/RC/}/ext/${PHP_MODNAME}
PATCHDIR= ${.CURDIR}/files

View File

@ -3,6 +3,8 @@ COMMENT= The ${PHP_MODNAME} shared extension for php
USE_PHP= yes
USE_PHPEXT= yes
PHP_MODNAME= ${PKGNAMESUFFIX:S/-//}
DEFAULT_PHP_VER=5
BROKEN_WITH_PHP=4
WRKSRC= ${WRKDIR}/php-${PORTVERSION:S/.r/RC/}/ext/${PHP_MODNAME}
PATCHDIR= ${.CURDIR}/files