summaryrefslogtreecommitdiff
path: root/lang/php
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2016-04-22 09:46:50 +0000
committerwiz <wiz@pkgsrc.org>2016-04-22 09:46:50 +0000
commit200cb48c3d7b63edae393658180aed0e7c08e36d (patch)
treed90de185a0d82dbb9398057c7fe5dc419bdbfdd9 /lang/php
parentc83ee53b79118052f5d16becfcc55e72dc4a3ecc (diff)
downloadpkgsrc-200cb48c3d7b63edae393658180aed0e7c08e36d.tar.gz
Detect php-7.0 (define _PHP_VERSION_70_INSTALLED).
Addresses PR 50957.
Diffstat (limited to 'lang/php')
-rw-r--r--lang/php/phpversion.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/lang/php/phpversion.mk b/lang/php/phpversion.mk
index 39d16d9fd15..4d386b86ad7 100644
--- a/lang/php/phpversion.mk
+++ b/lang/php/phpversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: phpversion.mk,v 1.131 2016/04/02 09:02:11 taca Exp $
+# $NetBSD: phpversion.mk,v 1.132 2016/04/22 09:46:50 wiz 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
@@ -107,7 +107,10 @@ _PHP_VERSION_${pv}_OK= yes
.endfor
# check what is installed
-.if exists(${LOCALBASE}/lib/php/20140828)
+.if exists(${LOCALBASE}/lib/php/20151203)
+_PHP_VERSION_70_INSTALLED= yes
+_PHP_INSTALLED= yes
+.elif exists(${LOCALBASE}/lib/php/20140828)
_PHP_VERSION_56_INSTALLED= yes
_PHP_INSTALLED= yes
.elif exists(${LOCALBASE}/lib/php/20130620)