xref: /OK3568_Linux_fs/buildroot/package/php-ssh2/php-ssh2.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# php-ssh2
4#
5################################################################################
6
7PHP_SSH2_VERSION = 1.3.1
8PHP_SSH2_SOURCE = ssh2-$(PHP_SSH2_VERSION).tgz
9PHP_SSH2_SITE = https://pecl.php.net/get
10PHP_SSH2_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
11	--with-ssh2=$(STAGING_DIR)/usr
12# phpize does the autoconf magic
13PHP_SSH2_DEPENDENCIES = libssh2 php host-autoconf
14PHP_SSH2_LICENSE = PHP-3.01
15PHP_SSH2_LICENSE_FILES = LICENSE
16
17define PHP_SSH2_PHPIZE
18	(cd $(@D); \
19		PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
20		PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
21		$(STAGING_DIR)/usr/bin/phpize)
22endef
23
24PHP_SSH2_PRE_CONFIGURE_HOOKS += PHP_SSH2_PHPIZE
25
26$(eval $(autotools-package))
27