@@ -1,4 +1,4 @@
-# $NetBSD: phpversion.mk,v 1.18 2012/06/16 02:47:51 taca Exp $
+# $NetBSD: phpversion.mk,v 1.19 2012/06/16 15:18:13 taca Exp $
#
# This file selects a PHP version, based on the user's preferences and
# the installed packages. It does not add a dependency on the PHP
@@ -10,7 +10,7 @@
# The PHP version to choose when more than one is acceptable to
# the package.
#
-# Possible: 52 53 54
+# Possible: 53 54
# Default: 53
#
# === Package-settable variables ===
@@ -18,14 +18,14 @@
# PHP_VERSIONS_ACCEPTED
# The PHP versions that are accepted by the package.
#
-# Possible: 52 53 54
-# Default: 52 53 54
+# Possible: 53 54
+# Default: 53 54
#
# PHP_VERSION_REQD
# If the package works only with a specific PHP version, this
# variable can be used to force it.
#
-# Possible: (undefined) 52 53 54
+# Possible: (undefined) 53 54
# Default: (undefined)
#
# === Variables defined by this file ===
@@ -33,7 +33,7 @@
# PKG_PHP_VERSION
# The selected PHP version.
#
-# Possible: 52 53 54
+# Possible: 53 54
# Default: ${PHP_VERSION_DEFAULT}
#
# PHP_BASE_VERS
@@ -57,7 +57,7 @@
# PHP_PKG_PREFIX
# The prefix that is prepended to the package name.
#
-# Example: php5, php53, php54
+# Example: php53, php54
#
# Keywords: php
#
@@ -73,12 +73,11 @@
.include "../../mk/bsd.prefs.mk"
-PHP52_VERSION= 5.2.17
PHP53_VERSION= 5.3.14
PHP54_VERSION= 5.4.4
PHP_VERSION_DEFAULT?= 53
-PHP_VERSIONS_ACCEPTED?= 52 53 54
+PHP_VERSIONS_ACCEPTED?= 53 54
# transform the list into individual variables
.for pv in ${PHP_VERSIONS_ACCEPTED}
@@ -92,9 +91,6 @@
.elif exists(${LOCALBASE}/lib/php/20090626) || exists(${LOCALBASE}/include/php/Zend/zend_gc.h)
_PHP_VERSION_53_INSTALLED= yes
_PHP_INSTALLED= yes
-.elif exists(${LOCALBASE}/lib/php/20040412)
-_PHP_VERSION_52_INSTALLED= yes
-_PHP_INSTALLED= yes
.endif
# if a version is explicitely required, take it
@@ -159,11 +155,7 @@
#
# set variables for the version we decided to use:
#
-.if ${_PHP_VERSION} == "52"
-PHPPKGSRCDIR= ../../lang/php5
-PHP_BASE_VERS= ${PHP52_VERSION}
-PHP_PKG_PREFIX= php5
-.elif ${_PHP_VERSION} == "53"
+.if ${_PHP_VERSION} == "53"
PHPPKGSRCDIR= ../../lang/php53
PHP_BASE_VERS= ${PHP53_VERSION}
PHP_PKG_PREFIX= php53