summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Mk/bsd.php.mk10
-rw-r--r--lang/php4-extensions/Makefile4
-rw-r--r--lang/php4/Makefile.ext2
-rw-r--r--lang/php5-extensions/Makefile4
-rw-r--r--lang/php5/Makefile.ext2
-rw-r--r--lang/php53/Makefile.ext2
6 files changed, 23 insertions, 1 deletions
diff --git a/Mk/bsd.php.mk b/Mk/bsd.php.mk
index f76abbe07bbc..231067cd1886 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 b9cd5b6bbafc..75c9b62f0c43 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 3c240d1b2dbe..f2a44a29a45b 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 c15fc5332705..4b8f2b9c104c 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 93c0ca2fc30a..313db804cc85 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 93c0ca2fc30a..313db804cc85 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