php: add PHP_VERSION_MAJOR variable
authorFloris Bos <bos@je-eigen-domein.nl>
Mon, 18 May 2015 19:52:02 +0000 (21:52 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 20 May 2015 11:13:35 +0000 (13:13 +0200)
Add PHP_VERSION_MAJOR variable to php.mk for use by other packages.
E.g. to install the Ioncube loader binary, it is necessary to
know the PHP major version.

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/php/php.mk

index 3e4601ec5d3e504fbb7c0d1354a9ba5204c20893..abbdc240a11e05793c6585503315afaafcb9b72e 100644 (file)
@@ -4,7 +4,8 @@
 #
 ################################################################################
 
-PHP_VERSION = 5.6.8
+PHP_VERSION_MAJOR = 5.6
+PHP_VERSION = $(PHP_VERSION_MAJOR).8
 PHP_SITE = http://www.php.net/distributions
 PHP_SOURCE = php-$(PHP_VERSION).tar.xz
 PHP_INSTALL_STAGING = YES