php-ssh2.mk 842 B

123456789101112131415161718192021222324252627
  1. ################################################################################
  2. #
  3. # php-ssh2
  4. #
  5. ################################################################################
  6. PHP_SSH2_VERSION = 0.12
  7. PHP_SSH2_SOURCE = ssh2-$(PHP_SSH2_VERSION).tgz
  8. # pecl.php.net returns html with db connect failed
  9. PHP_SSH2_SITE = http://sources.buildroot.net
  10. PHP_SSH2_CONF_OPT = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
  11. --with-ssh2=$(STAGING_DIR)/usr
  12. # phpize does the autoconf magic
  13. PHP_SSH2_DEPENDENCIES = libssh2 php host-autoconf
  14. PHP_SSH2_LICENSE = PHP
  15. PHP_SSH2_LICENSE_FILES = LICENSE
  16. define PHP_SSH2_PHPIZE
  17. (cd $(@D); \
  18. PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
  19. PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
  20. $(STAGING_DIR)/usr/bin/phpize)
  21. endef
  22. PHP_SSH2_PRE_CONFIGURE_HOOKS += PHP_SSH2_PHPIZE
  23. $(eval $(autotools-package))