2
1

php-ssh2.mk 812 B

12345678910111213141516171819202122232425
  1. ################################################################################
  2. #
  3. # php-ssh2
  4. #
  5. ################################################################################
  6. PHP_SSH2_VERSION = aa1739ac26c2177d33ab8d064021032bdc2c3a40
  7. PHP_SSH2_SITE = $(call github,php,pecl-networking-ssh2,$(PHP_SSH2_VERSION))
  8. PHP_SSH2_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
  9. --with-ssh2=$(STAGING_DIR)/usr
  10. # phpize does the autoconf magic
  11. PHP_SSH2_DEPENDENCIES = libssh2 php host-autoconf
  12. PHP_SSH2_LICENSE = PHP
  13. PHP_SSH2_LICENSE_FILES = LICENSE
  14. define PHP_SSH2_PHPIZE
  15. (cd $(@D); \
  16. PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
  17. PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
  18. $(STAGING_DIR)/usr/bin/phpize)
  19. endef
  20. PHP_SSH2_PRE_CONFIGURE_HOOKS += PHP_SSH2_PHPIZE
  21. $(eval $(autotools-package))