diff options
-rw-r--r-- | Mk/bsd.php.mk | 10 | ||||
-rw-r--r-- | lang/php4-extensions/Makefile | 4 | ||||
-rw-r--r-- | lang/php4/Makefile.ext | 2 | ||||
-rw-r--r-- | lang/php5-extensions/Makefile | 4 | ||||
-rw-r--r-- | lang/php5/Makefile.ext | 2 | ||||
-rw-r--r-- | lang/php53/Makefile.ext | 2 |
6 files changed, 23 insertions, 1 deletions
diff --git a/Mk/bsd.php.mk b/Mk/bsd.php.mk index f76abbe..231067c 100644 --- a/Mk/bsd.php.mk +++ b/Mk/bsd.php.mk @@ -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" diff --git a/lang/php4-extensions/Makefile b/lang/php4-extensions/Makefile index b9cd5b6..75c9b62 100644 --- a/lang/php4-extensions/Makefile +++ b/lang/php4-extensions/Makefile @@ -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 \ diff --git a/lang/php4/Makefile.ext b/lang/php4/Makefile.ext index 3c240d1..f2a44a2 100644 --- a/lang/php4/Makefile.ext +++ b/lang/php4/Makefile.ext @@ -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 diff --git a/lang/php5-extensions/Makefile b/lang/php5-extensions/Makefile index c15fc53..4b8f2b9 100644 --- a/lang/php5-extensions/Makefile +++ b/lang/php5-extensions/Makefile @@ -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 \ diff --git a/lang/php5/Makefile.ext b/lang/php5/Makefile.ext index 93c0ca2..313db80 100644 --- a/lang/php5/Makefile.ext +++ b/lang/php5/Makefile.ext @@ -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 diff --git a/lang/php53/Makefile.ext b/lang/php53/Makefile.ext index 93c0ca2..313db80 100644 --- a/lang/php53/Makefile.ext +++ b/lang/php53/Makefile.ext @@ -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 |