Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -1,4 +1,4 @@
# $NetBSD: phpversion.mk,v 1.34.2.3 2013/08/25 17:26:38 tron Exp $
# $NetBSD: phpversion.mk,v 1.58 2014/03/09 14:09:20 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: 53 54
# Possible: 53 54 55
# Default: 54
#
# === Infrastructure variables ===
@@ -27,12 +27,12 @@
# PHP_VERSIONS_ACCEPTED
# The PHP versions that are accepted by the package.
#
# Possible: 53 54
# Possible: 53 54 55
# Default: 54 53
#
# PHP_CHECK_INSTALLED
# Check installed version of PHP. Should be used lang/php53,
# and lang/php54 only.
# lang/php54 and lang/php55 only.
#
# Possible: Yes No
# Default: Yes
@@ -42,7 +42,7 @@
# PKG_PHP_VERSION
# The selected PHP version.
#
# Possible: 53 54
# Possible: 53 54 55
# Default: ${PHP_VERSION_DEFAULT}
#
# PHP_BASE_VERS
@@ -66,7 +66,7 @@
# PHP_PKG_PREFIX
# The prefix that is prepended to the package name.
#
# Example: php53, php54
# Example: php53, php54, php55
#
# PHP_EXTENSION_DIR
# Relative path to ${PREFIX} for PHP's extensions. It is derived from
@@ -81,12 +81,14 @@
PHPVERSION_MK= defined
# Define each PHP's version.
PHP53_VERSION= 5.3.27
PHP54_VERSION= 5.4.19
PHP53_VERSION= 5.3.28
PHP54_VERSION= 5.4.26
PHP55_VERSION= 5.5.10
# Define initial release of major version.
PHP53_RELDATE= 20090630
PHP54_RELDATE= 20120301
PHP55_RELDATE= 20130620
_VARGROUPS+= php
_USER_VARS.php= PHP_VERSION_DEFAULT
@@ -97,7 +99,7 @@ _SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \
.include "../../mk/bsd.prefs.mk"
PHP_VERSION_DEFAULT?= 54
PHP_VERSIONS_ACCEPTED?= 54 53
PHP_VERSIONS_ACCEPTED?= 54 55 53
# transform the list into individual variables
.for pv in ${PHP_VERSIONS_ACCEPTED}
@@ -105,7 +107,10 @@ _PHP_VERSION_${pv}_OK= yes
.endfor
# check what is installed
.if exists(${LOCALBASE}/lib/php/20120301)
.if exists(${LOCALBASE}/lib/php/20130620)
_PHP_VERSION_55_INSTALLED= yes
_PHP_INSTALLED= yes
.elif exists(${LOCALBASE}/lib/php/20120301)
_PHP_VERSION_54_INSTALLED= yes
_PHP_INSTALLED= yes
.elif exists(${LOCALBASE}/lib/php/20090626) || exists(${LOCALBASE}/include/php/Zend/zend_gc.h)
@@ -153,7 +158,7 @@ MULTI+= PHP_VERSION_REQD=${_PHP_VERSION}
# export some of internal variables
PKG_PHP_VERSION:= ${_PHP_VERSION:C/\.[0-9]//}
PKG_PHP:= php-${_PHP_VERSION:C/([0-9])([0-9])/\1.\2/}
PKG_PHP:= PHP${_PHP_VERSION:C/([0-9])([0-9])/\1.\2/}
# currently we have only PHP 5.x packages.
PKG_PHP_MAJOR_VERS:= 5
@@ -161,7 +166,7 @@ PKG_PHP_MAJOR_VERS:= 5
PHP_CHECK_INSTALLED?= Yes
# if installed PHP isn't compatible with required PHP, bail out
.if !empty(PHP_CHECK_INSTALLED:M[nN][oO])
.if empty(PHP_CHECK_INSTALLED:M[nN][oO])
.if defined(_PHP_INSTALLED) && !defined(_PHP_VERSION_${_PHP_VERSION}_INSTALLED)
PKG_SKIP_REASON+= "Package accepts ${PKG_PHP}, but different version is installed"
.endif
@@ -189,6 +194,11 @@ PHPPKGSRCDIR= ../../lang/php54
PHP_BASE_VERS= ${PHP54_VERSION}
PHP_PKG_PREFIX= php54
PHP_EXTENSION_DIR= lib/php/${PHP54_RELDATE}
.elif ${_PHP_VERSION} == "55"
PHPPKGSRCDIR= ../../lang/php55
PHP_BASE_VERS= ${PHP55_VERSION}
PHP_PKG_PREFIX= php55
PHP_EXTENSION_DIR= lib/php/${PHP55_RELDATE}
.else
# force an error
PKG_SKIP_REASON+= "${PKG_PHP} is not a valid package"