php: add PHP_VERSION_MAJOR variable

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>
This commit is contained in:
Floris Bos 2015-05-18 21:52:02 +02:00 committed by Peter Korsgaard
parent 7a149cc623
commit 24d340fd46
1 changed files with 2 additions and 1 deletions

View 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