php-xdebug.mk 882 B

1234567891011121314151617181920212223242526272829
  1. ################################################################################
  2. #
  3. # php-xdebug
  4. #
  5. ################################################################################
  6. PHP_XDEBUG_VERSION = 3.2.0
  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. --with-xdebug=$(STAGING_DIR)/usr
  18. define PHP_XDEBUG_PHPIZE
  19. (cd $(@D); \
  20. PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
  21. PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
  22. $(STAGING_DIR)/usr/bin/phpize)
  23. endef
  24. PHP_XDEBUG_PRE_CONFIGURE_HOOKS += PHP_XDEBUG_PHPIZE
  25. $(eval $(autotools-package))