php-xdebug.mk 846 B

12345678910111213141516171819202122232425262728
  1. ################################################################################
  2. #
  3. # php-xdebug
  4. #
  5. ################################################################################
  6. PHP_XDEBUG_VERSION = 3.2.2
  7. PHP_XDEBUG_SOURCE = xdebug-$(PHP_XDEBUG_VERSION).tgz
  8. PHP_XDEBUG_SITE = https://xdebug.org/files
  9. PHP_XDEBUG_INSTALL_STAGING = YES
  10. PHP_XDEBUG_LICENSE = Xdebug License (PHP-3.0-like)
  11. PHP_XDEBUG_LICENSE_FILES = LICENSE
  12. # phpize does the autoconf magic
  13. PHP_XDEBUG_DEPENDENCIES = php host-autoconf
  14. PHP_XDEBUG_CONF_OPTS = \
  15. --enable-xdebug \
  16. --with-php-config=$(STAGING_DIR)/usr/bin/php-config
  17. define PHP_XDEBUG_PHPIZE
  18. (cd $(@D); \
  19. PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
  20. PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
  21. $(STAGING_DIR)/usr/bin/phpize)
  22. endef
  23. PHP_XDEBUG_PRE_CONFIGURE_HOOKS += PHP_XDEBUG_PHPIZE
  24. $(eval $(autotools-package))